Skip to content
UI spoofing Write-up Beginner

️ A Simple Header, A New Experience — My Clickjacking Dis

The website did not send the X-Frame-Options header, so it could be embedded in a frame on another site. An attacker could overlay an invisible copy of the site and trick a user into clicking its buttons or links.

Naitik Gupta Follow

Published on medium.com

Bug bounty hunting isn’t always about finding critical vulnerabilities that shake the internet. Sometimes, it’s about learning, gaining confidence, and building experience.

Naitik Gupta, 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

A malicious actor could trick users into clicking buttons, links, or forms on the embedded site, possibly leading to unintended actions.

What the attacker needed

Victim visits attacker page; victim clicks a button

The fix

The site should send an X-Frame-Options header set to DENY or SAMEORIGIN to block external embedding.

How it was found

  1. Visit the target website.
  2. Open the browser developer tools or use a terminal.
  3. Check the response headers for X-Frame-Options.
  4. Confirm the header is missing.
  5. Create an HTML page with an almost invisible iframe loading the target site.
  6. Load the page and see that the target site is framed.

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.

Some websites can be placed inside a frame on another page. If the site does not send a special header telling browsers not to allow this, an attacker can hide the real site under a fake button. The user thinks they are clicking the fake button but actually clicks the hidden site.

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.

More by Naitik Gupta

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Clickjacking and UI spoofing

The lesson behind this report.

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.