Skip to content
XSS Disclosed report Intermediate

Stored XSS in Slack (weird, trial and error)

A stored cross-site scripting flaw existed in Slack where a crafted SVG payload with an onload handler could be injected into messages, posts, snippets and comments. An attacker could execute script in another user's browser, though the reporter notes it sometimes required repeated attempts.

harrymg Follow

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Fixed in 6 days
  • Paid in 6 days
  • Disclosed after 13 days

Hi slack. I found a weird, trial and error Stored XSS in Slack... I hope you can get clear of this and get it too.. and I hope you can find the XSS too. Anyway here it is (according to what I did):

  1. Go to your Slack or create a new Slack team.
  2. In slackbot.. enter this payload: <svg onload=prompt(document.domain)>
  3. Then, Create a new post and enter the same payload too (as title, and in one paragraph, one code)
  4. Share it to slackbot,, and comment using the XSS payload given
  5. Then create a snippet.. enter the payload as well... and it is HTML or any format..
  6. Add comment using the XSS payload.
  7. Click Create snippet

then I refreshed my slack.. I suddenly got an XSS payload.. In some cases, this will work immediately.. but sometimes... you will have to repeat the process. trial and error..

I hope you understand my report... I have provided videos and pictures for clearer details.

Thanks!

Video link: https://youtu.be/UtYrymMgMb8

Attachments

Screen_Shot_10-28-15_at_10.20_PM_001.PNG
Screen_Shot_10-28-15_at_10.20_PM_001.PNG From the original on HackerOne
Untitled_58.mp4
Screen_Shot_10-28-15_at_10.20_PM.PNG
Screen_Shot_10-28-15_at_10.20_PM.PNG

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

Impact

An attacker could run script in a victim's Slack session, though the exploit was unreliable and sometimes needed repeated attempts.

What the attacker needed

A Slack account or ability to create a team; victim views the crafted content

How it was found

  1. Go to Slack or create a new team.
  2. Enter the payload in a Slackbot message.
  3. Create a new post and enter the payload as title, paragraph and code.
  4. Share the post to Slackbot and add a comment with the payload.
  5. Create a snippet with the payload and add a comment with the payload.
  6. Refresh Slack to trigger the XSS.

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.

Cross-site scripting (XSS) is when a website lets an attacker sneak in code that runs in other people's browsers. Here, a specially crafted image tag with a script was saved in Slack messages and posts, so when someone viewed it, the script could run. The reporter found it worked only sometimes, needing several tries.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by harrymg

View all

6 more disclosed reports, 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.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.