Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

These unicode attacks are interesting and unicode is far too useful to stop from using it. The question is what can we do to fix some of these issues? Like the RTL character. It shouldn't be blocked as it has a valid use case, but is there a non malicious use case for it when surrounded by normal latin characters? eg: abc[RTL]def

If it's just one RTL character then that should be fairly easy to filter out. Of course if that's a way a filter works then there will be other unicode characters you can add to the mix and still make it look the same for an average user and pass that particular filter.

One could identify unicode characters that belong to a particular character set (say latin) and see if some text contains more as one character set. Then invoke the filter if a text has more as 2 different character sets. Of course I can see that getting in the way of some use cases as well (text with translations in 3 languages for example)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: