Security
Headlines
HeadlinesLatestCVEs

Headline

Panel.SmokeLoader MVID-2024-0681 Cross Site Scripting

Panel.SmokeLoader malware suffers from a cross site scripting vulnerability.

Packet Storm
#sql#xss#vulnerability#web#redis#js#php#auth
Discovery / credits: Malvuln (John Page aka hyp3rlinx) (c) 2024Original source: https://malvuln.com/advisory/4b5fc3a2489985f314b81d35eac3560f.txtContact: [email protected]: twitter.com/malvulnThreat: Panel.SmokeLoader Vulnerability: Cross Site Scripting (XSS)Family: SmokeLoader Type: Web Panel MD5: 4b5fc3a2489985f314b81d35eac3560f  (control.php)SHA256: 8d02238577081be74b9ebc1effcfbf3452ffdb51f130398b5ab875b9bfe17743Vuln ID: MVID-2024-0681Disclosure: 05/11/2024Description: 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}\"%3EInterestingly, 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=12) http://x.x.x.x/SmokeLoader/control1.php?page=fgrab&mode=reports&forms_sri=%22/%3E%3Cscript%3Ealert((document.cookie)%3C/script%3E3) 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%3E4) http://x.x.x.x/SmokeLoader/control1.php?page=fgrab&mode=reports&forms_srd=%22/%3E%3Cscript%3Ealert(%22malvuln%22)%3C/script%3EDisclaimer: 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).

Packet Storm: Latest News

CUPS IPP Attributes LAN Remote Code Execution