3 ms·
It's not just the nonchalant mindset; it's the thought that because you pick something you don't expect to form part of your input domain, you don't have to esc
by JoshTriplett 13y ago
It's not just the nonchalant mindset; it's the thought that because you pick something you don't expect to form part of your input domain, you don't have to escape. Either you have to actually restrict your input domain, or you need escaping.
- userbinator 13y agoThis, very much this! Escaping should always be a consideration. Not thinking about it, thinking "it'll never happen", etc. is what leads to things like HTML and SQL injection vulnerabilities. If you're inputting or outputting data in any format, always keep in mind things like "what are the delimiters? What if the data in the input/output contains them?"
- dfc 13y agoHow is this any different than reading ASN.1 data and not worrying about the size of integers?