Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSV Injection #231

Closed
testerTester0123456789 opened this issue Oct 26, 2020 · 0 comments · Fixed by #245
Closed

CSV Injection #231

testerTester0123456789 opened this issue Oct 26, 2020 · 0 comments · Fixed by #245

Comments

@testerTester0123456789
Copy link

Description/Reproduction:
A CSV injection vulnerability exists in Quepid. If a query contains a CSV injection payload, and a user exports and opens the case containing the query, they may be exploited. Possible attacks include code execution, data theft or phishing. A malicious query could come from an imported CSV file using the "Import Ratings" function, or a user adding a query to the case. An example malicious CSV file which could be imported is :

query,docid,rating
star wars,3574597,3
=cmd|' /C notepad'!'A1',55,5

The CSV injection payload =cmd|' /C notepad'!'A1' could also be added as a query to the case.

Recommendation:
Prevent the following characters from beginning at the start of a cell:
Equals to (“=”)
Plus (“+”)
Minus (“-“)
At (“@”)
In addition, consider alerting administrators and users when malicious input is detected. Possibly by looking for any of these characters after a comma in the CSV file and placing a quote at the beginning of them could help fix this issue.
References: https://owasp.org/www-community/attacks/CSV_Injection

@epugh epugh linked a pull request Nov 17, 2020 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant