Skip to content
UI spoofing Advisory Advanced CVE-2025-3067

Inappropriate implementation in Custom Tabs (CVE-2025-3067)

An Android app can launch a Chrome Custom Tab with a long, nearly transparent fade-in animation, keeping the tab invisible while it receives touch events. This allows the app to trick the user into tapping permission prompts or sensitive buttons on arbitrary websites, bypassing clickjacking defences.

Philipp Beer Follow

Originally disclosed on Chrome VRP

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

VULNERABILITY DETAILS

Short Summary

An application without any permissions can exploit animations and launch a Chrome Custom Tab (CCT) to bypass permission checks on websites and perform clickjacking attacks against arbitrary websites.

Primitives

Android applications can use Chrome Custom Tabs (CCT) to open web content with minimal context switching, as Custom Tab Activities are launched within the same Task as the requesting application. Through the ActivityOptions.makeCustomAnimation method, Android also allows applications to specify custom enter and exit animations for cross-activity and same-task transitions, such as the transition between an app and a CCT.

An application installed on the user's device can exploit this functionality by launching a Custom Tab and setting an enter animation with a long fade-in duration, set to low opacity. This transition brings the Custom Tab to the foreground yet keeps it invisible to the user while the animation completes since the CCT is basically transparent (e.g., opacity=0.0005). As the CCT Activity is on top of the stack, and Chrome does not wait for animations to be finished before handling touches, screen interactions are handled by the browser.

The following minimum working example demonstrates this exploit, assuming Chrome is the default browser:

MainActivity.kt

Kotlin
val builder = CustomTabsIntent.Builder()
// setStartAnimation internally uses ActivityOptions#makeCustomAnimation
builder.setStartAnimations(this, R.anim.fade_in, R.anim.fade_out) 
val customTabsIntent = builder.build()
customTabsIntent.launchUrl(this, victimUrl)

res/anim/fade_in.xml

XML
<?xml version="1.0" encoding="utf-8"?>
<!-- Long-running animation with low opacity -->
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
    android:fromAlpha="0.0"
    android:toAlpha="0.0005"
    android:duration="20000"/>

res/anim/fade_out.xml

XML
<?xml version="1.0" encoding="utf-8"?>
<!-- This boils down to no animation, as duration = 0 -->
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
    android:fromAlpha="1.0"
    android:toAlpha="1.0"
    android:duration="0" />

Chrome is not vulnerable when opening a website via a non-CCT Intent, as the FLAG_ACTIVITY_NEW_TASK flag is set on the Intent when launched (see relevant Chromium source code). This flag causes Chrome to start in a new task, which prevents the use of custom animations.

This report is part of a coordinated responsible disclosure on the underlying animation-based tapjacking vulnerability we discovered on Android.

Security Implications

The vulnerability opens doors for the following Chrome/Web-specific issues:

  1. Permission Bypass

By launching a CCT with this technique, an application can open an attacker-controlled website that requests sensitive permissions, such as microphone or camera access. By luring the user to tap a button that is positioned at the same location as the allow button in the permission prompt, the permission is granted to the website without user awareness. Since CCT permissions are shared with Chrome, any permissions granted in this way go beyond the CCT, granting persistence to the attacker in the victim's browser. This vulnerability also allows attackers to install PWAs on the user's device.

  1. Web Clickjacking Attacks

An app can secretly request a website, i.e., a checkout page of an online store, and lure the user into performing critical actions, such as clicking the 'buy' button. Existing standard web-based clickjacking prevention, such as the Content Security Policy frame-ancestors directive and the X-Frame-Options headers, do not apply here and do not mitigate these attacks. Note also that SameSite Lax cookies are attached to CCT-initiated navigations.

The implications of this clickjacking attack differ significantly from clickjacking in Android WebViews. Unlike WebViews, which do not share state with the browser, Custom Tabs do. That means that sessions established by the user on any websites in Chrome are available in the CCT.

Existing and Proposed Mitigations

Existing efforts made by Chrome to mitigate tapjacking vulnerabilities on Android, such as using View.setFilterTouchesWhenObscured and checks for the FLAG_WINDOW_IS_PARTIALLY_OBSCURED flag in modals (see relevant source code here) only mitigate attacks from malicious overlays on top of Chrome activities, not animations. Similarly, system level-protections built into Android 12+ only target overlays.

