Vulnerability DatabaseGHSA-vfm6-r2gc-pwww

GHSA-vfm6-r2gc-pwww
PHP vulnerability analysis and mitigation

Overview

A security vulnerability was identified in Symfony's Request::getClientIp() method when the trust proxy mode is enabled. The issue was discovered by Damien Tournoud from the Drupal security team and disclosed on November 29, 2012. This vulnerability affects Symfony versions 2.0.0 through 2.0.19 and 2.1.0 through 2.1.4 (Symfony Blog).

Technical details

The vulnerability exists in the Request::getClientIp() method when using the trust proxy mode enabled through Request::trustProxyData(). The issue occurs because the method automatically trusts the latest proxy in the chain, which is the current remote address, without proper validation of trusted proxy IP addresses (Symfony Blog).

Impact

Applications are vulnerable if they use the client IP address returned by the Request::getClientIp() method for sensitive decisions such as IP-based access control. This could potentially allow attackers to bypass IP-based security controls (Symfony Blog).

Mitigation and workarounds

To fix this security issue, a new Request::setTrustedProxies() method was introduced to replace Request::trustProxyData(). The new method requires an array of trusted proxy IP addresses as its argument. For example: Request::setTrustedProxies(array('1.1.1.1')); where 1.1.1.1 is the IP address of a trusted reverse proxy. The old Request::trustProxyData() method has been deprecated. Users are encouraged to upgrade to versions 2.0.19 or 2.1.4 or apply the available security patches (Symfony Blog).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management