Clickjacking - changing role
The application did not prevent its pages from being embedded in an iframe, allowing an attacker to overlay a transparent frame and trick a victim into clicking a button that changes their role. The attacker could change the victim's role without their knowledge.
Originally disclosed on HackerOne
- Triaged in 1 hour
- Fixed in 2 hours
- Disclosed after 4 days
Hi,
I'm able to frame the page, when I make a frame with a opacity of 0 and a button at the position of the role switch I can change the role without the victim knowing that.
a POC screen : http://prntscr.com/3ay0mh
a POC code :
<iframe src="https://app.respond.ly" style="width:100%;height:100%;margin:0;border:0;"></iframe>
Best regards,
Olivier Beg
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application did not send headers such as X-Frame-Options or Content-Security-Policy frame-ancestors to stop its pages being framed.
Impact
An attacker could change a victim's role without their knowledge, though the report does not state what privileges the new role grants.
What the attacker needed
Victim visits attacker page; victim is logged in; victim clicks a decoy button
How it was found
- Create a page that embeds the target site in a full-size iframe.
- Set the iframe to be fully transparent.
- Position a decoy button over the role-switch control.
- Get the victim to click the decoy button, which triggers the role change.
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 report 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 places fake buttons on top. When you click what looks like a harmless button, you are actually clicking a button on the real site. Here, the attacker could make a victim change their role without realising it.
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.