Skip to content
RCE Disclosed report Beginner

CSV Injection https://hub.grab.com

A customer name field in the Grab mobile app accepted a spreadsheet formula, which was written into an exported CSV file. When that file was opened in Microsoft Excel, the formula could run a command on the user's machine.

poison Follow

Originally disclosed on HackerOne

Medium 4.3 View original
  • Triaged in 4 hours
  • Fixed in 40 days
  • Paid in 4 days
  • Disclosed after 4 months

Summary by the program

@Poison had pointed out that it was possible to perform CSV Injection on hub.grab.com which was tested on Microsoft Excel 2016. Injection occurred by adding the payload in customer name field in Grab mobile application. The payload used was =cmd|' /C calc'!A0. We fixed this issue by properly sanitizing user input.

On further investigation, we believe that client-side CSV injection should mitigated by the application which would be importing/interpreting data from an external source, as Microsoft Excel does (for example) by showing a warning. In other words, the proper fix should be applied when opening the CSV files, rather then when creating them. Therefore, CSV injection is not in scope of our bug bounty program.

We would like to thank @poison again for reporting this to us and allowing us to fix this issue. we appreciate your help in keeping Grab and our customers safe and secure.

The original report as published on HackerOne, by poison. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 application wrote user-controlled text into a CSV export without neutralising characters that spreadsheet software treats as the start of a formula.

Impact

An attacker could cause a command to run on the machine of anyone who opened the exported CSV in Excel, though the report only demonstrates this on one spreadsheet version and the program argues the importing application should warn users.

What the attacker needed

Ability to set a customer name; victim opens exported CSV in Excel

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.

A CSV file is a plain list of values separated by commas, often opened in a spreadsheet program. Spreadsheet programs treat any cell starting with an equals sign as a formula and may run it, so if a website puts user-supplied text into a CSV without cleaning it, opening the file can trigger that formula. Here the customer name was stored as a formula and later exported into a CSV.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from Grab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.