GHSA-xffp-6w68-4775: Zendframework Remote Address Spoofing Vector in `Zend\Http\PhpEnvironment\RemoteAddress`
The Zend\Http\PhpEnvironment\RemoteAddress class provides features around detecting the internet protocol (IP) address for an incoming proxied request via the X-Forwarded-For header, taking into account a provided list of trusted proxy server IPs. Prior to 2.2.5, the class was not taking into account whether or not the IP address contained in PHP's $SERVER['REMOTEADDR'] was in the trusted proxy server list.
Published Jun 7, 2024
Affected packages
zendframework/zendframework
- Ecosystem
- Composer (PHP)
- Affected
- >= 2.2.0, < 2.2.5
- Fixed in
- 2.2.5
- Check
composer show zendframework/zendframework
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
The Zend\Http\PhpEnvironment\RemoteAddress class provides features around detecting the internet protocol (IP) address for an incoming proxied request via the X-Forwarded-For header, taking into account a provided list of trusted proxy server IPs. Prior to 2.2.5, the class was not taking into account whether or not the IP address contained in PHP's $_SERVER['REMOTE_ADDR'] was in the trusted proxy server list.
The IETF draft specification indicates that if $_SERVER['REMOTE_ADDR'] is not a trusted proxy, it must be considered the originating IP address, and the value of X-Forwarded-For must be disregarded.
References
- https://github.com/zendframework/zendframework/commit/bb6784461d3b23ef1db4be8cf47957ccc3b681ed
- https://framework.zend.com/security/advisory/ZF2013-04
- https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework/ZF2013-04.yaml
- https://github.com/advisories/GHSA-xffp-6w68-4775
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesGHSA-2fhr-8r8r-qp56
ZendFramework Information Disclosure and Insufficient Entropy vulnerability
medium5.3Jun 7, 2024GHSA-5gmf-3c43-q73v
ZendFramework vulnerable to Cross-site Scripting
medium6.1Jun 7, 2024GHSA-62f6-h68r-3jpw
Zendframework session validation vulnerability
medium6.5Jun 7, 2024GHSA-8q77-cv62-jj38
Zendframework has potential Cross-site Scripting vector in multiple view helpers
medium6.1Jun 7, 2024GHSA-fh7r-58q4-6387
Zendframework URL Rewrite vulnerability
medium4.7Jun 7, 2024GHSA-gff2-p6vm-3p8g
ZendFramework potential remote code execution in zend-mail via Sendmail adapter
medium6.5Jun 7, 2024
