HexBrain

HackerOne · Report #72785

CSV Injection with the CVS export feature

Validstatus
13upvotes
21 Sept 2015disclosed

How it was found

The "Download as a CSV" feature of HackerOne does not properly "escape" fields. This allows an adversary to turn a field into active content so when a response team download the csv and opens it, the active content gets executed. Here is more information about this issue: http://www.contextis.com/resources/blog/comma-separated-vulnerabilities/

Here is one method to reproduce this issue:

  1. As a researcher, I can report an issue with a name starting with "=1+1"
  2. As a response team, I choose to export all issues found to CSV containing the issue in (1)
  3. As a response team, I now open this CSV file in excel or another spreadsheet program
  4. You can see the cell containing the issue name in (1) is displayed as "2" which means the code is executed.

Mitigation: Ensure all fields are properly "escaped" before returning the CSV file to the user.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original