Skip to content
XSS Disclosed report Intermediate

[█████] Reflected GET XSS (/personnel.php?...&rcnum=*) with mouse action

A parameter on a personnel page was reflected into the page without proper encoding, so a crafted link could run script in the browser of a logged-in user. An attacker could use this to act as the victim, read their session data and make requests on their behalf.

jarvis0x1 Follow

Originally disclosed on HackerOne

  • Triaged in 24 hours
  • Fixed in 33 days
  • Disclosed after 5 months

I will combine this vulnerability with this vulnerability (described in this report #648222). If you have not read this report, I recommend reading that report first, and then studying this report.

I want to note that this report cannot be closed as a duplicate to the above described report. why? because this vulnerability exists for authorized users. Using the bypass authorization bug I just had the opportunity to explore the internal structure of the site.

If you study the last report, as well as the reports that you described there, you can understand that the developers have already tried to fix some vulnerabilities by simply restricting access to the site. It was not effective. It is strongly recommended to fix each vulnerability separately.

Steps to reproduce

  1. Turn on Live Interception in burp (Proxy-Intercept) Go to this link

https://█████████/personnel.php?content=training&folder=FA_CERT&item=FA05.01.01&rcnum='%20onmouseover=alert('jarvis7')%20'

  1. Intercept request. Press right mouse button-> Do intercept -> Response this request

  2. Delete this redirection

Answer: ███

  1. Then you need move the mouse cursor to 2 icons near text:

████

Result: ████

This is not duplicate to this report #648305 ! Because I already submit one of XSS, this - #512269 moth ago, but as you can see, I can inject payloads in other places now.

Impact

JavaScript can still be dangerous if misused as part of malicious content:

  • Malicious JavaScript has access to all the objects that the rest of the web page has access to. This includes access to the user’s cookies. Cookies are often used to store session tokens. If an attacker can obtain a user’s session cookie, they can impersonate that user, perform actions on behalf of the user, and gain access to the user’s sensitive data.
  • JavaScript can read the browser DOM and make arbitrary modifications to it. Luckily, this is only possible within the page where JavaScript is running.
  • JavaScript can use the XMLHttpRequest object to send HTTP requests with arbitrary content to arbitrary destinations.
  • JavaScript in modern browsers can use HTML5 APIs. For example, it can gain access to the user’s geolocation, webcam, microphone, and even specific files from the user’s file system. Most of these APIs require user opt-in, but the attacker can use social engineering to go around that limitation.

The original report as published on HackerOne, by jarvis0x1. 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 rcnum parameter was written into the page without output encoding, and the site relied on an access restriction rather than fixing the flaw.

Impact

Script running in the victim's browser could read cookies and session tokens, modify the page and send requests as the user, though some browser features need the user to opt in.

What the attacker needed

A logged-in authorised account; victim opens a crafted link; intercepting proxy to strip redirect

The fix

Each vulnerability should be fixed separately rather than relying on access restrictions.

How it was found

  1. Open the personnel page with the crafted rcnum value while intercepting traffic.
  2. Intercept the response for that request.
  3. Remove the redirection from the response.
  4. Move the mouse over the two icons near the text 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.

When a website puts something you typed straight back into the page without cleaning it, a malicious link can make the browser run code the site did not intend. That code runs as the logged-in user, so it can read their session and do things as them. This is called cross-site scripting, or XSS.

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 jarvis0x1

View all

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