Skip to content
XSS Write-up Intermediate

Reflected XSS Vulnerability Bypassing Amazon CloudFront via Safari Browser

A reflected XSS vulnerability existed in the 's' parameter of help-ads.target.com because input was not properly sanitised. An attacker could execute JavaScript in Safari by using a Safari-specific event handler that bypassed the CloudFront WAF, potentially stealing cookies or injecting phishing content.

infosecwriteups.com

Published on infosecwriteups.com

In the world of bug bounty hunting, discovering browser-specific vulnerabilities can be both challenging and rewarding. Recently, I came across a reflected Cross-Site Scripting (XSS) vulnerability on help-ads.target.com that bypassed Amazon CloudFront's Web Application Firewall (WAF) protections but executed…

Krishna Kumar, on infosecwriteups.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 steal cookies, potentially leading to account takeover, and inject deceptive content or phishing links, but the exploit worked only on Safari and required a Force Touch interaction.

What the attacker needed

Victim uses Safari; victim has Force Touch device; victim clicks a crafted link

The fix

The vulnerability should be fixed by properly sanitising and encoding user input, applying a Content Security Policy, and updating WAF rules to block browser-specific event handlers.

How it was found

  1. Open the Safari browser.
  2. Navigate to the crafted URL containing the payload in the 's' parameter.
  3. Observe the alert box triggered by the malicious script.

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.

Cross-site scripting (XSS) is a flaw where a website inserts user input into its pages without cleaning it, so an attacker can make the site run their JavaScript. Here, the search parameter 's' was reflected unsafely, and a special Safari-only event handler slipped past the firewall. This let an attacker run code in a victim's browser, but only if the victim used Safari and interacted with the page.

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.