Advisory

GHSA-xffp-6w68-4775

Also known as: None

Summary

Zendframework Remote Address Spoofing Vector in Zend\Http\PhpEnvironment\RemoteAddress

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-06-07 20:02 UTC
Modified
2024-12-04 05:41 UTC

Affected packages and fixes

zendframework/zendframework

Packagist · All systems

Affected

  • introduced 2.2.0, fixed 2.2.5 (ecosystem)

Fixed versions

2.2.5

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