Clickjacking is a UI redress attack where an attacker tricks a user into clicking on a hidden button or link, redirecting their action to another page. An example includes an attacker overlaying a fake button with an invisible iframe that controls the user's actions, such as deleting emails. To defend against clickjacking, measures include using Content Security Policy headers, setting authentication cookies properly, and implementing defensive UI code.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
12 views9 pages
Clickjacking
Clickjacking is a UI redress attack where an attacker tricks a user into clicking on a hidden button or link, redirecting their action to another page. An example includes an attacker overlaying a fake button with an invisible iframe that controls the user's actions, such as deleting emails. To defend against clickjacking, measures include using Content Security Policy headers, setting authentication cookies properly, and implementing defensive UI code.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9
CLICKJACKING
WHAT IS CLICKJACKING?
• Clickjacking, also known as a “UI redress attack”, is when an
attacker uses multiple transparent or opaque layers to trick a user into clicking on a button or link on another page when they were intending to click on the top level page. Thus, the attacker is “hijacking” clicks meant for their page and routing them to another page, most likely owned by another application, domain, or both. • Using a similar technique, keystrokes can also be hijacked. With a carefully crafted combination of stylesheets, iframes, and text boxes, a user can be led to believe they are typing in the password to their email or bank account, but are instead typing into an invisible frame controlled by the attacker. EXAMPLES
• For example, imagine an attacker who builds a web site
that has a button on it that says “click here for a free iPod”. However, on top of that web page, the attacker has loaded an iframe with your mail account, and lined up exactly the “delete all messages” button directly on top of the “free iPod” button. The victim tries to click on the “free iPod” button but instead actually clicked on the invisible “delete all messages” button. In essence, the attacker has “hijacked” the user’s click, hence the name “Clickjacking”. HOW IT WORKS? USE CASE:
• One of the most notorious examples of
Clickjacking was an attack against the Adobe Flash plugin settings page. By loading this page into an invisible iframe, an attacker could trick a user into altering the security settings of Flash, giving permission for any Flash animation to utilize the computer’s microphone and camera. DEFENDING AGAINST CLICKJACKING:
There are three main ways to prevent clickjacking:
1) Sending the proper Content Security Policy (CSP) frame- ancestors directive response headers that instruct the browser to not allow framing from other domains. The older X-Frame-Options HTTP headers is used for graceful degradation and older browser compatibility. 2) Properly setting authentication cookies with SameSite=Strict (or Lax), unless they explicitly need None (which is rare). 3) Employing defensive code in the UI to ensure that the current frame is the most top level window. THANK YOU :)