GHSA-qw36-p97w-vcqr

Suggest an improvement
Source
https://github.com/advisories/GHSA-qw36-p97w-vcqr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/11/GHSA-qw36-p97w-vcqr/GHSA-qw36-p97w-vcqr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qw36-p97w-vcqr
Aliases
Published
2021-11-24T20:05:22Z
Modified
2024-02-16T08:20:24.571020Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Cookie persistence after password changes in symfony/security-bundle
Details

Description

Since the rework of the Remember me cookie in Symfony 5.3, the cookie is not invalidated anymore when the user changes its password.

Attackers can therefore maintain their access to the account even if the password is changed as long as they have had the chance to login once and get a valid remember me cookie.

Resolution

Symfony now makes the password part of the signature by default. In that way, when the password changes then the cookie is not valid anymore.

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

Credits

We would like to thank Thibaut Decherit for reporting the issue and Wouter J for fixing the issue.

Database specific
{
    "nvd_published_at": "2021-11-24T19:15:00Z",
    "cwe_ids": [
        "CWE-384"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2021-11-24T20:00:03Z"
}
References

Affected packages

Packagist / symfony/security-bundle

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.3.0
Fixed
5.3.12

Affected versions

v5.*

v5.3.0
v5.3.2
v5.3.3
v5.3.4
v5.3.7
v5.3.8
v5.3.11

Packagist / symfony/symfony

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.3.0
Fixed
5.3.12

Affected versions

v5.*

v5.3.0
v5.3.1
v5.3.2
v5.3.3
v5.3.4
v5.3.5
v5.3.6
v5.3.7
v5.3.8
v5.3.9
v5.3.10
v5.3.11