Skip to content
File upload Disclosed report Intermediate

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.

padillac Follow with tehryanx

Originally disclosed on HackerOne

Bounty$1,500 High 8.7 View original
  • 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

https://www.youtube.com/watch?v=cIlGfnn4iG8

The original report as published on HackerOne, by padillac. 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 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.

More by padillac

View all

1 more disclosed report, best first.

More from Slack

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.