<i>Security: Invalid UTF-8 can inject unexpected characters</i> status still Closed with 5 other changes
by
.
D 2017-05-31T14:02:31.062
J closedate 2457905.08508066
J closer sebres
J icomment The\ssecurity\speople\s(I\shope\sI\smay\ssay\sbelonging\sto\sthose\sto\ssome\sextent)\ssay\s-\sit\sis\srather\sundefined\sbehavior,\sbut\snot\sdirectly\sa\skind\sof\svulnerability\sin\ssense\sof\s"tcl\shas\spossible\ssecurity-leak\swith\sgrave\simpact".\r\n\r\nThe\sfact\sis:\sif\syou\sread\ssomething\sfrom\sforeign\sinput\sand\swant\sto\sescape/validate\sit\ssomehow,\syou\sshould\sact\sin\sthe\starget\sencoding\s(and\snever\swith\sthe\sraw\sinput).\sThis\sis\sone\sof\sthe\sfirst\srules,\sthat\swill\sbe\sapplied\sby\ssecurity-audits.\r\n\r\nI\smean\sthat\sit\sshould\sbe\sconverted\spreviously...\sOr\stwice\s(before\sand\shereafter).\r\n\r\nJust\sas\sexample:\r\n<pre><code>\r\n%\sputs\s[set\sbuf\s"\\xc0\\xbcscript\s..."]\r\nÀ¼script\s...\r\n%\sset\sbuf\s[encoding\sconvertfrom\sutf-8\s$buf];\s#**\simportant\sbefore\svalidate\s**\r\n<script\s...\r\n%\sif\s{[regexp\s-nocase\s{<script}\s$buf]}\s{error\sNOT-PERMITTED}\r\nNOT-PERMITTED\r\n</code></pre>\r\n\r\nJust\sas\ssome\sthoughts\sfor\syour\sinfo.\sI'm\sdoing\salready\stoo\smuch\ssec-audits\s(including\sthe\ssource\scode).\r\n\r\nDon't\smisunderstand\smy\samount,\sI'm\snot\swith\sDon\shere\s(in\scontrary\sthe\schanges\slooks\sgood\sto\sme),\sbut...\sBut\sI\sdo\snot\ssee\sthis\snecessarily\sas\sargument\sfor\stheoretical\svulnerability\sto\sfix\sASAP.\r\nBut\salso\sI\sdon't\ssee\sstill\sany\sreasons\sto\srevert\sit\sASAP.
J login sebres
J mimetype text/x-fossil-wiki
K 67aa9a207037ae67f9014b544c3db34fa732f2dc
U sebres
Z d7f696ce0b6774ba0235ed5eeba8f804