GHSA-m2wj-r6g3-fxfx

Suggest an improvement
Source
https://github.com/advisories/GHSA-m2wj-r6g3-fxfx
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/11/GHSA-m2wj-r6g3-fxfx/GHSA-m2wj-r6g3-fxfx.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-m2wj-r6g3-fxfx
Aliases
Published
2023-11-12T15:51:54Z
Modified
2024-02-16T07:59:26.360461Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
Symfony possible session fixation vulnerability
Details

Description

SessionStrategyListener does not always migrate the session after a successful login. It only migrate the session when the logged-in user identifier changes. In some use cases, the user identifier doesn't change between the verification phase and the successful login, while the token itself changes from one type (partially-authenticated) to another (fully-authenticated). When this happens, the session id should be regenerated to prevent possible session fixations.

Resolution

Symfony now checks the type of the token in addition to the user identifier before deciding whether the session id should be regenerated.

The patch for this issue is available here for branch 5.4.

Credits

We would like to thank Robert Meijers for reporting the issue and providing the fix.

Database specific
{
    "nvd_published_at": "2023-11-10T18:15:09Z",
    "cwe_ids": [
        "CWE-384"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-11-12T15:51:54Z"
}
References

Affected packages

Packagist / symfony/security-http

Package

Name
symfony/security-http
Purl
pkg:composer/symfony/security-http

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.4.21
Fixed
5.4.31

Affected versions

v5.*

v5.4.21
v5.4.22
v5.4.23
v5.4.26
v5.4.28
v5.4.30

Packagist / symfony/security-http

Package

Name
symfony/security-http
Purl
pkg:composer/symfony/security-http

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.2.7
Fixed
6.3.8

Affected versions

v6.*

v6.2.7
v6.2.8
v6.2.10
v6.2.11
v6.2.13
v6.3.0-BETA1
v6.3.0-RC1
v6.3.0
v6.3.1
v6.3.2
v6.3.4
v6.3.5
v6.3.6

Packagist / symfony/symfony

Package

Name
symfony/symfony
Purl
pkg:composer/symfony/symfony

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.4.21
Fixed
5.4.31

Affected versions

v5.*

v5.4.21
v5.4.22
v5.4.23
v5.4.24
v5.4.25
v5.4.26
v5.4.27
v5.4.28
v5.4.29
v5.4.30

Packagist / symfony/symfony

Package

Name
symfony/symfony
Purl
pkg:composer/symfony/symfony

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.2.7
Fixed
6.3.8

Affected versions

v6.*

v6.2.7
v6.2.8
v6.2.9
v6.2.10
v6.2.11
v6.2.12
v6.2.13
v6.2.14
v6.3.0-BETA1
v6.3.0-BETA2
v6.3.0-BETA3
v6.3.0-RC1
v6.3.0-RC2
v6.3.0
v6.3.1
v6.3.2
v6.3.3
v6.3.4
v6.3.5
v6.3.6
v6.3.7