DPanel Path Traversal Vulnerability Leading to Arbitrary File Deletion

Vulnerability

An arbitrary file deletion vulnerability has been identified in DPanel, an open-source server management panel written in Go. This vulnerability exists in versions prior to 1.9.2, specifically within the '/api/common/attach/delete' interface. Authenticated users can exploit this issue to delete arbitrary files on the server by leveraging path traversal techniques. The vulnerability arises because the 'Delete' function in 'app/common/http/controller/attach.go' file directly passes the user-submitted 'path' parameter to 'storage.Local{}.GetSaveRealPath' and then to 'os.Remove', without adequate sanitization or validation for path traversal characters. Although the 'GetSaveRealPath' function resolves '../' characters, it does not enforce a chroot or jail, allowing for exploitation.

Impact

Exploitation of this vulnerability allows for unauthorized deletion of files on the server.

Reproduction

To reproduce this vulnerability, log into the DPanel administrative backend and obtain an authorization token. Then, send a POST request to the '/dpanel/api/common/attach/delete' endpoint, including the authorization token and a path traversal payload in the 'path' parameter to delete a targeted file, such as '/tmp/1.txt'.

Remediation

Users can upgrade to DPanel version 1.9.2 or later to address this vulnerability.

Added: Jan 15, 2026, 5:30 PM
Updated: Jan 15, 2026, 5:30 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
6.7
exploitability
6.6
remediation
0.0
relevance
2.1
threat
6.4
urgency
2.9
incentive
0.0

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