The source of this vulnerability is twofold: (1) Chrome does not wait for animations to be finished until it handles touches, and (2) Android allows long-running animations with low opacity.

To offer mitigations to protect users until (2) is fixed on the system level, we propose to also fix (1) and mitigate this issue at the browser level. Chrome can ignore all touch events until the onEnterAnimationComplete lifecycle method is called. This method is triggered once the enter animations are complete, thereby protecting against animation-based tapjacking.

Practicality of the Attack

A slow fade-in transition would reveal the Chrome window after a few seconds, but an app can re-launch its own activity before the animation ends to effectively hide the Custom Tab. According to our experiments, a delay of 2500ms between starting the CCT and re-launching the app's activity is effective. This means that the permission prompt is clickable for 2.5 seconds. Although this is a relatively short time frame for user interaction, attack scenarios like games, where users are prompted to tap quickly, make this attack practical. An app can further optimize load times by pre-warming the browser with the warmup method and pre-fetching the target page using mayLaunchUrl.

VERSION

Chrome Version: 130.0.6723.73 stable Operating System: Android 15, Pixel 6a

REPRODUCTION CASE

The Proof of Concept application and the attached video demonstrate bypassing the Chrome permission prompt via tapjacking (source code can be found here). Notice that the button positioning is manually adjusted for a Pixel 6a and might require some tweaking to generalize to different devices. The application opens https://webrtc.github.io/test-pages/src/iframe-video/, which immediately requests camera permission on load.

To replicate the permission tapjacking, follow these steps:

  • Grant Chrome permission to access the user's camera
  • Install the PoC application (source code and APK available here)
  • Click 'Choose browser' and choose Chrome
  • Click 'open com.android.chrome'
  • Click on the red button when it appears
  • The site is now allowed to access the camera

CREDIT INFORMATION

Reporter credit: Philipp Beer, TU Wien (@beerphilipp)

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

Context

Chrome Custom Tabs (CCT) let an Android application open web content with minimal context switching. The key design point is that a Custom Tab Activity is launched within the same Task as the requesting application, rather than in a separate task. That same-task behaviour is what makes the feature feel seamless, and it is also the property this report builds on.

Android additionally lets an application specify custom enter and exit animations for cross-activity and same-task transitions through ActivityOptions.makeCustomAnimation. That includes the transition between an app and a CCT. The report shows that an application holding no permissions at all can combine these two features to leave a Custom Tab on top of the activity stack while it is effectively invisible, and then have the browser, not the app, receive the user's taps.

The issue was reported against Chrome by Philipp Beer of TU Wien and tracked as CVE-2025-3067, an inappropriate implementation in Custom Tabs. It is part of a coordinated responsible disclosure covering the underlying animation-based tapjacking vulnerability the researcher found on Android.

Setup

The report gives the following environment:

Item Value
Chrome version 130.0.6723.73 stable
Operating system Android 15
Device Pixel 6a
Attacker precondition An application installed on the user's device, with no permissions
Browser precondition Chrome is the default browser

The proof of concept is an Android application whose source code and APK are linked from the report. The button positioning in the PoC is manually adjusted for a Pixel 6a and may need tweaking to generalise to other devices.

Finding it

The researcher noticed that the same-task launch of a Custom Tab allows the requesting application to attach a custom enter animation to the transition. Because Chrome does not wait for animations to finish before it handles touches, the browser can be on top of the stack and processing input while the animation is still running. If that animation keeps the Custom Tab at very low opacity for a long time, the user sees nothing of the browser, but the browser receives everything the user taps.

The report contrasts this with the non-CCT path: Chrome is not vulnerable when a website is opened via a non-CCT Intent, because the FLAG_ACTIVITY_NEW_TASK flag is set on the Intent when launched. That flag causes Chrome to start in a new task, which prevents the use of custom animations. The relevant Chromium source is cited in LaunchIntentDispatcher.java.

Exploitation

The minimum working example launches a victim URL in a Custom Tab with a long, low-opacity fade-in.

Step 1: launch the Custom Tab with a custom start animation

