PT-2024-40474 · Symfony · Symfony2
Published
2024-05-30
·
Updated
2024-05-30
None
No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
Name of the Vulnerable Software and Affected Versions
Symfony2 versions prior to the introduction of the fix
Description
The issue arises when an application relies on the client IP address returned by the Request::getClientIp() method for making sensitive decisions, such as IP-based access control. This can be exploited due to the trust proxy mode. The estimated number of potentially affected devices is not specified. There is no information about real-world incidents where this issue was exploited.
Technical details include the use of the
Request::getClientIp() method and the Request::trustProxyData() method, which has been deprecated in favor of Request::setTrustedProxies(). The Request::setTrustedProxies() method takes an array of trusted proxy IP addresses as its argument.Recommendations
For all versions of Symfony2, upgrade to the latest version as soon as possible.
Alternatively, apply the provided patches:
- For Symfony 2.0.19, apply the patch from https://github.com/symfony/symfony/compare/fc89d6b...9ce892c.patch
- For Symfony 2.1.4, apply the patch from https://github.com/symfony/symfony/compare/922c201...e5536f0.patch
As a temporary workaround, consider using the
Request::setTrustedProxies()method instead ofRequest::trustProxyData()to enable the trust proxy mode.
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Symfony2