Skip to content
XSS Disclosed report Beginner

Stored XSS on this link https://sehacure.slack.com/help/requests/

A stored cross-site scripting vulnerability existed because the user's display name was not properly encoded when shown on the help request ticket page, even though the profile page itself had validation. An attacker could set a malicious name and have it execute script when the victim viewed a ticket.

anandpingsafe Follow

Originally disclosed on HackerOne

  • Triaged in 2 hours
  • Fixed in 7 hours
  • Disclosed after 6 months

Hi,

This is a little tricky one.

First of all go to your profile page and change your name to "><img src=x onerror=prompt(12);> Save it. Wait!!! You will not see a javascript pop up there because there is proper input validation on the profile page.

Now to see the prompt box

  1. Go to this link https://sehacure.slack.com/help/requests/new
  2. Add a new ticket. Now submit it.
  3. Now view your ticket.You will now be shown a prompt box.
  4. Please have a look at the attached screenshot the inputs are not validated over there.

I have changed my name to }') ">ppp> and i am attaching the source code view of the same.No, input encoding is done there.

Please have a check.

Best, Anand

Attachments

Screen_Shot_2014-03-02_at_5.03.47_am.png
Screen_Shot_2014-03-02_at_5.03.47_am.png From the original on HackerOne

The original report as published on HackerOne, by anandpingsafe. 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 help request ticket page rendered the user's display name without proper output encoding, despite validation on the profile page.

Impact

An attacker could run JavaScript in a victim's browser when the victim viewed a help ticket, as shown by a prompt box.

What the attacker needed

A user account; ability to change display name; victim views the ticket

How it was found

  1. Change your profile name to a malicious HTML/JavaScript payload.
  2. Go to the new help request page.
  3. Create and submit a new ticket.
  4. View the ticket to trigger the script.

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.

When you type something into a website, it should be shown as plain text, not run as code. Here, a user's name was saved and later displayed on a help ticket page without being made safe, so a name containing HTML and JavaScript could run in the browser of anyone who viewed that page. This is called stored cross-site scripting because the malicious code is saved on the server and runs later.

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 anandpingsafe

View all

19 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.