GHSA-83c3-qx27-2rwr

Suggest an improvement
Source
https://github.com/advisories/GHSA-83c3-qx27-2rwr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-83c3-qx27-2rwr/GHSA-83c3-qx27-2rwr.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-83c3-qx27-2rwr
Aliases
  • CVE-2012-6431
Published
2022-05-17T05:17:03Z
Modified
2024-12-03T05:37:24.847084Z
Summary
Symfony Allows URI Restrictions Bypass Via Double-Encoded String
Details

On the Symfony 2.0.x version, there's a security issue that allows access to routes protected by a firewall even when the user is not logged in.

Both the Routing component and the Security component uses the path returned by getPathInfo() to match a Request. The getPathInfo() returns a decoded path, but the Routing component (Symfony\Component\Routing\Matcher\UrlMatcher) decodes the path a second time; whereas the Security component, Symfony\Component\HttpFoundation\RequestMatcher, does not.

This difference causes Symfony 2.0 to be vulnerable to double encoding attacks.

Database specific
{
    "nvd_published_at": "2012-12-27T11:47:00Z",
    "cwe_ids": [
        "CWE-287"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-08-15T23:43:25Z"
}
References

Affected packages

Packagist / symfony/http-foundation

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.0.19

Affected versions

2.*

2.0.4
2.0.5
2.0.6
2.0.7

v2.*

v2.0.9
v2.0.10
v2.0.12
v2.0.13
v2.0.14
v2.0.15
v2.0.16
v2.0.17
v2.0.18

Packagist / symfony/routing

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.0.19

Affected versions

2.*

2.0.4
2.0.5
2.0.6
2.0.7

v2.*

v2.0.9
v2.0.10
v2.0.12
v2.0.13
v2.0.14
v2.0.15
v2.0.16
v2.0.17
v2.0.18

Packagist / symfony/security

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.0.19

Affected versions

2.*

2.0.4
2.0.5
2.0.6
2.0.7

v2.*

v2.0.9
v2.0.10
v2.0.12
v2.0.13
v2.0.14
v2.0.15
v2.0.16
v2.0.17
v2.0.18

Packagist / symfony/symfony

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.0.19

Affected versions

2.*

2.0.4
2.0.5
2.0.6
2.0.7

v2.*

v2.0.9
v2.0.10
v2.0.11
v2.0.12
v2.0.13
v2.0.14
v2.0.15
v2.0.16
v2.0.17
v2.0.18