CSV Injection at the CSV export feature
The CSV export feature did not properly escape fields, allowing an attacker to inject a formula that would execute when the CSV is opened in Excel. An attacker could create a ticket with a malicious title and trick a victim into opening the exported CSV, leading to code execution.
Originally disclosed on HackerOne
- Triaged in 47 hours
- Fixed in 2 months
- Paid in 2 months
- Disclosed after 3.1 years
Hi there, I have find a way to bypass the mitigation done in #72785 and #111192.
What happens if an attacker creates a Ticket with the Tittle ":";-3+3+cmd|' /C calc'!D2. The ; will break the field making excel think that there are two fields. Although, you are using "" to encapsulate a field and , to separate them, its possible to break one field in two.
Normal case:
118470,333333,open,new,Denial of Service,2016-02-24 17:43:52 UTC,,,,,,perra,,no,,
Case where the field is splitted:
118555,"'"":"";-3+3+cmd|' /C calc'!D2",open,new,"Design Issue,Missing Best Practice",2016-02-24 19:31:14 UTC,,,,,,perra,,no,,
Once the CSV is create excel will ignore the " and split the field into two by taking into account the ;.
I have tried in:
- Excel Office 2013 on W8.1
- Excel Office 2016 on windows 10
In all cases the code got executed.
I attach one picture with the executed code.
To Reproduce the issue:
1- Create a Ticket with the following name ":";-3+3+cmd|' /C calc'!D2.
2- Export it to CSV
3- Open the CSV. Check attached picture to see the executed code.
If you have further question do not hesitate to ask me.
Best, ███████
Attachments

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 properly escape user-controlled fields, and semicolons used as field separators allowed breaking out of quoted fields.
Impact
An attacker could execute arbitrary commands on a victim's machine if the victim opens the exported CSV in Excel, as demonstrated on Excel 2013 and 2016.
What the attacker needed
Attacker can create a ticket; victim exports and opens CSV in Excel
How it was found
- Create a ticket with a title containing a formula and semicolon.
- Export the ticket list to CSV.
- Open the CSV file in Excel; the formula executes.
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. This report shows the export feature failed to neutralise a crafted ticket title, so a formula ran when the CSV was opened in Excel.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.