MainActivity.kt

Kotlin
val builder = CustomTabsIntent.Builder()
// setStartAnimation internally uses ActivityOptions#makeCustomAnimation
builder.setStartAnimations(this, R.anim.fade_in, R.anim.fade_out)
val customTabsIntent = builder.build()
customTabsIntent.launchUrl(this, victimUrl)

setStartAnimations internally uses ActivityOptions#makeCustomAnimation, so the app controls the enter and exit animations of the transition into the Custom Tab. The tab is launched at victimUrl, a page chosen by the attacker.

Step 2: make the enter animation long and almost transparent

res/anim/fade_in.xml

XML
<?xml version="1.0" encoding="utf-8"?>
<!-- Long-running animation with low opacity -->
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
    android:fromAlpha="0.0"
    android:toAlpha="0.0005"
    android:duration="20000"/>

The Custom Tab is brought to the foreground, but it stays invisible to the user while the animation completes, because the CCT is basically transparent (opacity 0.0005 at the end of a 20 second fade).

Step 3: keep the exit animation out of the way

res/anim/fade_out.xml

XML
<?xml version="1.0" encoding="utf-8"?>
<!-- This boils down to no animation, as duration = 0 -->
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
    android:fromAlpha="1.0"
    android:toAlpha="1.0"
    android:duration="0" />

With a duration of zero this is effectively no animation.

Step 4: let the browser take the taps

Because the CCT Activity is on top of the stack, and Chrome does not wait for animations to be finished before handling touches, screen interactions are handled by the browser. The user is looking at the attacker's app, but the taps land on the invisible web page.

Step 5: hide the tab again before the fade completes

A slow fade-in would reveal the Chrome window after a few seconds. The app can re-launch its own activity before the animation ends to effectively hide the Custom Tab. According to the researcher's experiments, a delay of 2500ms between starting the CCT and re-launching the app's activity is effective, which leaves the permission prompt clickable for 2.5 seconds. That is a short window, but scenarios such as games, where users are prompted to tap quickly, make the attack practical. Load times can be optimised further by pre-warming the browser with the warmup method and pre-fetching the target page with mayLaunchUrl.

Step 6: reproduce the permission bypass

The PoC application opens https://webrtc.github.io/test-pages/src/iframe-video/, which immediately requests camera permission on load. The reproduction steps are:

  1. Grant Chrome permission to access the user's camera.
  2. Install the PoC application (source code and APK available at the link in the report).
  3. Click 'Choose browser' and choose Chrome.
  4. Click 'open com.android.chrome'.
  5. Click on the red button when it appears.
  6. The site is now allowed to access the camera.

The report notes that the button positioning is manually adjusted for a Pixel 6a and may need tweaking for other devices.

Root cause

The report describes the source of the vulnerability as twofold:

  1. Chrome does not wait for animations to be finished until it handles touches.
  2. Android allows long-running animations with low opacity.

Existing Chrome mitigations for tapjacking on Android, such as View.setFilterTouchesWhenObscured and checks for the FLAG_WINDOW_IS_PARTIALLY_OBSCURED flag in modals, only mitigate attacks from malicious overlays on top of Chrome activities, not animations. Likewise, the system-level protections built into Android 12+ only target overlays. Neither defence covers animation-based tapjacking.

Impact

The report sets out two Chrome and web specific consequences.

Permission bypass. An application can open an attacker-controlled website that requests sensitive permissions, such as microphone or camera access. By luring the user to tap a button positioned at the same location as the allow button in the permission prompt, the permission is granted to the website without the user's awareness. Since CCT permissions are shared with Chrome, permissions granted this way go beyond the CCT and give the attacker persistence in the victim's browser. The technique also allows attackers to install PWAs on the user's device.

Web clickjacking. An app can secretly request a website, for example the checkout page of an online store, and lure the user into performing critical actions such as clicking the 'buy' button. Standard web-based clickjacking prevention, such as the Content Security Policy frame-ancestors directive and the X-Frame-Options headers, does not apply here and does not mitigate these attacks. SameSite Lax cookies are attached to CCT-initiated navigations.

The implications differ significantly from clickjacking in Android WebViews. WebViews do not share state with the browser, whereas Custom Tabs do: sessions the user has established on any website in Chrome are available in the CCT.

