
🐍 CVE-2021-45010용 Python 익스플로잇
🐍 CVE-2021-45010을 위한 조작된 Python PoC 익스플로잇 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
Tiny File Manager는 업로드를 시도하기 전에 GUI에 표시된 상대 경로의 쓰기 권한을 확인합니다. 경우에 따라 디렉터리 트래버설을 이용하기 전에 GUI에서 쓰기 가능한 상대 경로를 찾아야 합니다.
// tinyfilemanager.php (2.4.3)
$targetPath = $path . $ds;
if ( is_writable($targetPath) ) {
$fullPath = $path . '/' . $_REQUEST['fullpath'];
실제 웹 루트가 실행 중인 사용자에 의해 쓰기 가능하지 않은 경우, 쓰기 가능한 상대 경로를 지정하세요.
python3 -m pip install cve_2021-45010-1.0.0-py3-none-any.whl