ghsa-83c3-qx27-2rwr
Vulnerability from github
Published
2022-05-17 05:17
Modified
2023-09-21 23:06
VLAI Severity ?
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.
{ "affected": [ { "package": { "ecosystem": "Packagist", "name": "symfony/http-foundation" }, "ranges": [ { "events": [ { "introduced": "2.0.0" }, { "fixed": "2.0.19" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "Packagist", "name": "symfony/routing" }, "ranges": [ { "events": [ { "introduced": "2.0.0" }, { "fixed": "2.0.19" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "Packagist", "name": "symfony/security" }, "ranges": [ { "events": [ { "introduced": "2.0.0" }, { "fixed": "2.0.19" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "Packagist", "name": "symfony/symfony" }, "ranges": [ { "events": [ { "introduced": "2.0.0" }, { "fixed": "2.0.19" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2012-6431" ], "database_specific": { "cwe_ids": [ "CWE-287" ], "github_reviewed": true, "github_reviewed_at": "2023-08-15T23:43:25Z", "nvd_published_at": "2012-12-27T11:47:00Z", "severity": "MODERATE" }, "details": "On the Symfony 2.0.x version, there\u0027s a security issue that allows access to routes protected by a firewall even when the user is not logged in.\n\nBoth 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.\n\nThis difference causes Symfony 2.0 to be vulnerable to double encoding attacks.\n\n", "id": "GHSA-83c3-qx27-2rwr", "modified": "2023-09-21T23:06:08Z", "published": "2022-05-17T05:17:03Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2012-6431" }, { "type": "WEB", "url": "https://github.com/symfony/symfony/commit/55014a6841bec50046e8329a4835c160ac31a496" }, { "type": "WEB", "url": "https://github.com/symfony/symfony/commit/8b2c17f80377582287a78e0b521497e039dd6b0d" }, { "type": "WEB", "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2012-6431.yaml" }, { "type": "WEB", "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/routing/CVE-2012-6431.yaml" }, { "type": "WEB", "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2012-6431.yaml" }, { "type": "WEB", "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2012-6431.yaml" }, { "type": "WEB", "url": "https://symfony.com/blog/security-release-symfony-2-0-20-and-2-1-5-released" }, { "type": "WEB", "url": "http://symfony.com/blog/security-release-symfony-2-0-20-and-2-1-5-released" } ], "schema_version": "1.4.0", "severity": [], "summary": "Symfony Allows URI Restrictions Bypass Via Double-Encoded String" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…