Skip to content
XSS Disclosed report Beginner

Self-XSS in posts by formatting text as code

A self-XSS was found in Slack posts where formatting text as code let an SVG payload execute; the reporter demonstrates it by pasting and formatting the payload themselves.

harrymg Follow

Originally disclosed on HackerOne

  • Triaged in 15 days
  • Fixed in 40 days
  • Paid in 15 days
  • Disclosed after 54 days

Hi I have found an XSS in Slack. To reproduce the issue, just follow this:

  1. Go to your Slack account (accountname.slack.com)

  2. Below you will see a plus (+) sign, click that, there will be three options, click "Create Post"

  3. You will be redirected to a page where you will create it.

  4. Type the payload. I used: <svg onload=alert(domain)>. then Highlight it.. on the left side, there are symbols... click it and choose this symbol: ( <>) which is for code..

  5. XSS Pop-up

Youtube video for clearer details:

https://youtu.be/dIvNeb2aRrU

THANKS!

Attachments

slack_xss_1.PNG
slack_xss_1.PNG From the original on HackerOne
slack_xss_2.PNG
slack_xss_2.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

What the attacker needed

Victim pastes payload into a post; victim applies code formatting

How it was found

  1. Go to your Slack account.
  2. Click the plus sign and choose 'Create Post'.
  3. Type the SVG payload in the post editor.
  4. Highlight the payload and click the code formatting symbol.
  5. The XSS pop-up appears.

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.

This is a self-XSS: the user pastes the code into their own post and applies code formatting, and it runs in their browser.

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.