Bug Bounty Journal — Day 1: CSV Injection, No Impact?
A POS web dashboard's export feature stored user-supplied input without sanitisation, allowing spreadsheet formulas to be injected into exported CSV files. An attacker could craft a payload that executes or triggers suspicious behaviour when another user opens the exported file in Excel.
medium.com
Published on medium.com
I spent hours digging into a POS web dashboard and eventually uncovered a textbook case of CSV Injection via the “Export feature” — I submitted the report right away.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could execute commands or trigger suspicious behaviour on another user's machine when that user opens the exported CSV in Excel, though the vendor disputed the impact.
What the attacker needed
Access to add or edit customer/product data; victim exports and opens CSV in Excel
How it was found
- At one outlet, enter a formula payload into customer or product data.
- The payload is stored in the central database without sanitisation.
- An employee from another outlet or the admin exports the data to CSV.
- The employee opens the CSV file in Excel, triggering the payload.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
CSV injection happens when a program puts user input into a spreadsheet file without cleaning it. If that input starts with a special character like '=', the spreadsheet program may treat it as a formula and run it. Here, one user could enter such a formula, and when another user exported and opened the file, the formula could run on their computer.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.