Skip to content
XSS Disclosed report Intermediate

XSS (stored) Wizard is saving executable code

A stored cross-site scripting flaw was reported, where user input was saved without correct filtering and later rendered in a victim's browser, allowing script execution to hijack sessions, deface pages or redirect users.

nitin_24 Follow

Originally disclosed on HackerOne

  • Triaged in 12 days
  • Fixed in 35 days
  • Disclosed after 2 months

issue: xss(stored) Stored XSS occurs when a web application gathers input from a user which might be malicious, and then stores that input in a data store for later use. The stored input is not correctly filtered. As a consequence, the malicious data will appear to be part of the web site and run within the user’s browser under the privileges of the web application.

poc: url: https://imgsrcxonerrorprompt2.rocket.chat

Impact

Attackers can execute scripts in a victim’s browser to hijack user sessions, deface web sites, insert hostile content, redirect users, hijack the user’s browser using malware, etc.

Attachments

Screenshot_(143).png
Screenshot_(143).png From the original on HackerOne
Screenshot_(144).png
Screenshot_(144).png
Screenshot_(145)_(1).png
Screenshot_(145)_(1).png

The original report as published on HackerOne, by nitin_24. 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 execute scripts in a victim's browser to hijack sessions, deface the site, insert hostile content or redirect users.

What the attacker needed

Ability to submit input that is stored; victim views the stored content

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.

Stored cross-site scripting means a website saves something a user typed and later shows it to other people without cleaning it first. If that saved text contains instructions a browser treats as code, the browser runs them as if the site itself had written them. The attacker then acts with the victim's logged-in permissions.

What is XSS?

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

More from Rocket.Chat

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.