Skip to content
XSS Write-up Intermediate

Hidden Reflected XSS on 403 Page.

A password reset page hidden behind a 403 error contained an undocumented parameter that reflected user input without sanitisation. An attacker could inject script into that parameter to execute code in a victim's browser.

Hacker_Yogi Follow

Published on medium.com

In this blog post, I’m going to walk you through how I discovered a hidden vulnerability in an application that led to a Reflected Cross-Site Scripting (RxSS) exploit. The vulnerability was found in an unexpected place — the password reset functionality — hidden behind a 403 page that most researchers might overlook.

Ruben A (Hacker_Yogi), on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the hidden parameter was reflected into the HTML response without proper output encoding or validation.

Impact

An attacker could execute arbitrary script in a victim's browser when the victim visits a crafted link to the password reset page, potentially stealing session data or performing actions on the victim's behalf.

What the attacker needed

Victim clicks a crafted link; access to the hidden reset page

How it was found

  1. Encounter a 403 Forbidden page on the target domain.
  2. Use FFUF to fuzz and discover the /console/ directory.
  3. Perform recursive fuzzing on /console/ to find a hidden password reset page.
  4. Inspect Burp Suite request history to identify multiple hidden parameters on the reset page.
  5. Use Burp Intruder to inject payloads into the hidden parameter hdnPwdMinChar.
  6. Observe the alert popup confirming script execution.

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 write-up has not been written yet. The Original tab links to the source.

A 403 page is a standard 'access denied' message that many people ignore. The researcher kept looking and found a hidden password reset page. That page had a secret field that echoed back whatever was typed into it, so a malicious script could be made to run in someone else's browser.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

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.