News for hackers. Stuff that matters.
Re:Dangers of CSV Injection by fulafel on Tuesday October 10, 2017 @01:24AM (#15439561)
I think the common model people had of CSV was that it was an imperfect way to transfer values, but safeish from code execution, XSS or "all your Google account data gets exfiltrated" type effects.
Re:Dangers of CSV Injection by mulmen on Tuesday October 10, 2017 @05:11AM (#15440436)
The problem isn't with CSV, it is with spreadsheet applications.
Re:Dangers of CSV Injection by fulafel on Tuesday October 10, 2017 @11:55PM (#15447162)
Users associate application behaviour with file formats.

Analogy: people think PDF files are safe, but aren't aware of the constant stream of RCE vulnerabilities that is Acrobat Reader & how widely it's used, which invalidates their model of behaviour associated with PDF files.

Re:Dangers of CSV Injection by mulmen on Wednesday October 11, 2017 @12:39AM (#15447332)
In this case the users are wrong and so are the spreadsheet applications.
Re:Dangers of CSV Injection by benmmurphy on Tuesday October 10, 2017 @07:42AM (#15440958)
i don't know why spreadsheet applications don't standardise on a file extension that they won't screw with. call it csf or something. treat it like pure CSV except don't interpret =/@ or any of the other weirdness. basically just interpret all fields as plain strings as default [even if they look like numbers]. this way everything is backwards compatible old 'weird CSV' files still work and those that care about their users can use .csf and the files won't endanger their users.
Re:Dangers of CSV Injection by mulmen on Tuesday October 10, 2017 @08:01AM (#15441051)
Yeah or they could just make "mangle my CSV files" an option buried in the config somewhere. I'd even open up regedit.
Re:Dangers of CSV Injection by mark-r on Tuesday October 10, 2017 @10:30AM (#15442066)
That would make safety an "opt in" measure, it should be "opt out" instead. Make the CSV format stop interpreting formulas unless you specifically ask it to. Most people don't put formulas in their CSV files anyway.
Re:Dangers of CSV Injection by mulmen on Tuesday October 10, 2017 @01:18PM (#15443539)
The CSV format doesn't interpret anything, it's spreadsheet applications doing that.
Re:Dangers of CSV Injection by mark-r on Tuesday October 10, 2017 @02:13PM (#15444013)
Sorry if I was unclear, that was exactly what I meant - applications that open CSV files.