Fix

The report proposes a browser-level mitigation to protect users until the Android side is fixed: Chrome should ignore all touch events until the onEnterAnimationComplete lifecycle method is called. That method is triggered once the enter animations are complete, which protects against animation-based tapjacking. The researcher proposes fixing the first root cause at the browser level to protect users until the second is fixed on the system level.

  • Other same-task browser surfaces. Any browser activity that can be launched into the caller's task with a custom animation is a candidate. A positive result is a browser UI element that accepts a tap while its enter animation is still running and the activity is at low opacity.
  • Other permission prompts. The report demonstrates camera access. Try microphone, notifications, geolocation and similar prompts on a test page that requests them on load. A positive result is a grant recorded for the site without the user seeing the prompt.
  • PWA installation. Trigger the install flow from the invisible tab and place the lure button over the install control. A positive result is an installed PWA the user did not knowingly accept.
  • Session-bearing pages. Open a page where the user is already logged in through Chrome and place the lure over a state-changing control. A positive result is a state change performed with the user's existing session, confirming that CCT state sharing applies.
  • Timing and pre-warming. Vary the delay between launching the CCT and re-launching the app's activity, and use warmup and mayLaunchUrl to shorten load time. A positive result is a longer effective window in which the invisible page receives taps.
  • Non-CCT launch paths. Confirm that the same Intent without the CCT path does not work, since FLAG_ACTIVITY_NEW_TASK prevents custom animations. A positive result here would indicate a launch path that still permits the animation.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 14 min read.

What happened, in plain words

Imagine you are holding your phone and an app shows you a big red button that says "tap here to play". You tap it. What you do not see is that, underneath that button, the phone has quietly opened a web page in your browser, and your tap actually landed on that hidden web page instead of the game. If that hidden page was asking for permission to use your camera, your tap just said "yes" to the camera. That is the whole idea behind this bug.

This report is about a feature in Google Chrome on Android called Chrome Custom Tabs (often shortened to CCT). A Custom Tab is the lightweight browser window that opens inside another app when that app wants to show a web page, for example when you tap a link in a news app. It looks like a browser but it stays "inside" the app you were using, so you do not feel like you switched apps. That seamless feeling is exactly what the bug abuses.

The researcher, Philipp Beer of TU Wien, found that an app with no special permissions at all can use the animation that plays when a Custom Tab opens to keep the tab invisible while it still receives your taps. The issue was tracked as CVE-2025-3067, described as an "inappropriate implementation" in Custom Tabs. It is part of a coordinated responsible disclosure covering a broader animation-based tapjacking problem the researcher found on Android.

A few words before we go further, because they come up constantly:

  • Android is the operating system that runs on most phones that are not iPhones. Apps on Android are small programs you install.
  • Chrome is Google's web browser. On Android it can be set as the default browser, meaning it opens links unless you pick something else.
  • A permission is the phone asking you "may this app use your camera / microphone / location?". You answer yes or no.
  • Tapjacking is a trick where something invisible sits on top of what you think you are tapping, so your tap goes somewhere you did not intend. The name comes from "hijacking" your tap.
  • Clickjacking is the same idea on a web page: you think you are clicking one thing but you are really clicking another.

With those in hand, the rest of this article walks through how the trick works, step by step, in the same order as the technical report.

Context

Chrome Custom Tabs let an Android app open web content with minimal context switching. "Context switching" just means the mental jump of leaving one app and entering another. A Custom Tab avoids that jump because it is launched within the same Task as the app that asked for it.

A Task on Android is a stack of screens (called Activities) that belong together from the user's point of view. When you open an app, its screens pile up in a Task, and pressing back pops them off. The key design point here is that a Custom Tab Activity is launched inside the same Task as the requesting app, rather than in a separate Task. That same-Task behaviour is what makes the feature feel seamless, and it is also the property this report builds on.

Android also lets an app specify custom enter and exit animations for transitions between Activities, including the transition between an app and a Custom Tab. This is done through a method called ActivityOptions.makeCustomAnimation. An animation here is simply the visual effect (a fade, a slide) that plays while one screen replaces another.

