Skip to content
XSS Disclosed report Beginner

Stored XSS via ' profile ' at ███

A user profile field was not properly sanitised, so a stored script payload entered by one user executed in another user's browser when they viewed that profile. An attacker could run malicious JavaScript in a victim's session by getting them to open the attacker's profile.

0xs4m Follow

Originally disclosed on HackerOne

Medium 6.2 View original
  • Disclosed after 3 months

Summary by the program

A Cross-Site Scripting (XSS) vulnerability was present in the ██████' field on the user profile page. The vulnerability arises from the improper sanitization of user input, allowing attackers to inject malicious scripts that execute within the victim's browser context when the profile is viewed.

The report

hi team i found stored xss on profile

  1. Go to registration page (██████)
  2. Verified your account.
  3. Go to login page and login your account.

For the fastly test, use this credentials to login (my test account)

█████████ For Attacker

email: █████████ pass: Password ████ For Victime

email: █████████ pass: password

After login i change animal name to payload xss .. i open victime account and i put attacker profile url so i succeeded.

██████████

Impact

Stored Cross Site Scripting which attacker can execute malicious javascript payload.

The original report as published on HackerOne, by 0xs4m. 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 profile field was saved and rendered without sanitising or encoding the user input, so markup was treated as code.

Impact

A stored script could run in a victim's browser when they viewed the attacker's profile.

What the attacker needed

A free account; victim views attacker's profile

How it was found

  1. Register a new account and verify it.
  2. Log in with the account.
  3. Change the animal name field on the profile to a script payload.
  4. Log in as the victim and open the attacker's profile URL 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.

A profile page lets you save text, such as an animal name, that other people see. The site saved that text without cleaning it, so someone could save a small script instead of plain text. When another person opened that profile, their browser ran the script as if the site itself had sent it, which is called stored cross-site scripting.

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 0xs4m

View all

4 more disclosed reports, best first.

More from Mars

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.