Skip to content
XSS Write-up Intermediate

How i bypassed AKAMAI KONA WAF , XSS in overstock.com !

A reflected cross-site scripting flaw existed in the TID parameter of the cart page, and the site's Akamai Kona WAF blocked ordinary payloads. The author escaped the surrounding script and body tags and used a body background attribute pointing at their own listener to get the browser to make a request, which the WAF allowed.

Oktavandi Follow

Published on web.archive.org

{{media:0}}

Oktavandi (@0ktavandi), on web.archive.org

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the TID query parameter was reflected into the page inside a script and body context without output encoding, and the WAF's signature rules did not cover a body background attribute.

Impact

An attacker could make a victim's browser load attacker-controlled content through the crafted link, though the report only demonstrates a request to the author's listener rather than script execution.

What the attacker needed

Victim clicks a crafted link; attacker hosts a listener

How it was found

  1. Find the cart endpoint with a TID parameter using a search engine dork.
  2. Load the page with a test value in TID and view the source to see where it is reflected.
  3. Use closing script and body tags to break out of the existing context.
  4. Try known Akamai bypass payloads from public posts, which all failed.
  5. Test a body background attribute pointing at a listener on a separate page editor.
  6. Send the encoded payload with a trailing newline instead of a plain closing bracket to get past the WAF.

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 write-up has not been written yet. The Original tab links to the source.

A web page put part of the address bar text straight into its HTML without cleaning it, so a crafted link could make the browser run attacker-chosen markup. A firewall in front of the site tried to block common attack strings, but the author found a different way to write the same idea that slipped past it. The result was that a victim who opened the crafted link would load content from the attacker's server.

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 Oktavandi

View all

2 more disclosed reports, best first.

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.