Skip to content
XSS Disclosed report Beginner

Stored XSS at https://█████

The first name and last name fields on the registration page did not sanitise user input, so a stored cross-site scripting payload could be saved in the account. When the victim logged in, the script executed and could read the session cookie.

roxorz Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 8 days
  • Disclosed after 2 months

Description: In registeration page ( https://████ ) , first name and last name field are vulnerable to Stored Cross Site Scripting.

Proof of concept

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

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

After login , alert document.cookie will triggered

Impact

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

System Host(s)

████████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

  1. Go to registration page ( https://████ ), insert <svg/onload=confirm(document.cookie)> payload in firstname and lastname fields and create account.
  2. Verified your account.
  3. Go to login page and login your account.
  4. And XSS will triggered ( XSS also triggered in My Profile page) .

Suggested Mitigation/Remediation Actions

  1. Filter input on arrival.
  2. Encode data on output.
  3. Content Security Policy

The original report as published on HackerOne, by roxorz. 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 malicious JavaScript in the context of the site, which could read the victim's cookie, though the report does not show cookie theft beyond an alert.

What the attacker needed

A free account; victim logs in to the account

The fix

The application should filter input on arrival, encode data on output, and add a Content Security Policy.

How it was found

  1. Go to the registration page and enter an SVG onload payload in the first name and last name fields, then create the account.
  2. Verify the new account.
  3. Go to the login page and log in with the account.
  4. The script executes, and it also executes on the My Profile page.

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 your name into a sign-up form, the website should treat it as plain text. Here it saved the text as part of the page's code, so a special string could run as a small program in the browser. That program ran for anyone who logged in to the account and could read the login cookie, which is like a temporary key to the account.

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 U.S. Dept Of Defense

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.