Advisory

GHSA-83c3-qx27-2rwr

Also known as: CVE-2012-6431

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-17 05:17 UTC
Modified
2024-12-03 06:08 UTC

Affected packages and fixes

symfony/http-foundation

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.0.19 (ecosystem)

Fixed versions

2.0.19

Fix

The export has no generic command for this ecosystem.

symfony/routing

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.0.19 (ecosystem)

Fixed versions

2.0.19

Fix

The export has no generic command for this ecosystem.

symfony/security

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.0.19 (ecosystem)

Fixed versions

2.0.19

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.0.19 (ecosystem)

Fixed versions

2.0.19

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences