4 ms·
Leaving aside the pain of displaying and typing such characters... > Then you have a text file format that is trivial to write out and read in, with no restric
by JoshTriplett 13y ago
Leaving aside the pain of displaying and typing such characters...
> Then you have a text file format that is trivial to write out and read in, with no restrictions on the text in fields or the need to try and escape characters.
Phrases like that lead to lovely security bugs.
- dfc 13y agoThe thing that leads to "lovely security bugs" is the nonchalant mindset; it has nothing to do with the simple text format. The same attitude paired with ASN.1 data has caused just as many vulnerabilities.
- JoshTriplett 13y agoIt'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?
- mistercow 13y agoYes, but simple filtering is a lot easier than escaping.