Skip to content
XSS Disclosed report Beginner

Cross-Site Scripting via 'fname' parameter in ███

A reflected cross-site scripting flaw exists in the 'fname' GET parameter, allowing an attacker to inject a script that executes in a victim's browser. This could lead to cookie theft and session hijacking.

jonasdiasrebelo Follow

Originally disclosed on HackerOne

  • Triaged in 7 hours
  • Fixed in 19 days
  • Disclosed after 6 months

Description: Hi, team! I discovered a Cross-Site Scripting (XSS) vulnerability on ███ , specifically through the GET method. This vulnerability allows an attacker to inject malicious scripts that could be executed, potentially leading to cookie theft, session hijacking, and other malicious actions.

Vulnerable parameter: fname Payload: "'><A HRef=" AutoFocus OnFocus=;1^(print)``^1>"

References

████████

Impact

Exploitation of this vulnerability can lead to severe consequences, including but not limited: Session Hijacking: Attackers can steal cookies and impersonate legitimate users.

System Host(s)

███████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

Open the link:

███?ReqType=news&fname=2013.026.jpg%22%27%3E%3CA%20HRef%3d%22%20AutoFocus%20OnFocus=;1^(print)``^1%3E%22&title=%E2%80%9CCandy%20Bomber%E2%80%9D%20passes%20away%20at%20101

I used the 'print' function to bypass the firewall.

Suggested Mitigation/Remediation Actions

Apply context-dependent encoding and/or validation to user input rendered on a page.

The original report as published on HackerOne, by jonasdiasrebelo. 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 reflects the 'fname' parameter into the page without context-dependent encoding or validation.

Impact

Exploitation could lead to session hijacking by stealing cookies and impersonating legitimate users; the reporter notes a firewall was bypassed using the 'print' function.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Open the crafted link containing the payload in the 'fname' parameter.

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.

XSS is when a site puts user input into a page without cleaning it, so an attacker can make the page run their own script. Here the 'fname' value in the URL is used, and a crafted link can run code that steals the victim's session cookie.

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 jonasdiasrebelo

View all

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