Skip to content
XSS Disclosed report Intermediate

Stored xss in user name

A stored cross-site scripting flaw existed in the user's first name, which was not sanitised when displayed in a modal window on the authorisation overview page. An attacker could execute script in the account owner's browser when they removed an authorisation.

Andrey Leonov Follow

Originally disclosed on HackerOne

  • Disclosed after 22 days

In prev report i showed xss in user name thru cookie, there is another place where this name shows and fired xss. After send auth request open https://mobilevikings.be/en/account/authorization/overview/ in account who send request and press "Remove authorization" and got another way to fire xss payload. param x:authorization-to-first-name is properly sanitized but probably when it goes to modal window it unsanitize.

Attachments

Screenshot_2015-02-10_20.57.37.png
Screenshot_2015-02-10_20.57.37.png From the original on HackerOne

The original report as published on HackerOne, by 4lemon. 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 run script in the browser of a user who views the authorisation overview and removes an authorisation.

What the attacker needed

A user account; victim views authorisation overview; victim removes an authorisation

How it was found

  1. Send an authorisation request from the account.
  2. Open the authorisation overview page while logged in.
  3. Press the button to remove the authorisation.
  4. The stored name is rendered in the modal and the script runs.

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 website, the site should treat it as plain text, not as code. Here, the name was inserted into a pop-up window without that protection, so a malicious name could run a small program in the browser of anyone who viewed it. This is called stored cross-site scripting because the harmful value is saved and shown 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 Andrey Leonov

View all

26 more disclosed reports, best first.

More from Mobile Vikings

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.