Skip to content

Commit

Permalink
updates to rec for CSV Injection
Browse files Browse the repository at this point in the history
  • Loading branch information
RRudder committed May 10, 2023
1 parent e6286ff commit 3ddb369
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Recommendation(s)

It is recommended to sanitize the input fields of CSVs so that the content is read as text only by the spreadsheet editor
It is recommended to validate and sanitize the input fields of CSVs so that the content is read as text only by the spreadsheet editor. The appropriate content type should also be set in the response header when serving CSV files. For example, `Content-Type: text/csv`.
Additionally, dynamic formula injection can be prevented by not allowing user-supplied input to be directly interpreted as a calculation or formula. This can be achieved by removing the functionality, or implementing a separate mechanism that handles the user input securely.

For more information, please see:

Expand Down

0 comments on commit 3ddb369

Please sign in to comment.