[Bug]: Security Vulnerability - Potential CSV Injection attack via Export as CSV chart action #1521
Closed
1 task done
Labels
type: bug 🐛
Something isn't working
Name
Justin Miller
Are you an IBM employee?
Contact Details
[email protected]
What happened?
The "Export as CSV" action does not sanitize CSV output against potential CSV Injection attacks. For example, I was able to name my chart data groups such that Excel attempts to launch an application when opening the exported CSV (demo).
This issue raised by our PEN testers. In my product, chart group names are dynamically defined based on customer-entered values (object names). The issue is a malicous user could take an action (name an object) that would result in another user exporting malicious CSV. If that second user opened that CSV in Excel (common on many computers), the second user would be attacked. As a result, my team had to disable the "Export as CSV" option.
Malicious CSV output example (created by demo) - myChart.csv
Newer versions of Excel protect against these attacks, but older versions may not -
Version
@carbon/[email protected]
Data & options used
Relevant log output
No response
Codesandbox example
https://codesandbox.io/s/carbon-charts-csv-injection-djcnye?file=/src/index.js
What priority level would this be in your opinion?
P0
The text was updated successfully, but these errors were encountered: