Skip to content
XSS Disclosed report Beginner

RXSS Via URI Path - https://██████████/

A reflected cross-site scripting flaw existed in the URI path of a login page, where a crafted path segment containing an event handler was reflected into the response. An attacker could use this to run script in a victim's browser and act as that user.

Khaled Mohamed Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 33 days
  • Disclosed after 13 months

Hello All I Found RXSS in your OWN Website

##Steps To Reproduce Go to This Link https://██████/Orders/(A(%22onerror='alert%60xElkomy%60'testabcd))/Login.aspx?ReturnUrl=/Orders

##Browsers I test them on Firefox and Google Chrome.

##Fix:- Filter input on arrival Encode data on output Use appropriate response headers Content Security Policy.

Regards, xElkomy

Impact

View any information that the user is able to view. Modify any information that the user is able to modify. Initiate interactions with other application users, including malicious attacks, that will appear to originate from the initial victim user. || And I can used this for 1-Ad-Jacking 2-Session Hijacking 3-Bypassing CSRF protection 4-Crypto Mining ::::)))

The original report as published on HackerOne, by 0xelkomy. 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 reflected the raw URI path into the HTML response without output encoding or input filtering.

Impact

An attacker could view or modify anything the victim can, and make requests that appear to come from the victim; the reporter also lists ad-jacking, session hijacking, CSRF bypass and crypto mining as possible uses.

What the attacker needed

Victim clicks a crafted link

The fix

The application should filter input on arrival, encode data on output, set appropriate response headers and use a Content Security Policy.

How it was found

  1. Open the crafted URL containing the malicious path segment in a browser.
  2. The crafted path segment is reflected and the script runs in the browser.

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.

Cross-site scripting (XSS) is when a website takes something an attacker put in a link and shows it back on the page as if it were part of the site. Here the address path itself was echoed into the page, so a booby-trapped link could make the victim's browser run the attacker's script. That script runs 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 by Khaled Mohamed

View all

9 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.