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-5613 Overview
CVE-2024-5613 is a Reflected Cross-Site Scripting (XSS) vulnerability in the Formula theme for WordPress, developed by Awplife. The flaw affects all versions up to and including 0.5.1. It resides in the quality_customizer_notify_dismiss_action AJAX action, where the id parameter is processed without adequate input sanitization or output escaping. Unauthenticated attackers can inject arbitrary JavaScript that executes in a victim's browser when the user is tricked into clicking a crafted link. The issue is tracked under CWE-79.
Critical Impact
Successful exploitation lets unauthenticated attackers execute arbitrary scripts in a victim's browser session, enabling credential theft, session hijacking, or administrative action abuse against WordPress users of affected sites.
Affected Products
- Awplife Formula theme for WordPress, versions * through 0.5.1 (free edition)
- WordPress sites using the vulnerable formula-customizer-notify.php component
- Any site exposing the quality_customizer_notify_dismiss_action AJAX endpoint
Discovery Timeline
- 2024-06-08 - CVE-2024-5613 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-5613
Vulnerability Analysis
The vulnerability is a Reflected Cross-Site Scripting flaw within the Formula theme's customizer dismissal workflow. The theme registers an AJAX action named quality_customizer_notify_dismiss_action intended to let administrators dismiss a customizer notice. The handler reads the id parameter from the incoming request and reflects it back into the response without proper sanitization or output encoding. An attacker can craft a URL containing a malicious payload in the id parameter. When a victim visits the URL, the injected script executes in the browser under the site's origin.
Because the AJAX action is accessible without authentication, attackers do not need valid credentials. The payload runs with the same permissions as the targeted user, allowing session cookie theft, forced navigation, or actions performed on behalf of an authenticated administrator.
Root Cause
The root cause is insufficient input validation and missing output escaping in the quality_customizer_notify_dismiss_action AJAX handler defined in inc/customizer/customizer-notice/formula-customizer-notify.php. The id parameter is incorporated into the response without being passed through WordPress sanitization helpers such as sanitize_text_field() or escaped using esc_html()/esc_attr() before reflection.
Attack Vector
Exploitation requires attacker-supplied content in the id query parameter and user interaction, such as clicking a crafted link or visiting a malicious page that triggers the request. The attack is delivered over the network and does not require privileges, but a successful compromise depends on social engineering to lure a victim into executing the request. The vulnerability has a scope change characteristic because script execution in the browser affects a different security context than the vulnerable component. See the WordPress Customizer Notice Code for the vulnerable implementation.
No verified public proof-of-concept code is available. Refer to the Wordfence Vulnerability Report for additional context.
Detection Methods for CVE-2024-5613
Indicators of Compromise
- HTTP requests to admin-ajax.php with the action=quality_customizer_notify_dismiss_action parameter and suspicious id values containing HTML tags, javascript: URIs, or script fragments
- URL-encoded payloads such as %3Cscript%3E, onerror=, or onload= appearing in referrer logs or access logs tied to the affected endpoint
- Unexpected outbound requests from administrator browsers shortly after visiting a crafted link referencing the Formula theme
Detection Strategies
- Inspect web server access logs for requests to /wp-admin/admin-ajax.php where the action parameter equals quality_customizer_notify_dismiss_action and the id value contains non-alphanumeric characters
- Deploy Web Application Firewall (WAF) rules that match reflected XSS patterns in query strings targeting WordPress AJAX endpoints
- Review the installed theme version via wp-content/themes/formula/style.css to confirm whether the site runs a vulnerable 0.5.1 or earlier release
Monitoring Recommendations
- Alert on anomalous AJAX request volume targeting the Formula theme, especially from unauthenticated sources
- Monitor browser-side telemetry for script execution originating from unexpected URL parameters on WordPress administrative pages
- Correlate administrator session anomalies, such as unexpected session token changes, with recent clicks on external links
How to Mitigate CVE-2024-5613
Immediate Actions Required
- Update the Awplife Formula theme to a version later than 0.5.1, which includes the fix delivered in WordPress Changeset #230569
- If an update is not immediately possible, deactivate and remove the Formula theme and switch to an unaffected theme
- Audit WordPress administrator accounts for signs of session abuse and rotate credentials for any potentially affected users
Patch Information
The maintainers addressed the vulnerability in WordPress Changeset #230569, which introduces proper sanitization and escaping on the id parameter before it is used in the AJAX response. Site administrators should apply the patched version through the WordPress theme updater.
Workarounds
- Block or filter requests to /wp-admin/admin-ajax.php when the action parameter equals quality_customizer_notify_dismiss_action at the WAF or reverse proxy layer
- Restrict access to the WordPress admin area by IP allowlist to reduce the exposure surface of authenticated administrators
- Train administrators to avoid clicking untrusted links that reference their own WordPress site domain
# Example ModSecurity rule to block exploitation attempts
SecRule ARGS:action "@streq quality_customizer_notify_dismiss_action" \
"id:1005613,phase:2,chain,deny,status:403,log,\
msg:'CVE-2024-5613 Formula theme XSS attempt'"
SecRule ARGS:id "@rx (?i)(<script|javascript:|onerror=|onload=)" "t:urlDecodeUni"
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

