AVideo vulnerable to IP Address Spoofing via Untrusted HTTP Headers in getRealIpAddr()
Description
Published by the National Vulnerability Database
Mar 23, 2026
Published to the GitHub Advisory Database
Mar 25, 2026
Reviewed
Mar 25, 2026
Last updated
Mar 25, 2026
Summary
The
getRealIpAddr()function inobjects/functions.phptrusts user-controlled HTTP headers to determine the client's IP address.An attacker can spoof their IP address by sending forged headers, bypassing any IP-based access controls or audit logging.
Vulnerable Code
File:
objects/functions.phpAttack Scenario
or
getRealIpAddr()returns the forged IPlog that relies on this function is bypassed
Proof of Concept
curl -H "X-Client-IP: 127.0.0.1" \ https://target.com/any_endpoint.phpThe server now believes the request came from localhost.
Impact
References