The report shows that an app holding no permissions at all can combine these two features: the same-Task launch and the custom animation. The result is a Custom Tab left on top of the Activity stack while it is effectively invisible, and then the browser, not the app, receives the user's taps.

The issue was reported against Chrome by Philipp Beer of TU Wien and tracked as CVE-2025-3067, an inappropriate implementation in Custom Tabs. It is part of a coordinated responsible disclosure covering the underlying animation-based tapjacking vulnerability the researcher found on Android.

Setup

The report gives the following environment:

Item Value
Chrome version 130.0.6723.73 stable
Operating system Android 15
Device Pixel 6a
Attacker precondition An application installed on the user's device, with no permissions
Browser precondition Chrome is the default browser

The proof of concept (PoC) is an Android application whose source code and APK are linked from the report. A proof of concept is a small demonstration program that proves a bug is real without being a full attack tool. An APK is the file format Android uses to install an app. The button positioning in the PoC is manually adjusted for a Pixel 6a and may need tweaking to generalise to other devices, because screen sizes and layouts differ.

Finding it

The researcher noticed that the same-Task launch of a Custom Tab allows the requesting app to attach a custom enter animation to the transition. Because Chrome does not wait for animations to finish before it handles touches, the browser can be on top of the stack and processing input while the animation is still running. If that animation keeps the Custom Tab at very low opacity for a long time, the user sees nothing of the browser, but the browser receives everything the user taps. Opacity is how see-through something is: opacity 1.0 is fully solid, opacity 0.0 is fully invisible.

The report contrasts this with the non-CCT path. Chrome is not vulnerable when a website is opened via a non-CCT Intent, because the FLAG_ACTIVITY_NEW_TASK flag is set on the Intent when launched. An Intent is Android's message that says "please open this screen or do this action". A flag is an extra instruction attached to that message. FLAG_ACTIVITY_NEW_TASK tells Android to start the target in a brand new Task, which prevents the use of custom animations. The relevant Chromium source is cited in LaunchIntentDispatcher.java.

Exploitation

The minimum working example launches a victim URL in a Custom Tab with a long, low-opacity fade-in. A URL is a web address, like the ones you type in a browser bar. "Victim URL" means the page the attacker chooses to open secretly.

Step 1: launch the Custom Tab with a custom start animation

MainActivity.kt

Kotlin
val builder = CustomTabsIntent.Builder()
// setStartAnimation internally uses ActivityOptions#makeCustomAnimation
builder.setStartAnimations(this, R.anim.fade_in, R.anim.fade_out)
val customTabsIntent = builder.build()
customTabsIntent.launchUrl(this, victimUrl)

This is Kotlin, the programming language commonly used for Android apps. Line by line:

  • val builder = CustomTabsIntent.Builder() creates a helper object (a "builder") that assembles the request to open a Custom Tab. Think of it as filling in a form before sending it.
  • builder.setStartAnimations(this, R.anim.fade_in, R.anim.fade_out) tells the builder which animations to use when the tab opens (fade_in) and closes (fade_out). The comment notes that setStartAnimations internally uses ActivityOptions#makeCustomAnimation, so the app controls the enter and exit animations of the transition into the Custom Tab.
  • val customTabsIntent = builder.build() turns the filled-in form into the actual Intent, the message Android will act on.
  • customTabsIntent.launchUrl(this, victimUrl) sends that message, opening the tab at victimUrl, a page chosen by the attacker.

Why this step matters: it is how the attacker gets to choose both the page that opens and the animation that plays while it opens.

Step 2: make the enter animation long and almost transparent

res/anim/fade_in.xml

XML
<?xml version="1.0" encoding="utf-8"?>
<!-- Long-running animation with low opacity -->
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
    android:fromAlpha="0.0"
    android:toAlpha="0.0005"
    android:duration="20000"/>

This is XML, a text format for describing settings and layouts. Line by line:

  • <?xml version="1.0" encoding="utf-8"?> is the standard opening line that says "this is an XML file".
  • <!-- Long-running animation with low opacity --> is a comment for humans; the phone ignores it.
  • <alpha ...> starts an animation that changes how see-through something is. The xmlns:android=... part just points to Android's naming rules.
  • android:fromAlpha="0.0" means the animation starts fully invisible.
  • android:toAlpha="0.0005" means it ends at almost fully invisible (0.0005 is a tiny fraction, far closer to invisible than to solid).
  • android:duration="20000" means the animation lasts 20,000 milliseconds, which is 20 seconds.

