HTTPS-Only mode bypass through clickjacking
The HTTPS-Only mode warning page's disable button lacked an activation delay, allowing a clickjacking attack where a user's delayed click on an attacker-controlled button could inadvertently disable HTTPS-Only mode and permit an HTTP page to load.
Originally disclosed on Mozilla
- Fixed in 32 days
- Paid in 39 days
- Disclosed after 32 days
Created attachment 9350319
https-only-mode-click-jacking-bypass.mov
As well as the TLS certificate exception screen pointed out by CVE-2023-34414, HTTPS-Only mode disable button does not have activation-delay implemented. This could be used for clickjacking with human response time delays.
In the following example site, when the mouse touches the button labeled Click Me, the screen switches to the HTTPS-Only Mode warning page. If the user presses the button even a little late, the button to disable HTTPS-Only Mode is inadvertently pressed, and the page transition to the http: page is succeeded.
https://csrf.jp/2023/https-only/
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 HTTPS-Only mode warning page's disable button did not implement an activation delay, unlike other security-sensitive buttons.
Impact
An attacker could trick a user into disabling HTTPS-Only mode and loading an insecure HTTP page, though the attack relies on timing and user interaction.
What the attacker needed
Victim uses a browser with HTTPS-Only mode; victim visits attacker-controlled site; victim clicks at the right moment
How it was found
- Visit the attacker's example site.
- Move the mouse over the button labelled Click Me.
- The screen switches to the HTTPS-Only Mode warning page.
- Press the button slightly late, inadvertently pressing the disable button.
- The page transition to the http: page succeeds.
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.
HTTPS-Only mode is a browser feature that warns you before loading an insecure HTTP page. This report shows that the warning page's 'disable' button could be clicked by accident if an attacker tricks you into clicking a button on their site at the right moment, because the button appears under your mouse without a short safety delay.
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.