GHSA-mg7h-9qfx-4r83 ZendFramework Potential Proxy Injection Vulnerabilities
Attackers can spoof IP addresses or host names via HTTP headers in Zend Framework, potentially bypassing security controls or leaking information.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-mg7h-9qfx-4r83?
GHSA-mg7h-9qfx-4r83 is a vulnerability in zendframework/zendframework, published on 7 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Zend\Session\Validator\RemoteAddr and Zend\View\Helper\ServerUrl were found to be improperly parsing HTTP headers for proxy information, which could potentially allow an attacker to spoof a proxied IP or host name.
In Zend\Session\Validator\RemoteAddr, if the client is behind a proxy server, the detection of the proxy URL was incorrect, and could lead to invalid results on subsequent lookups.
In Zend\View\Helper\ServerUrl, if the server lives behind a proxy, the helper would always generate a URL based on the proxy host, regardless of whether or not this was desired; additionally, it did not take into account the proxy port or protocol, if provided.
Which versions are affected by GHSA-mg7h-9qfx-4r83?
2 open source packages ship an affected version, including zendframework/zendframework.
| Package | Affected | Fixed in |
|---|---|---|
zendframework/zendframework Packagist | From 2.0.0 | 2.0.5 |
zendframework/zendframework Packagist | From 2.0.0 | 2.0.5 |
How do I fix GHSA-mg7h-9qfx-4r83?
Upgrade zendframework/zendframework to 2.0.5 or later.
Is GHSA-mg7h-9qfx-4r83 being exploited?
There is no known exploitation of GHSA-mg7h-9qfx-4r83 in the wild and no public exploit code.