<i>exec broken for command having windows environment variables</i> status still Open with 3 other changes
by
.
D 2023-10-25T10:37:47.177
J icomment Thanks\sHarald,\syou're\sa\sreal\shistorian\sfor\sTcl\s:-)\r\n\r\nRightly\sor\swrongly,\sTcl\sseems\sto\sbe\sthe\sonly\slanguage\s(it's\sbeen\sproposed\sfor\sother\slanguages\sas\swell)\sthat\shas\sincorporated\sthis\s"fix".\sI'm\sskeptical\sof\sthe\sutility\sof\sthis\sgiven\sthat\sfor\sprograms\sexec'ing\scmd.exe,\sthis\swould\sbe\slike\splugging\sa\ssingle\shole\sin\sa\srather\slarge\ssieve.\sIf\sthe\sattacker\shas\scontrol\sof\sthe\sarguments\sas\sseemingly\srequired\shere,\swhat\sis\sto\sstop\shim\sfrom\ssimply\shaving\sthe\sarguments\sbe\s"format\sC:"\sfor\sexample?\sOr\sgiven\sthat\scmd.exe\sis\sa\s(very\spoor)\slanguage,\sto\sconstruct\sa\scommand\s(using\spipes,\s`for`\sand\sfriends)\sor\srecurse\sin\sany\snumber\sof\sways?\r\n\r\nSo\seven\sthough\sthe\sissue\smight\sbe\sreal,\sI\swould\snot\shave\sbeen\sin\sfavour\sof\sa\schange\sthat\sis\sincompatible,\safaict\sprecludes\slegitimate\suses,\sand\sonly\saddresses\sa\ssingle\spoint\sin\sthe\sattack\ssurface.\r\n\r\nIt's\swater\sunder\sthe\sbridge\sbut\sfor\sfuture\sreference\sfor\sanyone\shaving\sthe\sinclination\sto\spursue\sthis,\sinformative\slinks\son\sintricacy\sof\sWindows\scommand\sparsing:\r\n\r\nhttps://daviddeley.com/autohotkey/parameters/parameters.htm#WIN\r\n\r\nhttps://blogs.msdn.microsoft.com/twistylittlepassagesallalike/2011/04/23/everyone-quotes-command-line-arguments-the-wrong-way/
J login apnadkarni
J mimetype text/x-markdown
K fb2fa9b3f6467ee66f543ec904e37aa8508f2fb1
U apnadkarni
Z a695b4b2b7bcb965c9a9c43faeca26c5