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.
Published on web.archive.org
Yusif Cəfərov
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
- Enter a test string with an extra tag between characters and observe the tag is removed and the surrounding text joined.
- Confirm that plain keywords such as alert or prompt return a 403 response.
- Confirm that the same keywords split with spaces return 200 OK.
- Submit a payload that splits the tag name and the alert keyword with the removable tag.
- 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.