Skip to content
UI spoofing Disclosed report Beginner

Clickjacking to change email address

The site's pages were served without an X-Frame-Options header, so they could be loaded inside an attacker's iframe. An attacker could overlay the framed account page and trick a logged-in user into clicking controls they did not intend to, such as changing their email address.

paramdham Follow

Originally disclosed on HackerOne

  • Triaged in 44 hours
  • Fixed in 45 hours
  • Disclosed after 24 months

##Summary

Clickjacking (User Interface redress attack, UI redress attack, UI redressing) is a malicious technique of tricking a Web user into clicking on something different from what the user perceives they are clicking on, thus potentially revealing confidential information or taking control of their computer while clicking on seemingly innocuous web pages.

It allows remote attackers to do some clickjacking which can be used for adding arbitrary tasks . Why? Almost all of your page has missing X-FRAME-OPTIONS header.

Websites are at risk of a clickjacking attack when they allow content to be embedded within a frame.

##Proof of concept code :-

Copy the above code and paste it in notepad and save it with .html extention and open it in browser

<html> <head> <title>Clickjack test page</title> </head> <body> <p>Website is vulnerable to clickjacking!</p> <iframe src="https://gener8ads.com/dashboard/account" sandbox="allow-top-navigation allow-same-origin allow-scripts" width="500" height="500"></iframe> </body> </html>

Copy and paste above given code and save it with hack.html and open it in browser

------------------------------------------------------------------->

Recommendation :-

Add X-FRAME-OPTIONS header to mitigate the issue

Impact

An attacker may use this risk to invisibly load the target website into their own site and trick users into clicking on links which they never intended to. An "X-Frame-Options" header should be sent by the server to either deny framing of content, only allow it from the same origin or allow it from a trusted URIs.

The original report as published on HackerOne, by paramdham. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 an X-Frame-Options (or equivalent frame-ancestors) response header, so browsers allowed the pages to be embedded in third-party frames.

Impact

An attacker may invisibly frame the site and trick a logged-in user into clicking controls they never intended to, potentially changing account details such as the email address.

What the attacker needed

Victim is logged in; victim visits attacker page

The fix

The server should send an X-Frame-Options header (or a frame-ancestors policy) that denies framing, restricts it to the same origin, or allows only trusted origins.

How it was found

  1. Create a local HTML file containing an iframe that points at the account page.
  2. Open the file in a browser while logged in.
  3. The page is stated to be vulnerable to clickjacking.

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 page loads a real site invisibly inside a frame and places its own buttons on top, so your clicks land on the real site instead. Because the site did not tell browsers to refuse being framed, a victim who is logged in could be made to press account controls 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.

More by paramdham

View all

9 more disclosed reports, best first.

More from Gener8

View all

The newest disclosed reports for this program.

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.