Skip to content
Disclosed report Beginner

Persistent CSV injection

A notes feature allowed users to save spreadsheet formulas as note content, which were then written unescaped into an exported CSV file. An attacker could store a formula that, when the file is opened in a spreadsheet application, may run commands on the victim's machine.

8r33 Follow

Originally disclosed on HackerOne

  • Disclosed after 32 days

Hi Team,

https://www.semrush.com/notes is vulnerable to persistent csv injection (stored csv injection)

POC:

  1. Login into application and open https://www.semrush.com/notes

  2. click on "Add note" button

  3. And enter csv injection payloads like =4+4, =HYPERLINK("http://evil.com", "EVIL") and click on save

  4. and click on "Export to CSV"

  5. Open the downloaded csv file

  6. Observe the payload you entered in the above step

Reference: https://payatu.com/csv-injection-basic-to-exploit/

Impact

Attacker can execute kernel/OS level commands from victims machine.

As it is stored at database, so users across SEMrush who ever downloads that csv file will be victims for the attacker.

Also attacker can use victims to perform DDOS attack from victims machines.

Attachments

2.png
2.png From the original on HackerOne
3.png
3.png
4.png
4.png

The original report as published on HackerOne, by 8r33. 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 export wrote note content into CSV cells without escaping leading formula characters such as equals signs.

Impact

An attacker could execute OS-level commands on a victim's machine and use victims for DDoS.

What the attacker needed

A user account; victim opens the exported CSV in a spreadsheet

How it was found

  1. Log in and open the notes page.
  2. Click the button to add a note.
  3. Enter a spreadsheet formula as the note content and save it.
  4. Use the export to CSV option.
  5. Open the downloaded CSV file and observe the formula.

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 injection happens when a program puts user text into a spreadsheet file without neutralising characters that spreadsheets treat as formulas. If a victim opens the file, the spreadsheet may calculate the formula, and some formulas can trigger external actions. Here the malicious text was saved in a notes feature and exported to CSV for other users.

More by 8r33

View all

1 more disclosed report, best first.

More from Semrush

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.