CSV Injection with the CSV export feature
The CSV export feature allowed formulas to be included in exported files, which Excel would execute on the client's computer. An attacker could potentially run formulas when a victim opens the exported CSV in Excel.
Originally disclosed on HackerOne
- Triaged in 43 hours
- Fixed in 29 days
- Paid in 30 days
- Disclosed after 2 months
Summary by the program
This researcher pointed at that is was possible to include formulas in the CSV export of Moneybird. Because these CSV files are interpreted by Excel, the formulas are executed on the clients computer. We are now filtering the input into the CSV export to prevent this behaviour.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the CSV export did not sanitise or escape cells that begin with formula characters, so spreadsheet software treated them as formulas.
Impact
A crafted CSV export could cause formulas to execute on a victim's computer when opened in Excel, though the report does not demonstrate a specific outcome.
What the attacker needed
Ability to enter data that appears in CSV export; victim opens exported CSV in Excel
The fix
The CSV export now filters input to prevent formula injection.
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 report has not been written yet. The Original tab links to the source.
CSV files are plain text tables that Excel can open. If a cell starts with a formula, Excel may run it. This report says the export did not block such formulas, so a malicious entry could end up in a downloaded file.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.