NinjaScanner WordPress Plugin Arbitrary File Deletion Vulnerability

Vulnerability

A vulnerability allowing authenticated users with Administrator-level access to delete arbitrary files on the server has been identified in the NinjaScanner – Virus & Malware scan plugin for WordPress. This issue arises from inadequate file path validation in the 'nscan_ajax_quarantine' and 'nscan_quarantine_select' functions, affecting all versions through 3.2.5. Exploitation of this vulnerability could lead to the deletion of files outside the WordPress root directory.

Impact

Successful exploitation allows for arbitrary file deletion on the server, including files outside the WordPress root directory.

Reproduction

To reproduce this vulnerability, an authenticated user with Administrator-level access can send a request to the 'nscan_ajax_quarantine' action via the WordPress AJAX API. The request must include a base64-encoded file path of the file to be deleted, along with a valid nonce for the operation. The 'nscan_quarantine_select' function can also be used to delete files that have been flagged as suspicious by the scanner.

Remediation

Users are advised to update the NinjaScanner WordPress plugin to version 3.2.6 or later.

Added: Jul 31, 2025, 1:20 PM
Updated: Jul 31, 2025, 1:20 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.6
exploitability
5.8
remediation
7.7
relevance
0.3
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.