CVE Vulnerabilities

CVE-2018-18926

Session Fixation

Published: Nov 04, 2018 | Modified: Nov 21, 2024
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
7.5 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

Gitea before 1.5.4 allows remote code execution because it does not properly validate session IDs. This is related to session ID handling in the go-macaron/session code for Macaron.

Weakness

Authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions.

Affected Software

Name Vendor Start Version End Version
Gitea Gitea * 1.5.4 (excluding)
Golang-code.gitea-git Ubuntu bionic *
Golang-code.gitea-git Ubuntu cosmic *
Golang-code.gitea-git Ubuntu disco *
Golang-code.gitea-git Ubuntu eoan *
Golang-code.gitea-git Ubuntu focal *
Golang-code.gitea-git Ubuntu groovy *
Golang-code.gitea-git Ubuntu hirsute *
Golang-code.gitea-git Ubuntu impish *
Golang-code.gitea-git Ubuntu kinetic *

Extended Description

Such a scenario is commonly observed when:

In the generic exploit of session fixation vulnerabilities, an attacker creates a new session on a web application and records the associated session identifier. The attacker then causes the victim to associate, and possibly authenticate, against the server using that session identifier, giving the attacker access to the user’s account through the active session.

Potential Mitigations

References