Clickjacking to Account Takeover
The web application was vulnerable to clickjacking on a page that allowed changing a user's name and email. An attacker could frame the page and trick a victim into dragging text into the email field and clicking save, leading to account takeover.
Published on medium.com
Curated list of Bug bounty programs — https://bugbountydirectory.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
Likely the application did not send headers that prevent its pages from being embedded in frames, so an attacker could overlay the account settings page and capture user interactions.
Impact
An attacker could change a victim's email address, leading to account takeover.
What the attacker needed
Victim visits attacker's page; victim drags and clicks
The fix
The application should be fixed by sending headers that prevent framing, such as X-Frame-Options or Content-Security-Policy frame-ancestors.
How it was found
- Find a page that allows changing the user's name and email.
- Check that the page can be framed (clickjacking test).
- Create a page where the user drags text into a box and clicks a button.
- Position the framed page so the drag lands in the email field and the button click saves 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 real site in an invisible frame and tricks you into clicking buttons or typing into fields you cannot see. Here, the attacker made it look like a game where you drag text to a box, but you were actually editing your account's email address. Because the site allowed itself to be framed, the attacker could take over your 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.