Skip to content
XSS Write-up Intermediate

How I bypassed website using Akamai waf

A user information edit page reflected input without proper filtering, but an Akamai WAF blocked obvious XSS keywords and tags. By splitting keywords and tags with a harmless tag that the server stripped, the author got an autofocus handler with an alert call past the filter.

Yusif Cəfərov Follow

Published on web.archive.org

Yusif Cəfərov

Yusif Cəfərov, 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 WAF matched blocked keywords and tags as literal strings, while the application stripped the inserted tag afterwards, so splitting the keywords defeated the filter.

Impact

An attacker could run script in a victim's browser on the site's origin, though the text only demonstrates an alert and does not show theft of data or sessions.

What the attacker needed

Ability to edit user information; victim views the affected page

How it was found

  1. Enter a test string with an extra tag between characters and observe the tag is removed and the surrounding text joined.
  2. Confirm that plain keywords such as alert or prompt return a 403 response.
  3. Confirm that the same keywords split with spaces return 200 OK.
  4. Submit a payload that splits the tag name and the alert keyword with the removable tag.
  5. Check the page source to see the resulting handler in the input value.

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 website let people type characters like quotes and angle brackets into a profile field, and those characters came back in the page. A security filter (a web application firewall, or WAF) tried to block obvious attack words, but it only looked for the words as written. The author broke the words apart with an extra tag that the site removed, so the filter saw harmless text while the browser saw a working script.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

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.