Skip to content
UI spoofing Advisory Intermediate CVE-2025-0439

Race in Frames (CVE-2025-0439)

A race condition in Chrome allowed a focused Google One Tap button to remain clickable after its frame was made transparent and covered by another element, enabling clickjacking. An attacker could trick a user into clicking the hidden button.

Hafiizh Follow

Originally disclosed on Chrome VRP

Bounty$5,000 Medium View original
  • Fix shipped in 3 months

VULNERABILITY DETAILS

This vulnerability is similar to https://issues.chromium.org/issues/333708039, in this bug when the cursor focus on google one tap button after that the opacity the frame set 0 (obscured by "click me see funny cats" button) the focus still to google tap button lead to click jacking

VERSION Chrome Version 131.0.6755.0 (Official Build) canary (64-bit) Operating System: Windows 10

REPRODUCTION CASE

  1. open https://thundering-unruly-windflower.glitch.me/spoofh.html
  2. click on "click me see funny cats" button

CREDIT INFORMATION Externally reported security bugs may appear in Chrome release notes. If this bug is included, how would you like to be credited? Reporter credit: Hafiizh (https://www.linkedin.com/in/hafiizh-7aa6bb31/)

The original report as published on the Chromium issue tracker, by Hafiizh. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

The target is Google Chrome, reported through the Chrome VRP. The researcher, Hafiizh, describes a focus and opacity issue in frame handling that leads to clickjacking. The report was disclosed on 14 January 2025, rated medium severity, with a bounty of 5,000 USD.

The researcher states that the bug is similar to a previously filed issue, https://issues.chromium.org/issues/333708039. The scenario involves the Google One Tap button. When the cursor focus is on that button, the opacity of the frame is then set to 0, so the button is obscured by another element, described in the report as a "click me see funny cats" button. Despite the frame becoming invisible, focus remains on the Google One Tap button, which the researcher characterises as clickjacking. The researcher characterises this as clickjacking.

The environment is given as:

Text
Chrome Version 131.0.6755.0 (Official Build) canary (64-bit)
Operating System: Windows 10

The reproduction steps are short:

  1. Open the test page:
Text
https://thundering-unruly-windflower.glitch.me/spoofh.html
  1. Click on the "click me see funny cats" button.

The report does not describe the contents of the test page, the exact timing between the focus change and the opacity change, or what the Google One Tap button does when activated in this state. It also does not state a fix, a CVE identifier in the body, or a CVSS score.

Root cause

The report links a similar earlier issue and describes focus surviving the frame being made transparent. The report frames this as the same class of problem as the earlier issue it links to, without detailing the internal mechanism.

Impact

The report describes focus remaining on the Google One Tap button after its frame is made invisible, which the researcher calls clickjacking. The report does not demonstrate a specific account or data outcome, and the severity assigned is medium.

How this kind of bug works

Clickjacking normally relies on framing a target page and overlaying it with decoy content, so the user clicks the real target through a transparent layer. Framing defences such as X-Frame-Options and CSP frame-ancestors exist to stop that. Instead, the browser's own handling of focus and visibility is inconsistent. Focus is a state that survives visual changes. If an element keeps focus while its container becomes fully transparent, or is moved off screen, keyboard and pointer events can still be delivered to it. The user sees one thing and activates another.

Depending on timing, the browser may process the click against the stale focus state. Defences are ordering and invalidation: when a frame becomes non-visible, focus should be cleared or the element should be excluded from hit testing, and the browser should not deliver activation events to elements the user cannot see.

How to test for it

Look for features where an element can receive focus and then be hidden or made transparent by script or by user action: overlays, iframes whose opacity or visibility is toggled, dialogs that fade out, and consent or sign-in prompts that appear and disappear.

  1. Identify a sensitive control that can hold focus, such as a sign-in or consent button.
  2. Move focus to it, by keyboard or by clicking it without activating it where possible.
  3. Trigger the state change that hides its frame or container, for example a style update that sets opacity to 0.
  4. Click at the position where the hidden control sits, over whatever visible element now occupies that area.
  5. Observe whether the hidden control activates.

A positive result is that the action tied to the invisible control fires, while the visible element under the cursor does not. Repeat with different timings between the focus step and the hide step, since the bug may only appear in a narrow window. Also test keyboard activation after the element is hidden.

Common false positives: the element is hidden with display: none or visibility: hidden, which normally removes it from interaction; the click is blocked by a pointer-events rule; the action fires but has no security consequence; or the behaviour depends on a browser extension or a modified build. Confirm the result on a clean profile and record the exact version.

How it is fixed

The report does not state a fix. Where the issue is specific to a feature such as a sign-in prompt, the prompt can also be made to dismiss or reset when its container is hidden.

Hunting notes

This bug class tends to hide in UI that changes visibility dynamically: overlays, prompts, iframes with animated opacity, and anything that combines focus management with style changes. Recon signals include pages that toggle opacity or visibility on containers holding interactive elements, and features that keep focus across state changes.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

This report is about Google Chrome, the browser. It was sent in through the Chrome VRP, the programme Google runs to pay people who find security problems in Chrome. The researcher is Hafiizh. The report was made public on 14 January 2025, rated medium severity, and paid a bounty of 5,000 USD.

The problem is about how Chrome handles focus and frame visibility, which leads to clickjacking. Two words to unpack before going further.

A frame is a box inside a web page that can hold another page or a piece of content. Think of it as a picture frame hanging on a wall: the wall is the main page, and the frame holds something separate.

A race condition is what happens when two things are supposed to happen in a certain order, but the program does not guarantee that order. Imagine two people reaching for the same door handle at the same moment: who gets there first changes the outcome. In software, the result can depend on timing, and a bad outcome may only appear in a narrow window.

Clickjacking is a trick where you think you are clicking one thing but you are actually clicking another. A classic version is a transparent layer placed over a real button: you see a harmless button, but your click lands on the hidden one underneath.

The scenario in this report involves the Google One Tap button. The report refers to the Google One Tap button without describing it further. The researcher says that when the cursor focus is on that button, the opacity of the frame is then set to 0. Opacity is how see-through something is: opacity 0 means completely invisible. So the frame becomes invisible, and the button is obscured by another element, described in the report as a "click me see funny cats" button. Despite the frame becoming invisible, focus remains on the Google One Tap button, which the researcher calls clickjacking. The researcher calls this clickjacking.

Focus is the browser's notion of which element is currently "selected" to receive input. When you tab through a page, the element with the highlight has focus. Focus is a state, and the report's point is that this state survived the frame becoming invisible.

The environment is given as:

Text
Chrome Version 131.0.6755.0 (Official Build) canary (64-bit)
Operating System: Windows 10

Canary is an early, experimental build of Chrome, used for testing changes before they reach regular users.

The reproduction steps are short:

  1. Open the test page:
Text
https://thundering-unruly-windflower.glitch.me/spoofh.html
  1. Click on the "click me see funny cats" button.

Step 1 opens the test page given in the report. Step 2 clicks the "click me see funny cats" button.

The report does not describe the contents of the test page, the exact timing between the focus change and the opacity change, or what the Google One Tap button does when activated in this state. It also does not state a fix, a CVE identifier in the body, or a CVSS score.

In general, how this kind of bug works

Clickjacking normally relies on framing a target page and overlaying it with decoy content, so the user clicks the real target through a transparent layer. Framing defences such as X-Frame-Options and CSP frame-ancestors exist to stop that. These are instructions a website sends to the browser saying "do not let other sites put me in a frame".

Instead, the browser's own handling of focus and visibility is inconsistent. Focus is a state that survives visual changes. If an element keeps focus while its container becomes fully transparent, or is moved off screen, keyboard and pointer events can still be delivered to it. The user sees one thing and activates another.

Depending on timing, the browser may process the click against the stale focus state. Defences are ordering and invalidation: when a frame becomes non-visible, focus should be cleared or the element should be excluded from hit testing, and the browser should not deliver activation events to elements the user cannot see. Hit testing is the browser working out which element sits under your mouse pointer at a given moment.

How to test for it

Look for features where an element can receive focus and then be hidden or made transparent by script or by user action: overlays, iframes whose opacity or visibility is toggled, dialogs that fade out, and consent or sign-in prompts that appear and disappear.

  1. Identify a sensitive control that can hold focus, such as a sign-in or consent button.
  2. Move focus to it, by keyboard or by clicking it without activating it where possible.
  3. Trigger the state change that hides its frame or container, for example a style update that sets opacity to 0.
  4. Click at the position where the hidden control sits, over whatever visible element now occupies that area.
  5. Observe whether the hidden control activates.

A positive result is that the action tied to the invisible control fires, while the visible element under the cursor does not. Repeat with different timings between the focus step and the hide step, since the bug may only appear in a narrow window. Also test keyboard activation after the element is hidden.

Common false positives: the element is hidden with display: none or visibility: hidden, which normally removes it from interaction; the click is blocked by a pointer-events rule; the action fires but has no security consequence; or the behaviour depends on a browser extension or a modified build. Confirm the result on a clean profile and record the exact version.

How it is fixed

The report does not state a fix. Where the issue is specific to a feature such as a sign-in prompt, the prompt can also be made to dismiss or reset when its container is hidden.

Hunting notes

This bug class tends to hide in UI that changes visibility dynamically: overlays, prompts, iframes with animated opacity, and anything that combines focus management with style changes. Recon signals include pages that toggle opacity or visibility on containers holding interactive elements, and features that keep focus across state changes.

Glossary

  • Chrome VRP: Google's bug bounty programme for Chrome, which pays researchers for security reports.
  • Bounty: the money paid to a researcher for a valid security report.
  • Severity: a rating of how serious a bug is; here, medium.
  • Frame: a box inside a web page that holds separate content, such as another page.
  • Race condition: a bug where the outcome depends on the timing of two operations that should happen in a fixed order.
  • Clickjacking: a trick where a user clicks one thing but activates another, often through an invisible layer.
  • Opacity: how see-through an element is; opacity 0 means fully invisible.
  • Focus: the browser's state of which element is currently selected to receive input.
  • Canary: an early, experimental build of Chrome used for testing.
  • CVE identifier: a public reference number assigned to a known security vulnerability.
  • CVSS score: a numeric score used to express the severity of a vulnerability.
  • X-Frame-Options: a response header a site uses to tell browsers whether its pages may be placed in a frame.
  • CSP frame-ancestors: a Content Security Policy rule that says which sites are allowed to frame a page.
  • Hit testing: the browser working out which element is under the pointer at a given position.
  • False positive: a test result that looks like a bug but is not one, or has no security impact.

More by Hafiizh

View all

78 more disclosed reports, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Clickjacking and UI spoofing

The lesson behind this report.

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.