Hacker News new | ask | show | jobs
by paulryanrogers 606 days ago
Robustly against malicious input. A secure parser won't interpret user input as instructions, period.
1 comments

As I get it, inputs aren’t an issue, failure to correctly escape outputs to match the target format is.
I liked perl's taint mode. It seemed pretty good against the "oops, forgot to sanitise this and you used it as output" situation that probably accounts for a lot of these issues. It won't force you to correctly sanitise, but assuming you have that capability it lets you know about gaps so you can plug them.
Good point, both are needed: secure parsing and secure rendering.