Skip to content
UI spoofing Write-up Beginner

Account takeover with clickjacking

The profile page lacked an X-Frame-Options header and accepted an email parameter that pre-filled the email field, allowing an attacker to frame the page and trick a user into clicking an overlaid button to change their email. The attacker could then request a password reset to take over the account.

Osama Avvan Follow

Published on medium.com

This writeup is about how I was able to change other users account email with clickjacking. It was a private program on Bugcrowd.

Osama Avvan, 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

An attacker could change a victim's account email and then request a new password to take over the account.

What the attacker needed

Victim is logged in; victim visits attacker page; victim clicks a decoy button

How it was found

  1. Add an email parameter to the profile page URL and confirm it pre-fills the email field.
  2. Load the profile page URL in an iframe on an attacker-controlled page.
  3. Place a decoy 'Click here' element over the Update button.
  4. Set the iframe opacity to zero so the victim only sees the decoy.
  5. When the victim clicks, the hidden Update button is clicked and the email changes.

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 legitimate page in an invisible frame and places a fake button on top, so the victim thinks they are clicking one thing but actually click a button on the hidden page. Here the profile page could be framed and its email field could be pre-filled from the URL, so a victim clicking a decoy button would submit a new email address chosen by the attacker. The attacker could then use that email to reset the password and take over the account.

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 Osama Avvan

View all

7 more disclosed reports, 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.