Framing, Part 1: Click-Jacking Etsy
Etsy's search form returned the homepage without an X-Frame-Options header when a CSRF token was missing, and the site's X-Frame-Options protection could be bypassed by setting a Referer header from etsy.com. An attacker could frame the homepage and trick a user into clicking through to delete their wedding registry.
Back in October, I found a couple of issues in Etsy, which when combined could be used in a click-jacking attack.
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 combination of missing X-Frame-Options on the homepage response and a Referer-based bypass of the X-Frame-Options header allowed framing.
Impact
An attacker could trick a logged-in user into deleting their wedding registry through a clickjacking attack, though multiple clicks were required.
What the attacker needed
Victim is logged in; victim visits attacker page; victim clicks multiple times
How it was found
- Submit a POST request to the search page without a valid CSRF token.
- Observe that the homepage is returned without an X-Frame-Options header.
- Set the Referer header to an etsy.com domain to receive ALLOW instead of SAMEORIGIN.
- Frame the homepage and use CSS pointer-events to pass clicks through an image to links.
- Use setTimeout to reposition the iframe and entice the user to click a stopwatch image.
- The user clicks through to Registry, Edit Registry, Delete, and Confirm Delete.
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.
Clickjacking is when a malicious site loads a real site in an invisible frame and tricks you into clicking things you didn't intend to. Here, a missing security header on an error page and a weak check on the Referer header let an attacker frame Etsy and guide clicks to delete a user's wedding registry.
What is UI spoofing?
The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.