Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-12545 Overview
CVE-2024-12545 is a Cross-Site Request Forgery (CSRF) vulnerability in the Scratch & Win – Giveaways and Contests plugin for WordPress. The flaw affects all versions up to and including 2.7.1. The reset_installation() function lacks nonce validation, allowing unauthenticated attackers to reset the plugin's installation. Exploitation requires tricking a site administrator into clicking a crafted link or visiting a malicious page. The vulnerability is tracked under CWE-352.
Critical Impact
Successful exploitation resets the plugin configuration, resulting in loss of giveaway and contest data integrity and potential service disruption for site owners relying on the plugin.
Affected Products
- Appsmav Scratch & Win – Giveaways and Contests plugin for WordPress
- All versions up to and including 2.7.1
- WordPress sites with administrator sessions active during an attacker-controlled browsing event
Discovery Timeline
- 2025-01-04 - CVE-2024-12545 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-12545
Vulnerability Analysis
The plugin exposes an administrative action, reset_installation(), that executes without verifying a WordPress nonce. WordPress nonces are the framework-level anti-CSRF token mechanism. Without this check, the plugin accepts any request that carries a valid administrator session cookie, regardless of its origin.
An attacker crafts an HTML page or link that issues a request to the vulnerable endpoint. When an authenticated administrator loads the attacker-controlled resource, the browser attaches the administrator's cookies and executes the reset. The administrator takes no direct action beyond browsing.
The outcome is limited to the plugin's state: contest configuration, installation data, and related plugin settings are wiped. Integrity and availability of plugin data are affected, but confidentiality of broader WordPress data is not directly impacted.
Root Cause
The root cause is missing CSRF protection on a state-changing administrative function. WordPress provides wp_verify_nonce() and check_admin_referer() to validate request origin, and the vulnerable version omits these calls on reset_installation(). See the WordPress Plugin File API for the pre-patch implementation.
Attack Vector
Exploitation is network-based and requires user interaction. An attacker hosts a page containing a forged request, typically an auto-submitting form or image tag pointing to the plugin's reset endpoint on the target WordPress site. The attacker lures a logged-in administrator to this page through phishing, a comment link, or any other social engineering channel. On load, the browser issues the authenticated request and the plugin executes the reset.
No exploit code is publicly indexed, no entry exists on Exploit-DB, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
Detection Methods for CVE-2024-12545
Indicators of Compromise
- Unexpected resets of Scratch & Win plugin configuration or loss of contest data without a corresponding administrator action in audit logs
- HTTP requests to the plugin's reset endpoint with Referer headers pointing to external, untrusted domains
- Administrator sessions coinciding with inbound requests from unusual IP addresses or user agents
Detection Strategies
- Review web server access logs for POST or GET requests targeting plugin AJAX actions or admin-post endpoints associated with reset_installation
- Correlate plugin state changes with WordPress audit log entries to identify resets lacking a legitimate admin-initiated workflow
- Monitor for cross-origin requests to /wp-admin/admin-ajax.php or /wp-admin/admin-post.php carrying administrator cookies
Monitoring Recommendations
- Enable a WordPress activity logging plugin to capture plugin configuration changes with user and source IP context
- Alert on administrator-authenticated requests whose Referer header does not originate from the site's own domain
- Baseline normal plugin-management traffic patterns so anomalous reset events trigger investigation
How to Mitigate CVE-2024-12545
Immediate Actions Required
- Update the Scratch & Win – Giveaways and Contests plugin to the version released in WordPress Changeset #3212730, which adds the missing nonce validation
- If the plugin is not actively used, deactivate and remove it from the WordPress installation
- Audit administrator accounts and recent plugin state changes to confirm no unauthorized resets occurred
Patch Information
The vendor addressed the vulnerability by adding nonce validation to the reset_installation() function. The fix is published in WordPress Changeset #3212730. Administrators should upgrade to the patched release available on the WordPress Plugin Developer page. Additional analysis is available in the Wordfence Vulnerability Report.
Workarounds
- Restrict access to /wp-admin/ by IP allowlist at the web server or WAF layer to reduce the exposure window for CSRF attacks against administrators
- Require administrators to use a dedicated browser profile for WordPress management, isolating session cookies from general browsing
- Deploy a web application firewall rule that blocks requests to the plugin's reset endpoint when the Referer header is missing or external
# Example nginx snippet enforcing same-origin Referer on the plugin reset endpoint
location ~ ^/wp-admin/admin-(ajax|post)\.php$ {
if ($http_referer !~* "^https?://your-domain\.tld/") {
return 403;
}
include fastcgi_params;
fastcgi_pass unix:/run/php/php-fpm.sock;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

