ADVISORIES

GitHub Advisory Database

GHSA-g4g7-q726-v5hg

Symfony CSRF Token Fixation

Details

An issue was discovered in the Security component in Symfony 2.7.x before 2.7.48, 2.8.x before 2.8.41, 3.3.x before 3.3.17, 3.4.x before 3.4.11, and 4.0.x before 4.0.11. By default, a user's session is invalidated when the user is logged out. This behavior can be disabled through the invalidate_session option. In this case, CSRF tokens were not erased during logout which allowed for CSRF token fixation.

Affected packages

EcosystemPackageAffected versions
Packagistsymfony/symfony
From 2.7.0 before 2.7.48 (fixed in 2.7.48)
Packagistsymfony/symfony
From 2.8.0 before 2.8.41 (fixed in 2.8.41)
Packagistsymfony/symfony
From 3.0.0 before 3.3.17 (fixed in 3.3.17)
Packagistsymfony/symfony
From 3.4.0 before 3.4.11 (fixed in 3.4.11)
Packagistsymfony/symfony
From 4.0.0 before 4.0.11 (fixed in 4.0.11)
Packagistsymfony/security-bundle
From 2.7.0 before 2.7.48 (fixed in 2.7.48)
Packagistsymfony/security-bundle
From 2.8.0 before 2.8.41 (fixed in 2.8.41)
Packagistsymfony/security-bundle
From 3.0.0 before 3.3.17 (fixed in 3.3.17)
Packagistsymfony/security-bundle
From 3.4.0 before 3.4.11 (fixed in 3.4.11)
Packagistsymfony/security-bundle
From 4.0.0 before 4.0.11 (fixed in 4.0.11)
Packagistsymfony/security-http
From 2.7.0 before 2.7.48 (fixed in 2.7.48)
Packagistsymfony/security-http
From 2.8.0 before 2.8.41 (fixed in 2.8.41)
Packagistsymfony/security-http
From 3.0.0 before 3.3.17 (fixed in 3.3.17)
Packagistsymfony/security-http
From 3.4.0 before 3.4.11 (fixed in 3.4.11)
Packagistsymfony/security-http
From 4.0.0 before 4.0.11 (fixed in 4.0.11)
Packagistsymfony/security
From 2.7.0 before 2.7.48 (fixed in 2.7.48)
Packagistsymfony/security
From 2.8.0 before 2.8.41 (fixed in 2.8.41)
Packagistsymfony/security
From 3.0.0 before 3.3.17 (fixed in 3.3.17)
Packagistsymfony/security
From 3.4.0 before 3.4.11 (fixed in 3.4.11)
Packagistsymfony/security
From 4.0.0 before 4.0.11 (fixed in 4.0.11)

References