• Services
    • Vulnerability Management
    • Pentest
    • Network Pentest
    • Website Security Check
    • Phishing Campaign
    • Mystery Guest
    • Quick scan
  • NetCaptain
  • Knowledge base
  • Partners
    • MSP
  • About us
    • Contact
    • Why CyberAnt
    • News
    • Vacancies
  • Login
  • EN
    • NL
  • Menu Menu

What is clickjacking?

Clickjacking, sometimes called “UI redressing”, is a way of stealing a well placed click from a victim. The goal of the attack is to trick a user to perform an action without the consent of a user, which benefits the attacker. Clickjacking is usually combined with social engineering and security flaws.

An example of clickjacking

Andrew Frost* is a famous blogger on superblog.com. Because Andrew is so successful, a hacker wants to steal the account of Andrew. If superblog.com is vulnerable for clickjacking attacks, the attacker can create a fake phising domain and lure Andrew to it. The hacker creates a website, like winafreeholiday.com, where you need to enter your email address in order to win a free holiday.

* This is a random name

clickjacking

Andrew is however unaware that superblog.com is loaded in the background. The hacker can do this by using an iframe. An iframe is a html instruction that tells the browser to load in an other website on the page. This causes that winafreeholiday.com now has a page of superblog.com, specifically the page where the user can change it’s password. The page is constructed in a way that the superblog page is transparent, and styled that it looks like a page to win a free holiday.

The hacker now only has to send Andrew an email with the link of the website. Andrew thinks he wins a holiday, but in fact he changed his password on superblog.com. Since the hacker knows this, he now has access to the account of Andrew. Andrew is now victim of clickjacking.

Preventing clickjacking

In the example above several things gone wrong. To start, Andrew clicked a phishing link. After that, superblog allowed the page to be loaded in an iframe. To conclude the list, Andrew was still logged in and didn’t had to fill in his current password.

At the same time the solution is pretty easy. With the Content Security Policy (CSP) superblog can prevent being loaded by an other domain. The CSP header replaces the old x-frame-options header that was used back in the days to avoid clickjacking. The correct header is a follows:

Content-Security-Policy: frame-ancestors 'none';

More information about preventing clickjacking is on the website of OWASP: https://cheatsheetseries.owasp.org/cheatsheets/Clickjacking_Defense_Cheat_Sheet.html

Resume

If your website is not configured properly, other websites can load it. If users are able to log in to your website and are logged in, they can become victims of clickjacking. To avoid this you can:

  • Send the CSP header
  • Prevent users from being logged in for a long time, e.g. log them out automatically after 2 hours of inactivity
  • Extra protection for sensitive functions such as changing a password, for example by asking for the current password

Do you want to test whether your website is vulnerable to clickjacking? Our Quickscan checks whether your website is vulnerable to clickjacking.

Search

Search Search

Recent Posts

  • Once again malware found in US Code Extensions
  • Large-scale attack on popular npm packages: millions of websites and apps potentially affected
  • Age verification on the Internet: what about privacy?
  • Magecart attack claims 8.8 million victims worldwide
  • Help! I have been hacked

CyberAnt is ISO Certified

Iso gecertificeerd

Tags

.DS Store anti-virus award broken access control clickjacking Cryptographic Failures cyberaanval CyberAnt Cybercrime cybercriminelen CyberRisk Cyber Security Datalek Entity injection Etisch Hacker Hacker ict Insecure Design ISO 9001 ISO 27001 IT Infrastructuur beschermen malware Mass Assignment aanval NetCaptain NetCat shell upgraden Netgear ProSAFE switches nominated Open web application Security project Owasp path traversal penetration test pentest Ransomeware aanval Ransomware Responsible Disclosure Secure webshop Security Audit Security audits Security Misconfiguration Server-side request forgery (SSRF) Social Engineering SQL Injection start up of the year vulnerability management web applicatie scanning
CyberAnt is ISO gecertificeerd

Services

  • Pentest
  • Network Pentest
  • Website Security Check
  • Phishing Campaign
  • Mystery Guest

Cyberant

  • Why CyberAnt
  • Partners
  • Knowledge base
  • News
  • About us

Contact

Marconiweg 1
3899 BR Zeewolde

info@cyberant.com
+31 (0)85 047 1590

© Copyright - CyberAnt 2024
  • Link to Facebook
  • Link to LinkedIn
  • Link to Mail
Link to: Entity injection Link to: Entity injection Entity injectionEntity injection Link to: NetCat shell upgrade Link to: NetCat shell upgrade reverse tcp shellCyberAnt.comNetCat shell upgrade
Scroll to top Scroll to top Scroll to top

Deze site maakt gebruik van cookies. Door verder te surfen op de site gaat u akkoord met ons gebruik van cookies.

Accepteer instellingenVerberg de mededeling enkelInstellingen

Cookie and Privacy Settings



How we use cookies

We may request cookies to be set on your device. We use cookies to let us know when you visit our websites, how you interact with us, to enrich your user experience, and to customize your relationship with our website.

Click on the different category headings to find out more. You can also change some of your preferences. Note that blocking some types of cookies may impact your experience on our websites and the services we are able to offer.

Essential Website Cookies

These cookies are strictly necessary to provide you with services available through our website and to use some of its features.

Because these cookies are strictly necessary to deliver the website, refusing them will have impact how our site functions. You always can block or delete cookies by changing your browser settings and force blocking all cookies on this website. But this will always prompt you to accept/refuse cookies when revisiting our site.

We fully respect if you want to refuse cookies but to avoid asking you again and again kindly allow us to store a cookie for that. You are free to opt out any time or opt in for other cookies to get a better experience. If you refuse cookies we will remove all set cookies in our domain.

We provide you with a list of stored cookies on your computer in our domain so you can check what we stored. Due to security reasons we are not able to show or modify cookies from other domains. You can check these in your browser security settings.

Other external services

We also use different external services like Google Webfonts, Google Maps, and external Video providers. Since these providers may collect personal data like your IP address we allow you to block them here. Please be aware that this might heavily reduce the functionality and appearance of our site. Changes will take effect once you reload the page.

Google Webfont Settings:

Google Map Settings:

Google reCaptcha Settings:

Vimeo and Youtube video embeds:

Privacy Policy

You can read about our cookies and privacy settings in detail on our Privacy Policy Page.

Privacy statement
Accepteer instellingenVerberg de mededeling enkel