
🐍 Exploit Python para CVE-2021-45010
🐍 Exploit PoC Python Forjado para CVE-2021-45010. Tiny File Manager < 2.4.7
usage: main.py [-h] -u URL -l USERNAME -p PASSWORD [-g GUI_PATH] [-r FS_RELPATH]
options:
-h, --help show this help message and exit
-u URL, --url URL Base URL
-l USERNAME, --username USERNAME
Username
-p PASSWORD, --password PASSWORD
Password
-g GUI_PATH, --gui-path GUI_PATH
GUI relative path for upload (default: /)
-r FS_RELPATH, --fs-relpath FS_RELPATH
Filesystem relative path (from web root) to write to
O Tiny File Manager verifica o caminho relativo (conforme visto na GUI) para permissões de gravação antes de tentar o upload. Em alguns casos, um caminho relativo gravável na GUI deve ser encontrado antes de tentar explorar a travessia de diretório.
// tinyfilemanager.php (2.4.3)
$targetPath = $path . $ds;
if ( is_writable($targetPath) ) {
$fullPath = $path . '/' . $_REQUEST['fullpath'];
Se a raiz web real não for gravável pelo usuário em execução, especifique o caminho relativo para uma que seja.
python3 -m pip install cve_2021-45010-1.0.0-py3-none-any.whl