1800 worth Clickjacking
Several API endpoints returned sensitive user data (credit card, email, phone, address) without an X-Frame-Options header, so they could be embedded in an iframe. An attacker could trick a logged-in user into selecting and copying that data from the invisible frame, then paste it into an attacker-controlled field.
Published on medium.com
In this writeup, I will talk about how I earned a total of $1800 by exploiting Clickjacking on pages where User sensitiveinformation was disclosed, It was a private program on Bugcorwd.
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 API endpoints that returned sensitive user data did not send an X-Frame-Options (or equivalent frame-ancestors) header, allowing them to be embedded in a third-party page.
Impact
An attacker could steal a logged-in user's credit card data, email, name, phone, address and user ID, but the attack relies on the victim following the copy-and-paste instructions.
What the attacker needed
Victim is logged in; victim visits attacker page; victim follows copy-paste steps
How it was found
- Identify API endpoints that return sensitive user information.
- Check that those endpoints lack an X-Frame-Options header.
- Create an HTML page that loads one endpoint in a nearly transparent iframe.
- Instruct the victim to click inside the box and press Ctrl+A then Ctrl+C.
- Provide a password input and ask the victim to paste with Ctrl+V.
- On button click, read the pasted value and log it to the console.
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 page hides a legitimate page inside an invisible frame and tricks you into clicking or typing on it. Here the hidden page showed your private details, and the attacker asked you to select all and copy them, then paste them into a box they control. Because the page did not tell browsers to refuse being framed, the trick worked.
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.