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

The article is quite correct, of course. But this kind of bug gets tiresome. We saw the same kinds of troubles with SQL for years. And we'll see it again the next time we get a popular technique that involves code that generates code using outside input, and passes it as plain text.

So we need a new rule: If you're going to provide an interface that allows programs to generate code and pass it to something, then you need to deal with these problems proactively. You can provide sanitizing/escaping functionality. Or you can avoid passing code as plain text. Or you can do something else just as good. And proper error handling needs to be the default.

But if you don't address these issues, then your interface is lousy, and it deserves to be treated as such.



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

Search: