SYM_PY_0197 - SymbioticSec/Symbiotic-Vulnerability-Database GitHub Wiki

Improper Neutralization of Formula Elements in a CSV File

Property Value
Language python
Severity medium
CWE CWE-1236: Improper Neutralization of Formula Elements in a CSV File
OWASP A01:2017 - Injection
Confidence Level Medium
Impact Level Medium
Likelihood Level Medium

Description

Detected user input into a generated CSV file using the built-in csv module. If user data is used to generate the data in this file, it is possible that an attacker could inject a formula when the CSV is imported into a spreadsheet application that runs an attacker script, which could steal data from the importing user or, at worst, install malware on the user's computer. defusedcsv is a drop-in replacement with the same API that will attempt to mitigate formula injection attempts. You can use defusedcsv instead of csv to safely generate CSVs.