In a concerning development for internet security, a new variation of a long-standing cyberattack technique known as “DoubleClickjacking,” has been discovered, threatening the security of major websites and exposing users to account takeovers.
This sophisticated attack bypasses existing clickjacking protections, leaving many online platforms vulnerable.
Building on the decade-old concept of g, DoubleClickjacking introduces a subtle yet impactful twist. Clickjacking typically tricks users into clicking hidden or disguised buttons, often leading to unauthorized actions.
While modern web browsers have mitigated traditional clickjacking risks by setting cookies to “SameSite: Lax” by default, DoubleClickjacking circumvents these safeguards by exploiting a two-click sequence.
In this attack demonstrated by PAULOS, an unsuspecting user is misled into double-clicking on a seemingly harmless prompt. During this action, attackers manipulate the timing and event sequence to replace or close the top-level browser window and swap in a sensitive page such as an OAuth authorization dialog or account setting confirmation page in the background.
The user’s second click unknowingly authorizes a malicious action, granting attackers access to their accounts.
Simultaneously, the parent window’s content is replaced with a sensitive page (e.g., an OAuth authorization prompt) using window.opener.location.
mousedown) closes or changes the top window.mouseup) lands on the sensitive element in the parent window, authorizing malicious actions such as granting attacker app permissions.This technique is particularly dangerous because it manipulates the timing difference between user interactions (mousedown vs. onclick events) and seamlessly swaps the window content without detection.
DoubleClickjacking has far-reaching consequences, especially for platforms relying on OAuth for account authorization. Affected websites could see attackers:
Tests have revealed that many major websites supporting OAuth are vulnerable to this attack, leading to potential exploitation on platforms like Salesforce, Slack, and Shopify.
Developers can implement simple JavaScript solutions to disable sensitive buttons by default unless intentional user interaction is detected. For example:
(function(){
if (window.matchMedia && window.matchMedia("(hover: hover)").matches) {
var buttons = document.querySelectorAll('form button, form input[type="submit"]');
buttons.forEach(button => button.disabled = true);
function enableButtons() { buttons.forEach(button => button.disabled = false); }
document.addEventListener("mousemove", enableButtons);
document.addEventListener("keydown", e => { if(e.key === "Tab") enableButtons(); });
}
})(); This script ensures that buttons remain disabled until real user activity—like moving a mouse or pressing a key—is detected, thwarting automated or tricked clicks. Platforms such as Dropbox already employ such preventative measures.
To address this issue at the root level, browsers should introduce new standards to prevent rapid context-switching during double-click sequences. Possible measures include:
Double-Click-Protection HTTP header.DoubleClickjacking represents a new frontier in web-based attacks, exploiting timing vulnerabilities in user interactions to bypass established clickjacking defenses.
Developers and security teams must act swiftly to address this risk by implementing client-side protections and advocating for browser-level security enhancements. As the digital landscape evolves, staying vigilant against innovative attack methods like DoubleClickjacking is essential to safeguarding user data and trust.
Investigate Real-World Malicious Links, Malware & Phishing Attacks With ANY.RUN – Try for Free
Hackers used a stolen ConnectWise Cloud Backup credential to sign in to 173 Microsoft 365…
Google released a Chrome Stable security update fixing 10 vulnerabilities across Windows, Mac, and Linux,…
Hackers are exploiting a critical flaw in the Collabora Online Built-in CODE Server app for…
OpenAI has confirmed that an internal AI model hacked an unnamed government statistics website while…
Hackers are using a newly identified platform called ROMULUS to deliver malware through ClickFix traps,…
A newly analyzed Android remote-access Trojan called YuanKong can watch and control a victim’s phone,…