The digital age has been largely positive, giving us access to more information than ever before and more ways to communicate with each other, even across the globe and instantaneously. It’s completely changed the way we work and live, making information and entertainment cheaper and more accessible. But it has also introduced a variety of threats.
There’s no shortage of malicious actors out there, constantly searching for new techniques and scams they can use to steal money and information from unsuspecting victims. One of the most prominent malicious techniques is clickjacking – but what exactly is this method and how can you protect yourself against it?
We’ll begin with an explanation of the basics of clickjacking. Essentially, clickjacking means fooling a user, prompting them to click on something unwittingly. Usually, this is done with multiple layers; the user doing the clicking sees a trustworthy, recognizable interface, but there’s a transparent layer over that interface that actually responds to their click.
In other words, you may feel like you’re clicking a familiar button on a familiar website, but you’ll actually be clicking a button that allows someone to engage in malicious activity, such as stealing your personal information or infecting your computer with malware.
There are many different categories of clickjacking to consider, including:
So how do you protect yourself from these types of attacks?
On the client side (as a user), you can use reliable browsers, extensions, and addons to minimize your vulnerabilities. Certain browsers have built-in functionality to protect against these types of attacks, though you’ll need to make sure you’re using the most recent version of the software. If you want even more protection, you can install additional addons meant to directly prevent this type of problem.
On the server side, webmasters can protect their users from UI redressing and similar techniques with a variety of approaches. For example, you can introduce a framekiller JavaScript snippet to block the introduction of new frames from untrustworthy sources. Different X-Frame-Options headers can also help.
It’s also a good idea to rely on content security policies (CSPs). Most modern browsers support CSPs, allowing site owners to specifically decide the type of content allowed to load on each page. If you customize and implement your CSP properly, your users should have no issues dealing with clickjacking.
Clickjacking has been a security problem for many years, but its influence is diminishing, in part because we have better tools to fight back against it. Still, it’s important to remain vigilant both as a webmaster and an ordinary user. All it takes is one slipup to render you vulnerable.