Prasathmani TinyFileManager Path Traversal Vulnerability in filemanager.php POST Parameter Handler

Vulnerability

A path traversal vulnerability exists in Prasathmani TinyFileManager versions up to 2.6. The issue arises in the filemanager.php component, specifically within the POST parameter handler. The vulnerability allows authenticated, non-read-only users to delete arbitrary files outside the application's root directory by manipulating the file[] POST parameter. The mass delete handler fails to properly sanitize input, enabling traversal sequences to escape the web root and target files in the /tmp directory.

Impact

Exploitation of this vulnerability allows for the deletion of any file accessible by the web server process, outside the application's managed directory.

Reproduction

To reproduce this vulnerability, first create a file outside the web root, such as in the /tmp directory. Then, send a POST request to filemanager.php with a crafted file[] parameter that includes traversal sequences to navigate out of the web root and into the /tmp directory, targeting the file created earlier. After the request is processed, verify that the file has been deleted.

Remediation

The vulnerability can be addressed by applying the fm_clean_path() function to each entry in the file[] array before constructing the target path, ensuring consistent input sanitization as applied in other file operation handlers.

Added: Apr 17, 2026, 3:23 PM
Updated: Apr 17, 2026, 3:23 PM

Vulnerability Rating

Custom Algorithm
spread
5.0
impact
1.7
exploitability
6.6
remediation
0.0
relevance
6.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.