The Custom Tab is brought to the foreground, but it stays invisible to the user while the animation completes, because the CCT is basically transparent (opacity 0.0005 at the end of a 20 second fade).

Step 3: keep the exit animation out of the way

res/anim/fade_out.xml

XML
<?xml version="1.0" encoding="utf-8"?>
<!-- This boils down to no animation, as duration = 0 -->
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
    android:fromAlpha="1.0"
    android:toAlpha="1.0"
    android:duration="0" />

Line by line:

  • The first line and the comment are the same kind of housekeeping as before.
  • android:fromAlpha="1.0" and android:toAlpha="1.0" mean the animation starts fully solid and ends fully solid, so nothing visibly changes.
  • android:duration="0" means it lasts zero milliseconds.

With a duration of zero this is effectively no animation. The attacker does not want a distracting effect when the tab closes, so this file keeps that transition quiet.

Step 4: let the browser take the taps

Because the CCT Activity is on top of the stack, and Chrome does not wait for animations to be finished before handling touches, screen interactions are handled by the browser. The user is looking at the attacker's app, but the taps land on the invisible web page. This is the heart of the trick: the thing on top is invisible, but it is still the thing that receives your finger.

Step 5: hide the tab again before the fade completes

A slow fade-in would reveal the Chrome window after a few seconds. The app can re-launch its own Activity before the animation ends to effectively hide the Custom Tab. According to the researcher's experiments, a delay of 2500ms between starting the CCT and re-launching the app's Activity is effective, which leaves the permission prompt clickable for 2.5 seconds. That is a short window, but scenarios such as games, where users are prompted to tap quickly, make the attack practical. Load times can be optimised further by pre-warming the browser with the warmup method and pre-fetching the target page with mayLaunchUrl. "Pre-warming" means getting the browser ready in advance so the page appears faster, and "pre-fetching" means downloading the page ahead of time.

Step 6: reproduce the permission bypass

The PoC application opens https://webrtc.github.io/test-pages/src/iframe-video/, which immediately requests camera permission on load. The reproduction steps are:

  1. Grant Chrome permission to access the user's camera.
  2. Install the PoC application (source code and APK available at the link in the report).
  3. Click 'Choose browser' and choose Chrome.
  4. Click 'open com.android.chrome'.
  5. Click on the red button when it appears.
  6. The site is now allowed to access the camera.

The report notes that the button positioning is manually adjusted for a Pixel 6a and may need tweaking for other devices. In other words, the attacker lines up their fake button with the real "allow" button underneath, so one tap does both jobs.

Root cause

The report describes the source of the vulnerability as twofold:

  1. Chrome does not wait for animations to be finished until it handles touches.
  2. Android allows long-running animations with low opacity.

Existing Chrome mitigations for tapjacking on Android, such as View.setFilterTouchesWhenObscured and checks for the FLAG_WINDOW_IS_PARTIALLY_OBSCURED flag in modals, only mitigate attacks from malicious overlays on top of Chrome Activities, not animations. An overlay is a window drawn on top of another one. Likewise, the system-level protections built into Android 12+ only target overlays. Neither defence covers animation-based tapjacking.

Impact

The report sets out two Chrome and web specific consequences.

Permission bypass. An application can open an attacker-controlled website that requests sensitive permissions, such as microphone or camera access. By luring the user to tap a button positioned at the same location as the allow button in the permission prompt, the permission is granted to the website without the user's awareness. Since CCT permissions are shared with Chrome, permissions granted this way go beyond the CCT and give the attacker persistence in the victim's browser. "Persistence" means the access sticks around after the trick is over. The technique also allows attackers to install PWAs on the user's device. A PWA, or Progressive Web App, is a website that can be installed like a normal app.

