Skip to content
XSS Disclosed report Beginner

Stored XSS through name / last name on https://██████████/

The account name and last name fields rendered user input without sanitisation, so a stored cross-site scripting payload placed in those fields executed in the browser. An attacker could run JavaScript on behalf of a victim who viewed the affected page.

nagli Follow

Originally disclosed on HackerOne

  • Triaged in 5 hours
  • Fixed in 49 days
  • Disclosed after 2 months

Description: There is stored XSS Vulnerability on https://█████/██████ by rendering unsafe input being registered on the account name and last name.

███

Step-by-step Reproduction Instructions

  1. Navigate to
JavaScript
https://█████/login/?next=/███%3Fresponse_type%3Dcode%26redirect_uri%3Dhttps%253A%252F%252F████████%252Fcgi%252Flogin.cgi%253Freturn_to%253Dhttps%25253A%25252F%25252F███████%25252Fcgi%25252Fmyaccount.cgi%26client_id%3D6G3AXPQNPXK5SVESYCB8AMCPHQQ3ENCRK8G2QNWY%26state%3DBEAEb6NGMQ7kWZwZS2pNNFv4p7JwBk86%26scope%3Dopenid%2520profile
  1. Create your account, with your name as <IMG SRC=X ONERROR=ALERT(1)>
  2. Log in and navigate to https://███/██████

Suggested Mitigation/Remediation Actions

Sanitizing the input on the account name fields will prevent the issue.

##Best Regards nagli

Impact

Executing javascript on behalf of the victim

The original report as published on HackerOne, by nagli. 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 application inserted the account name and last name into the page as raw HTML without sanitising or escaping them.

Impact

JavaScript could be executed on behalf of a victim who viewed the affected page.

What the attacker needed

An account on the site; victim views the affected page

The fix

The account name fields should be sanitised or output-encoded so that input is rendered as text rather than HTML.

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 website that shows text you typed back to other people must treat that text as data, not as code. Here the name fields were inserted into the page as raw HTML, so a name containing an image tag with an error handler ran a script when the page loaded. That lets an attacker run their own code in another user's session.

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 nagli

View all

33 more disclosed reports, best first.

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.