Skip to content
UI spoofing Write-up Beginner

How I Found Clickjacking in a Public Program

The account deletion page lacked X-Frame-Options and CSP frame-ancestors headers, allowing it to be embedded in an iframe. An attacker could trick a logged-in user into clicking a disguised button, causing unintended account deletion.

medium.com

Published on medium.com

While testing a public bug bounty program, I discovered a Clickjacking vulnerability that could lead to account deletion without user consent. This writeup walks through my recon methodology, vulnerability discovery, and exploitation process step by step.

Slash0x01, 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

Root cause

The application did not send headers that prevent the page from being embedded in a frame.

Impact

An attacker could cause a logged-in user to delete their account without consent by tricking them into clicking a disguised button.

What the attacker needed

Victim is logged in; victim visits attacker's page; victim clicks a disguised button

How it was found

  1. Find the account edit profile page and note the Delete Profile button.
  2. Test for CSRF but find a token is required.
  3. Check response headers and see X-Frame-Options and CSP frame-ancestors are missing.
  4. Embed the page in an iframe to confirm it loads.
  5. Find an endpoint that directly triggers account deletion without confirmation.
  6. Create a page that overlays a fake button on the deletion button.

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 page in an invisible frame and tricks you into clicking something you didn't intend to. Here, the account deletion page could be framed, so a fake button could be placed over the real delete button. If you click the fake button, your account gets deleted.

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.

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.