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

Ruby has a taint mode for String too. I think it's used in Rails, or maybe they rolled their own, but the concept is definitely there.

Problem is, at some point you have to be able to display user-entered data. You indeed mark it as tainted, or equivalent, then escape it as best you can. The issue here was a bug in the escaper. Tainting was working as planned.



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

Search: