Tricking the "Create snippet" feature into displaying the wrong filetype can lead to RCE on Slack users
The Create snippet feature displayed an incorrect file type for uploaded files, so an executable could appear as a benign CSV. An attacker could trick a Slack user into downloading and running the executable, leading to remote code execution on the victim's machine.
- Triaged in 13 days
- Fixed in 49 days
- Paid in 38 days
- Disclosed after 3 months
Summary by the program
An issue in Slack's Create snippet feature results in filetypes being displayed incorrectly. This can lead to RCE if a Slack user downloads an executable file thinking that it is a CSV or other benign file type.
Summary by the researcher
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 snippet creation feature did not properly validate or enforce the file type, allowing the displayed type to differ from the actual content.
Impact
A Slack user could download an executable believing it to be a benign file such as a CSV, and running it would allow remote code execution on their machine.
What the attacker needed
Victim downloads and runs the file
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.
Slack lets you create a 'snippet', which is a small text file. The bug made Slack show the wrong file type for that snippet, so a dangerous program could look like a harmless spreadsheet. If someone downloaded and opened it, the program could run on their computer.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.