: <i>leaking NTLM Hashes vulnerability & Denial Of Service vulnerability</i> plus 7 other changes
by
.
D 2022-03-07T19:54:47.874
J closedate 2459646.32972076
J closer sebres
J icomment <blockquote><i>>\sDenial\sof\sService\svulnerability</i></blockquote>\r\n\r\nNeither\sthis\sis\sa\sDoS\svulnerability,\snor\sthis\shas\ssomething\sto\sdo\swith\svulnerability\sat\sall.\r\n\r\nEvery\skind\sof\sunverified\suser\sinput\sevaluating\sdirectly\sin\sscript\slanguage\sprocessor\sis\sevil.\sEven\sa\ssimplest\sbusy\sloop,\slike\s<code>while\s1\s{}</code>\smay\sblock\sa\sthread\swith\sfull\sload.\r\n\r\n<blockquote><i>>\sthis\sinformations\sshows\sthat\swish.exe\sand\swish86.exe\sare\scrashed</i></blockquote>\r\n\r\nThey\sare\snot\scrashed\sbut\scontrolled\sterminated\s(panic\sto\sstdout\sand\sexit\swith\serror\scode).\r\nYour\sTcl\sseems\sto\sbe\s32-bit\sversion,\sthus\sit\sis\ssubject\sto\sthe\ssame\srestrictions\sas\sany\sonther\s32-bit\sprocess\s(cannot\sallocate\smore\sthan\s2GB\smemory),\swhat\san\sevaluation\sof\ssuch\slong\s(unknown)\scommand\smay\simply.\r\n\r\nSimilar\sbehavior\syou\scould\ssee\susing\sthis\s(depending\son\sversion):\r\n<pre><code>\r\n>\secho\sputs\s-nonewline\s"eval\s";\sputs\s[string\srepeat\sA\s1000000000];\s\s|\stclsh86\s|\stclsh86\r\nunable\sto\srealloc\s478150625\sbytes\r\n</code></pre>\r\n\r\nBasically\sNOMEM\sis\san\sextraordinary\ssituation\sso\sthere\sis\salmost\snothing\sone\scan\sdo\sto\savoid\sthis\sexcepting\sprobably\san\sattempt\sto\sshow\sa\smessage\sbox\swith\serror\sin\sUI\scase\s(in\stk\sapplicaion,\se.g.\susing\swish).\sSimplest\sway\sto\sachieve\sthat\swould\sbe\sto\sset\sanother\spanic\shandler\swith\s<code>Tcl_SetPanicProc</code>\swhich\swould\stry\sto\sshow\snative\smessage\sbox\sand\sthen\sexit.\r\n\r\nThere\sare\smany\scorner\scases\swhere\sone'd\sneed\sto\s"fix"\sit,\sbut\sthe\seffort\sand\scosts\sare\stoo\slarge\sto\shandle\sNOMEM\sin\ssome\sdifferent\sway,\se.\sg.\sstop\scommand/script\sevaluation\sonly\sand\sput\san\serror\s"invalid\scommand"\s(which\smay\sbe\sagain\stoo\slong\sfor\sthis\sparticular\scase).\r\n\r\nAnd\slast\sbut\snot\sleast,\sneither\sany\s"fix",\snor\sa\s64-bit\sbuild\sof\sthe\sTcl\slibrary\swould\smake\sit\ssafe\seither.<br/>\r\nSuch\san\sunfiltered\sforeign\sinput\sevaluated\sin\stcl\sdirectly\scan\sopen\smuch\smore\sattack\svectors\sthan\ssimple\sDoS,\sbecause\sthe\sscript\swould\sevaluate\severything\sin\scontext\sof\sthe\suser\sand\sso\scan\sdo\sbasically\severything\swhat\spermissions\sallow,\sfor\sinstance\sdelete\sfiles\sor\sdirectories,\ssend\sspam,\sbuild\sa\ssmall\sPE\s(virus)\sand\sstart\sthem\shereafter,\setc.\s\r\nBut\sthis\sis\snot\smatter\sof\sTcl\sand\svalid\sfor\severy\sscript\slanguage.
J login sebres
J mimetype text/x-fossil-wiki
J resolution Invalid
J status Closed
J subsystem 41.\sMemory\sAllocation
K a6ba4e271400a01a17b9e07f65304252872005c7
U sebres
Z 644f81e8398e34387f2b49704688ef0e