Skip to content
Write-up Beginner

CSV injection at Comment Section.

A comment field allowed formula injection into a CSV export, so when a user downloaded and opened the comments file in Excel, an attacker-supplied formula could execute and open a malicious website. The attacker could trigger this by posting a crafted comment.

Navneet Follow

Published on medium.com

This article is about a security bug/issue I found on a managed private program at H1(Hackerone).

Navneet, on medium.com

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

Root cause

Likely the application did not neutralise spreadsheet formula characters in user-supplied comment data before exporting it to CSV.

Impact

An attacker could make a victim's spreadsheet open a malicious website when the victim opens the exported comments file.

What the attacker needed

Ability to post a comment; victim downloads comments as CSV; victim opens the file in Excel

The fix

The bug was fixed, though the text does not describe the fix; typically formula-leading characters should be escaped or prefixed in CSV exports.

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 website lets you type something that ends up in a spreadsheet file. If that text starts with a special character like '=', Excel treats it as a formula and runs it. Here, a comment could contain a formula that, when the file was opened, made the browser visit a bad site.

More by Navneet

View all

6 more disclosed reports, best first.

Similar reports

Same bug class and techniques, clearest first.