Hacking GitHub's Auth with Unicode's Turkish Dotless 'I'
I love Unicode, but I&#x27;m more and more coming to the conclusion that strings are evil and should be treated as opaque byte arrays, whose only available operation is rendering into a bounded area. I now see any other string operation as code smell.<p>It&#x27;s scary how much of our infrastructure relies on strings, given how few guarantees string operations actually give. Take files names, for example. Two visually identical file names may map to different files (because confusables[1]), or two <i>different</i> names map to the <i>same</i> file (because normalization[2]), or the &quot;.jpg&quot; at the end may not actually be the extension (because right-to-left override[3]), not to mention names with newlines or backspaces in them, and inconsistencies between operating systems.<p>I would go as far as blaming our overreliance on strings for all the injection attacks we see (XSS, SQL, command, etc).<p>[1] <a href="https:&#x2F;&#x2F;unicode.org&#x2F;cldr&#x2F;utility&#x2F;confusables.jsp" rel="nofollow">https:&#x2F;&#x2F;unicode.org&#x2F;cldr&#x2F;utility&#x2F;confusables.jsp</a><p>[2] <a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;archive&#x2F;qa&#x2F;qa1173&#x2F;_index.html" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;archive&#x2F;qa&#x2F;qa1173&#x2F;_index...</a><p>[3] <a href="https:&#x2F;&#x2F;krebsonsecurity.com&#x2F;2011&#x2F;09&#x2F;right-to-left-override-aids-email-attacks&#x2F;" rel="nofollow">https:&#x2F;&#x2F;krebsonsecurity.com&#x2F;2011&#x2F;09&#x2F;right-to-left-override-a...</a>