Web clickjacking. An app can secretly request a website, for example the checkout page of an online store, and lure the user into performing critical actions such as clicking the 'buy' button. Standard web-based clickjacking prevention, such as the Content Security Policy frame-ancestors directive and the X-Frame-Options headers, does not apply here and does not mitigate these attacks. A header is a small piece of information a web server sends along with a page, and these particular headers are instructions that tell browsers "do not let other sites embed me". SameSite Lax cookies are attached to CCT-initiated navigations. A cookie is a small piece of data a website stores in your browser to remember who you are, for example to keep you logged in.

The implications differ significantly from clickjacking in Android WebViews. A WebView is a browser engine embedded inside an app, used to show web content without a full browser. WebViews do not share state with the browser, whereas Custom Tabs do: sessions the user has established on any website in Chrome are available in the CCT. A session is the logged-in state a website remembers about you.

Fix

The report proposes a browser-level mitigation to protect users until the Android side is fixed: Chrome should ignore all touch events until the onEnterAnimationComplete lifecycle method is called. A lifecycle method is a function the system calls automatically at a certain moment in a screen's life; this one fires when the enter animation has finished. That method is triggered once the enter animations are complete, which protects against animation-based tapjacking. The researcher proposes fixing the first root cause at the browser level to protect users until the second is fixed on the system level.

  • Other same-task browser surfaces. Any browser Activity that can be launched into the caller's Task with a custom animation is a candidate. A positive result is a browser UI element that accepts a tap while its enter animation is still running and the Activity is at low opacity.
  • Other permission prompts. The report demonstrates camera access. Try microphone, notifications, geolocation and similar prompts on a test page that requests them on load. A positive result is a grant recorded for the site without the user seeing the prompt.
  • PWA installation. Trigger the install flow from the invisible tab and place the lure button over the install control. A positive result is an installed PWA the user did not knowingly accept.
  • Session-bearing pages. Open a page where the user is already logged in through Chrome and place the lure over a state-changing control. A positive result is a state change performed with the user's existing session, confirming that CCT state sharing applies.
  • Timing and pre-warming. Vary the delay between launching the CCT and re-launching the app's Activity, and use warmup and mayLaunchUrl to shorten load time. A positive result is a longer effective window in which the invisible page receives taps.
  • Non-CCT launch paths. Confirm that the same Intent without the CCT path does not work, since FLAG_ACTIVITY_NEW_TASK prevents custom animations. A positive result here would indicate a launch path that still permits the animation.

Glossary

  • Activity: a single screen in an Android app, such as a game screen or a settings page.
  • Android: the operating system that runs on most non-Apple phones.
  • Animation: a visual effect (fade, slide) that plays while one screen replaces another.
  • APK: the file format Android uses to install an app.
  • Chrome: Google's web browser.
  • Chrome Custom Tabs (CCT): a lightweight browser window that opens inside another app, sharing the browser's state.
  • Clickjacking: tricking a user into clicking something different from what they think they are clicking.
  • Cookie: a small piece of data a website stores in your browser to remember you, for example to keep you logged in.
  • CVE: a public identifier for a known security vulnerability.
  • Default browser: the browser that opens links unless you choose another.
  • Flag: an extra instruction attached to an Android Intent.
  • Header: a small piece of information a web server sends along with a page.
  • Intent: Android's message asking the system to open a screen or perform an action.
  • Kotlin: a programming language commonly used for Android apps.
  • Lifecycle method: a function the system calls automatically at a certain moment in a screen's life.
  • Opacity: how see-through something is; 1.0 is solid, 0.0 is invisible.
  • Overlay: a window drawn on top of another window.
  • Permission: the phone asking you whether an app may use something like the camera or microphone.
  • Persistence: access that sticks around after the initial trick.
  • Proof of concept (PoC): a small demonstration program that proves a bug is real.
  • PWA (Progressive Web App): a website that can be installed like a normal app.
  • Session: the logged-in state a website remembers about you.
  • SameSite Lax cookie: a cookie with a setting that controls when it is sent along with requests.
  • Tapjacking: tricking a user into tapping something different from what they think they are tapping.
  • Task: a stack of Android screens that belong together from the user's point of view.
  • URL: a web address.
  • WebView: a browser engine embedded inside an app, used to show web content without a full browser.
  • XML: a text format for describing settings and layouts.

More by Philipp Beer

View all

2 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.