Skip to content
XSS Write-up Intermediate

XSS: Bypass CloudFront WAF

The report describes bypassing a CloudFront Web Application Firewall to inject a cross-site scripting payload using an object tag with a javascript URI. The attacker could execute arbitrary JavaScript in a victim's browser, as demonstrated by an alert showing the document domain.

medium.com

Published on medium.com

In this article, we will share how we successfully bypassed the CloudFront WAF (Web Application Firewall) to exploit a Cross-Site Scripting (XSS) vulnerability.

N45HT, on medium.com

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

Impact

An attacker could execute arbitrary JavaScript in a victim's browser, potentially stealing data or performing actions on their behalf, though the report only demonstrates an alert.

What the attacker needed

A vulnerable input point; CloudFront WAF in front of the app

How it was found

  1. Craft an XSS payload using an object tag with a javascript URI and obfuscation.
  2. Inject the payload into the vulnerable input.
  3. Observe that the WAF does not block the payload and the alert executes.

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 Application Firewall (WAF) is a filter that tries to block malicious input to a website. Cross-site scripting (XSS) is a flaw where an attacker can make a site run their own JavaScript in another user's browser. Here, the author found a way to sneak a script past the WAF and make the browser show an alert box.

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.