Skip to content
UI spoofing Disclosed report Beginner

Clickjacking

The target site allowed its pages to be loaded inside a frame on another site, so an attacker could overlay the real page invisibly and trick a user into clicking controls they did not intend to click. The report claims this could let an attacker add arbitrary tasks on the victim's behalf.

paramdham Follow

Originally disclosed on HackerOne

  • Triaged in 38 hours
  • Fixed in 6 days
  • Disclosed after 2.4 years

##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.

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

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.

##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://app.outpost.co/settings/preferences"  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

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.

##Thanks

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 server did not send an X-Frame-Options (or equivalent frame-ancestors) header, so browsers allowed the page to be embedded in a third-party frame.

Impact

An attacker could frame the site and trick a logged-in user into clicking controls, which the report says could be used to add arbitrary tasks; the report does not demonstrate a full exploit beyond the page loading in a frame.

What the attacker needed

Victim is logged in; victim visits attacker page; target page lacks frame protection

The fix

The server should send an X-Frame-Options header (or a frame-ancestors policy) to deny framing or restrict it to trusted origins.

How it was found

  1. Save a small HTML page containing an iframe pointing at the target settings page.
  2. Open the saved page in a browser.
  3. Observe that the target page loads inside the frame, showing it can be framed.

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 bad site loads a real site inside an invisible window and places it under your mouse, so your click lands on the real site's button instead of what you see. Here the site did not tell browsers to refuse being framed, which is what makes the trick possible. The suggested defence is a response header that tells the browser not to display the page inside a frame.

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 Palo Alto Software

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.