Warehouse Management System Arbitrary File Deletion Vulnerability

Vulnerability

An authenticated arbitrary file deletion vulnerability exists in Warehouse Management System version 1.2. The vulnerability arises in the /goods/deleteGoods endpoint, where the user-controlled goodsimg parameter is concatenated with the server's UPLOAD_PATH and passed to the File.delete() method without proper validation. This flaw allows remote authenticated attackers to delete arbitrary files on the server by exploiting directory traversal payloads.

Impact

Exploitation of this vulnerability allows authenticated users to delete any file on the server's filesystem, including system configuration files, application files, uploaded data, and log files. Deleting critical system files could lead to a denial-of-service condition or a complete breakdown of the application.

Reproduction

To reproduce this vulnerability, send a POST request to the /goods/deleteGoods endpoint with a goodsimg parameter that includes a directory traversal payload, such as ../a.txt. Ensure that the JSESSIONID cookie is included to authenticate the request. The file specified in the goodsimg parameter will be deleted if the server has permission to remove it.

Remediation

It is recommended to implement path normalization to block traversal, reject absolute paths, and enforce file deletion only within a designated whitelist directory. Additionally, validate that the file is genuinely associated with the corresponding goods entry and consider using server-side file ID mapping instead of direct path references.

Added: Dec 5, 2025, 5:27 PM
Updated: Dec 5, 2025, 8:17 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
4.6
remediation
0.0
relevance
1.4
threat
6.4
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.