Hacker News new | ask | show | jobs
How to export Django data faster than ever before (californiacivicdata.org)
2 points by palewire 3211 days ago
1 comments

This is cool. Is there a way to automatically sanitize for CSV Injection vulnerabilities? (I.e. stripping out Excel macros.)
I hadn't considered that. It only accepts CSVs, not Excel files, right now. If you can provide an example of a dangerous file we can try testing against it.
I meant in terms of what it's outputting from the models, not what it's accepting as input. Since most apps accepts accept input from users via API endpoints or forms, sanitizing the output strikes me as more important than sanitizing the input, although ideally both should happen.

I don't have any good example data, but this is what I'm talking about:

https://github.com/wagtail/wagtail/issues/3466

A lot of folks don't care about this if they are making libraries for users, since it's really an issue with Excel, but if people within your company are the ones who are going to be potentially getting pwned then it makes less sense to me to just blame MS or whatever.

Thanks for the tip. This is something I was unaware of.