Skip to content
UI spoofing Advisory Intermediate CVE-2024-3846

Inappropriate implementation in Prompts (CVE-2024-3846)

A permission prompt in Chrome could be hidden behind a Picture-in-Picture window on Linux, allowing an attacker to trick users into granting sensitive permissions and then use keyboard shortcuts to steal clipboard data or navigate hidden pages. The attacker could also perform harmful actions in sensitive browser pages.

Ahmed ElMasry Follow

Originally disclosed on Chrome VRP

Bounty$2,000 Low View original
  • Fix shipped in 11 months

VULNERABILITY DETAILS

This issue is similar to https://crbug.com/chromium/1237310 and bypass of https://crbug.com/chromium/1394410 and Exploitation way is similar to https://crbug.com/chromium/1358647

This is a report to a security vulnerability in google chrome/chromium browser as high-quality report with functional exploit. here this vulnerability allows attackers to

1-Spoof All Permission Prompts, which is totally hidden , and Attacker can gain super permissions for his website Like:

(Clipboard Data & Mic & Camera & Location & Screen Sharing,..etc)

2-Attacker Can Read the Data (text,images) copied to the clipboard that also can be chained with CTRL+A CTRL+C ,this could leak Google/Facebook/Twitter username and passwords ,...etc

3-Attacker Can trick user to do harmful actions in Sensitive pages (Like Chrome Flags or Reset all Config , Stop Sync,..etc)

chrome://flags/ using (TAB and ENTER) Similar to what POC Video Shown
chrome://settings/resetProfileSettings?origin=userclick (TAB TAB TAB ENTER),... same idea of POC Video

4-Attacker Can Navigate the hidden Window with any website that contain token or sensitive data and use CTRL+A CTRL+C to steal usernames, e-mail addresses, telephone numbers from any site like twitter, google and any others or Navigate the hidden window and resize it to get the data with Screen Sharing that was permitted in step 1

==================================
Root cause and Behavior Analysis:
------------------------- ---------

The https://crbug.com/chromium/1394410 was fixed by this commit(https://chromium.googlesource.com/chromium/src/+/073278eae6d6ce07cc40107567907e545ec56157)

(Ignore button pressed event if button row intersects with PiP window) , which isn't sufficient in this case ,because there are two different behaviors for permission prompt while showing:

[A]-Windows: after popup windows opened and popup shown asking permission ,there is a good behavior in showing the prompt which is "if the permission prompt popup size isn't fitted/or larger than content-area of the popup window it will re-allocate it's position automatically to show permission prompt above this window because it doesn't fit it"
[B]-Linux: in Linux if the permission prompt is larger than the content-area of the popup windos it will be fitted and content area can cover part of the permission prompt and the prompt keeps in content-area unlike in windows, make this more likely to be spoofed ,if the popup window is docked to narrow size the permission prompt is clipped and still remains inside ,so the bypass can be triggered from this point[1].

How Attack works?

from Point[1] we can try to dock the size of the popup window to make the permission prompt clipped and making the raw of buttons hidden down in the clipped area of "content-area" bypassing the intersection check made by the commit above (073278eae6d6ce07cc40107567907e545ec56157), so there is no intersection and attack(bypass) happens.

Here in the POC,i have Demonstrated Clipboard Permission (as simple case) but i tested all other scenarios Dialogs in the previous one, but one is sufficient to show the case.

Victim Play War Game , Just Pick your Weapons 1ST to Start Game and Attacker Got Sensitive Data and User Allow Permissions Without Being aware

on Video PoC

User Asked to Pick Weapons before Start Game and behind the Scene these actions take effect

Attacker Website Asks for Clipboard Permission (user accept with TAB TAB TAB ENTER) ,this is totally hidden behind Picture in Picture Black Window


Version:

Old Bug Fixed in this version

Google Chrome Canary:115.0.5764.0
Version:115.0.5764.0
Milestone:115
Branch:5764
Branch Base Position:1142443
Branch Base Commit:https://chromium.googlesource.com/chromium/src/+/886736784d414d3a4c5b8d503a0043ba00ac7f94
OS:Linux
------------------------- ----------------
1st Commit introduced the Bug by as below:
------------------------- ----------------
Commit:https://crrev.com/073278eae6d6ce07cc40107567907e545ec56157
Cr-Commit-Position: refs/heads/main@{#1141985}
Description:Ignore button pressed event if button row intersects with PiP window
------------------------- ----------------
Bug Tested With the Following Properties:
------------------------- ----------------
Google Chrome:115.0.5773.4 (Official Build) dev (64-bit)
Revision:f255fbf1fbd3eceb020c09db1d8e65f381700040-refs/branch-heads/5773@{#8}
Version:115.0.5773.4
Milestone:115
Branch:5773
Branch Base Position:1143970
OS:Linux
------------------------- ----------------
Chromium:115.0.5773.0 (Developer Build) (64-bit)
Revision:6db637d10240aa61c6c01450f0ae542d2f2652b1-refs/heads/main@{#1143952}
asan-linux-release-1143952
OS:Linux

------------------------- ----------------
REPRODUCTION CASE

the exploit use a vulnerability in showing

nobody will send critical information to unknown sites /Share Screen with , or allow to read Clipboard Sensitive data or Allow any Permissions to unknown Website. but this can be hide by full bypassing the visibility of all Prompts. in this case nobody are able to notice that they are sending their data to unknown attackers or allowing them to use Power Permissions for their Websites.

REPRODUCTION STEPS

"Host the attached files on your Server and test , or simply Use Online Poc as below"

(Play a War Game , Just Pick your Weapons 1ST to Start Game and Attacker Got Sensitive Data and Victim Allow Critical Permissions Without Being aware

1-Visit https://vrphunt.com/chrome/spoof-leak/canvasautofill-modx-linux-doooh-dev.html (for Linux Only)

2- Follow Instructions of the Game to Pickup Weapons once shown (TAB -TAB -TAB -Enter).

3-Check Site Permissions to see the permissions you have allowed attacker to use.

4-Close PIP (Picture in Picture Overlay) Right Bottom Corner and Check Permissions of the website like in POC Videos.

====================
Observed:

Permission Prompts can be totally hidden as discussed in root cause analysis above, as popup window not visible to user and fully Covered by Picture in Picture (PIP) Overlay,This Obscured active window accepts keyboard input in sensitive browser UI and web pages that can be used to steal user data through Clipboard and attacker control the navigation for this popup or let user do harmful actions like discussed above.

Expected:

Sensitive browser UI is always visible to user so Hide Permission Prompts popup if it overlaps with picture-in-picture window.

=====================
Mitigation:

Fix1:

Add Another CL to Hide Permission Prompts popup if it overlaps with picture-in-picture window.
Fix2:

Add CL for getting permission prompt size and compare it with content-area size if the permission prompt can be fitted in content area it's okay if not i suggest the behavior like in Windows ,showing the prompt above the popup window this make the previous CL https://chromium.googlesource.com/chromium/src/+/073278eae6d6ce07cc40107567907e545ec56157 still valid just need a few changes in compare of size.

**Poc Videos of Linux Tests Directly Attached
**Local Offline Files (Poc) Directly Attached
**simple short video for Behavior causing the Bug(as stated in Root cause analysis) Directly Attached.

CREDIT INFORMATION

Reporter credit: Ahmed ElMasry

Thank you for your attention. with kind Regards

The original report as published on the Chromium issue tracker, by Ahmed ElMasry. 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. 6 min read.

Context

This is a Chrome VRP report about how permission prompts are drawn and positioned relative to a Picture-in-Picture (PiP) window. The affected component is the Prompts UI in Google Chrome/Chromium. The researcher describes the issue as an inappropriate implementation, tracked as CVE-2024-3846, with a low severity rating and a 2,000 USD bounty, disclosed on 1 May 2024.

The report positions itself as a bypass of an earlier fix. The earlier issue, https://crbug.com/chromium/1394410, was fixed by a commit whose description is "Ignore button pressed event if button row intersects with PiP window". The researcher also says the issue is similar to https://crbug.com/chromium/1237310 and that the exploitation approach is similar to https://crbug.com/chromium/1358647.

The core claim is that a permission prompt can be rendered fully hidden behind a PiP overlay, while the obscured window still accepts keyboard input. That lets an attacker drive sensitive browser UI and web pages with TAB and ENTER, without the victim seeing the prompt.

Setup

The researcher tested on Linux. The versions named in the report are:

Build Version Revision / branch OS
Google Chrome Canary 115.0.5764.0 Milestone 115, branch 5764, branch base position 1142443, branch base commit [redacted] Linux
Google Chrome dev (Official Build, 64-bit) 115.0.5773.4 [redacted]-refs/branch-heads/5773@{#8}, milestone 115, branch 5773, branch base position 1143970 Linux
Chromium (Developer Build, 64-bit) 115.0.5773.0 [redacted]-refs/heads/main@{#1143952}, asan-linux-release-1143952 Linux

The report says the bug was introduced by commit [redacted] (Cr-Commit-Position refs/heads/main@{#1141985}), the same commit that fixed the earlier issue. The researcher states that the old bug is fixed in the Canary version above.

The reproduction requires hosting the attached files on a server, or using the online proof of concept. The online PoC is Linux only:

Text
https://vrphunt.com/chrome/spoof-leak/canvasautofill-modx-linux-doooh-dev.html

The scenario is framed as a game: the victim plays a war game and picks weapons before starting, while the attacker's actions happen behind the scenes.

Finding it

The researcher analysed why the earlier fix is insufficient. The commit ignores a button pressed event when the button row intersects with the PiP window, but the report says there are two different behaviours for permission prompts while they are shown:

  • Windows: after a popup window opens and the permission prompt is shown, if the prompt is larger than the content area of the popup window, the prompt is re-allocated automatically so it is shown above the window, because it does not fit.
  • Linux: if the permission prompt is larger than the content area of the popup window, it is fitted, and the content area can cover part of the prompt. The prompt stays inside the content area, unlike on Windows. If the popup window is docked to a narrow size, the prompt is clipped and still remains inside. This is the point the researcher labels [1].

Because the prompt is clipped inside the content area, the row of buttons can be hidden down in the clipped area. The intersection check added by the earlier commit then finds no intersection, so the bypass triggers.

Exploitation

The report lists four capabilities the attacker gains:

  1. Spoof all permission prompts, which are totally hidden, so the attacker can gain super permissions for the website, such as clipboard data, microphone, camera, location and screen sharing.
  2. Read data (text, images) copied to the clipboard, which can be chained with CTRL+A and CTRL+C. The report says this could leak Google, Facebook and Twitter usernames and passwords.
  3. Trick the user into harmful actions in sensitive pages, such as Chrome Flags or resetting all configuration or stopping sync. The report gives these examples:
    • chrome://flags/ using TAB and ENTER, similar to what the PoC video shows.
    • chrome://settings/resetProfileSettings?origin=userclick using TAB TAB TAB ENTER, described as the same idea as the PoC video.
  4. Navigate the hidden window to any website containing a token or sensitive data and use CTRL+A and CTRL+C to steal usernames, email addresses and telephone numbers from sites such as Twitter and Google, or navigate the hidden window and resize it to get the data with screen sharing that was permitted in step 1.

Step 1: Open the PoC page

Visit the online PoC (Linux only):

Text
https://vrphunt.com/chrome/spoof-leak/canvasautofill-modx-linux-doooh-dev.html

Step 2: Follow the game instructions

Pick up weapons once shown, using TAB, TAB, TAB, ENTER. The attacker website asks for clipboard permission, and the user accepts with TAB TAB TAB ENTER. The report says this is totally hidden behind the Picture-in-Picture black window.

Step 3: Check site permissions

Check the site permissions to see which permissions the attacker has been allowed to use.

Step 4: Close the PiP overlay

Close the Picture-in-Picture overlay in the right bottom corner and check the permissions of the website, as shown in the PoC videos.

The report says the PoC demonstrates clipboard permission as a simple case, but that the researcher tested all other dialog scenarios in the previous issue. One case is sufficient to show the behaviour.

Root cause

The root cause is the Linux behaviour described above: when the permission prompt is larger than the content area of the popup window, it is fitted and clipped inside the content area instead of being repositioned above the window as on Windows. Docking the popup window to a narrow size hides the button row in the clipped area, so the intersection check from commit [redacted] does not fire. The obscured active window still accepts keyboard input in sensitive browser UI and web pages, which allows the attacker to drive the prompt and the page with TAB and ENTER.

The report's observed behaviour is that permission prompts can be totally hidden, because the popup window is not visible to the user and is fully covered by the PiP overlay. The expected behaviour is that sensitive browser UI is always visible to the user, so the permission prompt popup should be hidden if it overlaps with the picture-in-picture window.

Impact

Under the conditions described, an attacker can hide permission prompts behind a PiP overlay and obtain permissions such as clipboard, microphone, camera, location and screen sharing without the victim being aware. The attacker can also read clipboard contents, navigate the hidden window to sites with sensitive data and use CTRL+A and CTRL+C to steal usernames, email addresses and telephone numbers, or resize the hidden window to capture data through screen sharing. The attacker can also trick the user into harmful actions in sensitive pages such as chrome://flags/ or chrome://settings/resetProfileSettings?origin=userclick.

The report notes that nobody would send critical information to unknown sites, share their screen, allow reading of sensitive clipboard data or grant permissions to an unknown website, but that hiding all prompts removes the victim's ability to notice.

Fix

The report proposes two fixes:

  1. Add another CL to hide the permission prompt popup if it overlaps with the picture-in-picture window.
  2. Add a CL to get the permission prompt size and compare it with the content area size. If the prompt can be fitted in the content area, that is fine; if not, the suggested behaviour is like Windows, showing the prompt above the popup window. This keeps the previous CL [redacted] valid with a few changes in the size comparison.

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. 16 min read.

What happened, in plain words

Imagine you are browsing the web and a small black video box appears in the corner of your screen, the kind that keeps playing a video while you scroll elsewhere. That box is called Picture-in-Picture, or PiP. Now imagine that behind that black box, Chrome is quietly asking you a question: "Can this website read your clipboard?" You cannot see the question because the box covers it. But the question is still there, and it still listens to your keyboard. If someone tells you to press TAB three times and then ENTER, you are answering "yes" to a question you never saw.

That is the heart of this report. A security researcher found that on Linux, Chrome can draw a permission prompt (the little bubble that asks whether a site may use your microphone, camera, location, clipboard and so on) in a place where it is completely hidden behind a Picture-in-Picture window. The hidden window still accepts keyboard input. So an attacker can walk a victim through a few key presses, disguised as a game, and the victim ends up granting powerful permissions to the attacker's website without ever seeing the request.

This was filed with Google's Chrome Vulnerability Rewards Program (VRP), the scheme that pays people for finding and reporting security bugs in Chrome. It was tracked as CVE-2024-3846, rated low severity, paid a 2,000 USD bounty, and disclosed on 1 May 2024. The researcher is Ahmed ElMasry. The affected part of Chrome is the Prompts user interface, and the weakness is classified as an inappropriate implementation, meaning the code does something in a way that was not intended rather than, say, crashing or letting an attacker run their own code.

The report is also a bypass. A bypass means getting around a fix that was already put in place for an earlier bug. An earlier issue, https://crbug.com/chromium/1394410, had been fixed by a code change (a commit) described as "Ignore button pressed event if button row intersects with PiP window". In plain words, that fix said: if the row of buttons on a permission prompt overlaps the PiP window, ignore clicks on those buttons. The researcher shows that this check can be avoided on Linux, because the buttons can be pushed into a clipped area where the overlap check no longer sees them. The report also says the issue is similar to https://crbug.com/chromium/1237310 and that the way it is exploited is similar to https://crbug.com/chromium/1358647.

The setup: what was tested and on what

Before explaining the trick, it helps to know what a permission prompt is. Modern browsers have a set of features that a website can request access to: your clipboard (what you have copied), your microphone, your camera, your location, your screen (screen sharing). These are powerful, so the browser does not hand them over silently. It shows a small prompt asking you to allow or deny. The prompt is part of the browser's own interface, not the website's page, which is why it is called browser UI (user interface).

A popup window is a separate small browser window that a website can open. Picture-in-Picture is a browser feature that floats a video in a small always-on-top window so you can keep watching while you do other things. The report is about what happens when a permission prompt and a PiP window end up in the same place.

The researcher tested on Linux. The versions named in the report are:

Build Version Revision / branch OS
Google Chrome Canary 115.0.5764.0 Milestone 115, branch 5764, branch base position 1142443, branch base commit [redacted] Linux
Google Chrome dev (Official Build, 64-bit) 115.0.5773.4 [redacted]-refs/branch-heads/5773@{#8}, milestone 115, branch 5773, branch base position 1143970 Linux
Chromium (Developer Build, 64-bit) 115.0.5773.0 [redacted]-refs/heads/main@{#1143952}, asan-linux-release-1143952 Linux

A few of those words deserve a short explanation. Chrome Canary is the experimental build of Chrome that gets new code first, before it reaches ordinary users. Chrome dev is a slightly less experimental build. Chromium is the open-source project that Chrome is built from. A revision is an identifier for one exact snapshot of the source code, and a commit is a saved change to that code. A milestone is a big numbered release cycle (here, 115). The asan-linux-release part refers to a build made with AddressSanitizer, a tool that helps developers catch memory errors; it is just the name of the build used for testing.

The report says the bug was introduced by commit [redacted] (Cr-Commit-Position refs/heads/main@{#1141985}), which is the same commit that fixed the earlier issue. In other words, the fix for the old bug created the conditions for this new one. The researcher states that the old bug is fixed in the Canary version above.

To try it yourself, the report says you host the attached files on your own server, or simply use the online proof of concept. A proof of concept (PoC) is a small demonstration that shows a bug is real, without needing to be a finished attack tool. The online PoC is Linux only:

Text
https://vrphunt.com/chrome/spoof-leak/canvasautofill-modx-linux-doooh-dev.html

This is a single web address. Opening it in Chrome on Linux loads the researcher's demonstration page. The name of the file hints at what it does (canvas, autofill, spoof, leak), but the report does not explain the file name, so treat it simply as the address of the demo.

The scenario is framed as a game: the victim plays a war game and picks weapons before starting, while the attacker's actions happen behind the scenes. The game is the disguise. While you think you are choosing a weapon, you are actually pressing keys that answer a hidden permission prompt.

Finding it: why the earlier fix was not enough

To understand the bypass, you need to know what the earlier fix actually checked. The commit ignores a button pressed event when the button row intersects with the PiP window. Intersects is a geometry word: two rectangles intersect if they overlap. So the fix was: if the row of Allow/Deny buttons on the prompt overlaps the PiP window, do not treat a press there as a real button press. The idea is that if the PiP window is covering the buttons, a click or key press should not count, because the user cannot see what they are pressing.

The researcher analysed why this is insufficient, and found that permission prompts behave differently on Windows and on Linux while they are shown:

  • Windows: after a popup window opens and the permission prompt is shown, if the prompt is larger than the content area of the popup window, the prompt is re-allocated automatically so it is shown above the window, because it does not fit. The content area is the inside of the window, the part where the page is drawn. On Windows, when the prompt is too big for that space, Chrome moves it out and shows it above the window, where you can see it.
  • Linux: if the permission prompt is larger than the content area of the popup window, it is fitted, and the content area can cover part of the prompt. The prompt stays inside the content area, unlike on Windows. If the popup window is docked to a narrow size, the prompt is clipped and still remains inside. This is the point the researcher labels [1].

Clipped means cut off: the part of the prompt that does not fit is simply not drawn, as if you pushed a poster halfway behind a door. Docked means the window has been resized or snapped to a narrow shape. So on Linux, if you make the popup window narrow, the permission prompt is squeezed inside it and its bottom part, including the row of buttons, is cut off and hidden.

Because the prompt is clipped inside the content area, the row of buttons can be hidden down in the clipped area. The intersection check added by the earlier commit then finds no intersection, so the bypass triggers. This is the clever part: the fix only looks for buttons that overlap the PiP window. If the buttons are not drawn at all because they are clipped away, there is nothing to overlap, so the check passes and the key presses are accepted. The protection was looking in the wrong place.

Exploitation: what the attacker gets

The report lists four capabilities the attacker gains:

  1. Spoof all permission prompts, which are totally hidden, so the attacker can gain super permissions for the website, such as clipboard data, microphone, camera, location and screen sharing. Spoof here means to fake or misrepresent: the prompt the user thinks they are answering is not the one they are actually answering, or they are not aware of it at all. Super permissions is the researcher's phrase for the powerful ones.
  2. Read data (text, images) copied to the clipboard, which can be chained with CTRL+A and CTRL+C. The report says this could leak Google, Facebook and Twitter usernames and passwords. CTRL+A selects everything on a page, and CTRL+C copies it. If the attacker can drive the keyboard in a hidden window that is showing a logged-in site, they can select and copy that site's content. The clipboard is the temporary storage your computer uses when you copy something; any page with clipboard read permission can look inside it.
  3. Trick the user into harmful actions in sensitive pages, such as Chrome Flags or resetting all configuration or stopping sync. Chrome Flags (chrome://flags/) is a hidden settings page where experimental features are switched on and off. Resetting the profile settings wipes your customisations. Stopping sync disconnects your Chrome data from your Google account. The report gives these examples:
    • chrome://flags/ using TAB and ENTER, similar to what the PoC video shows.
    • chrome://settings/resetProfileSettings?origin=userclick using TAB TAB TAB ENTER, described as the same idea as the PoC video.
  4. Navigate the hidden window to any website containing a token or sensitive data and use CTRL+A and CTRL+C to steal usernames, email addresses and telephone numbers from sites such as Twitter and Google, or navigate the hidden window and resize it to get the data with screen sharing that was permitted in step 1. A token, in web security, is a piece of data that proves who you are or grants access, a bit like a wristband at an event. If an attacker can read a page that contains one, they may be able to act as you.

Step 1: Open the PoC page

Visit the online PoC (Linux only):

Text
https://vrphunt.com/chrome/spoof-leak/canvasautofill-modx-linux-doooh-dev.html

This step loads the demonstration. You do it in Chrome on Linux, because the behaviour being shown is specific to how Linux positions the prompt. On Windows the prompt would be moved out and become visible, so the trick would not work the same way.

Step 2: Follow the game instructions

Pick up weapons once shown, using TAB, TAB, TAB, ENTER. The attacker website asks for clipboard permission, and the user accepts with TAB TAB TAB ENTER. The report says this is totally hidden behind the Picture-in-Picture black window.

Why these keys? TAB moves the keyboard focus from one control to the next, like using the arrow keys to move a highlight around a menu. ENTER activates whatever is highlighted. A permission prompt has buttons (Allow, Deny, and sometimes more), and TAB cycles through them. Three TABs followed by ENTER lands on a particular button and presses it. The victim thinks they are picking a weapon in the game; in reality the same key presses are being received by the hidden prompt. The report says the prompt is totally hidden behind the Picture-in-Picture black window, so the victim has no visual cue that a permission question is on screen.

Step 3: Check site permissions

Check the site permissions to see which permissions the attacker has been allowed to use.

This is the verification step. Chrome lets you inspect what a site has been granted, usually through the icon next to the address bar or through the site settings. If the trick worked, the attacker's site now holds permissions the victim never knowingly granted. Checking is how you confirm the outcome rather than trusting the demonstration.

Step 4: Close the PiP overlay

Close the Picture-in-Picture overlay in the right bottom corner and check the permissions of the website, as shown in the PoC videos.

The PiP overlay is the small floating video window. Closing it removes the cover, and you can then look at the site's permissions and see what was granted while the cover was in place. The report refers to PoC videos for this.

The report says the PoC demonstrates clipboard permission as a simple case, but that the researcher tested all other dialog scenarios in the previous issue. One case is sufficient to show the behaviour. In other words, clipboard is just the easiest example to demonstrate; the same mechanism is claimed to work for the other permission dialogs too.

Root cause

The root cause is the Linux behaviour described above: when the permission prompt is larger than the content area of the popup window, it is fitted and clipped inside the content area instead of being repositioned above the window as on Windows. Docking the popup window to a narrow size hides the button row in the clipped area, so the intersection check from commit [redacted] does not fire. The obscured active window still accepts keyboard input in sensitive browser UI and web pages, which allows the attacker to drive the prompt and the page with TAB and ENTER.

Obscured means covered or hidden from view. Active means it is the window currently receiving input. Those two things together are the problem: a window can be invisible to you and still be the one your keystrokes go to. The fix assumed that if the buttons were covered, presses would be ignored. But on Linux the buttons are not covered, they are clipped away, so the check never sees an overlap and never blocks the press.

The report's observed behaviour is that permission prompts can be totally hidden, because the popup window is not visible to the user and is fully covered by the PiP overlay. The expected behaviour is that sensitive browser UI is always visible to the user, so the permission prompt popup should be hidden if it overlaps with the picture-in-picture window. Notice the difference: the fix should not just ignore presses on covered buttons, it should refuse to show the prompt underneath the PiP window at all.

Impact

Under the conditions described, an attacker can hide permission prompts behind a PiP overlay and obtain permissions such as clipboard, microphone, camera, location and screen sharing without the victim being aware. The attacker can also read clipboard contents, navigate the hidden window to sites with sensitive data and use CTRL+A and CTRL+C to steal usernames, email addresses and telephone numbers, or resize the hidden window to capture data through screen sharing. The attacker can also trick the user into harmful actions in sensitive pages such as chrome://flags/ or chrome://settings/resetProfileSettings?origin=userclick.

The report notes that nobody would send critical information to unknown sites, share their screen, allow reading of sensitive clipboard data or grant permissions to an unknown website, but that hiding all prompts removes the victim's ability to notice. This is the key insight about impact: the permissions themselves are normal and useful. The danger is that the user cannot see they are being asked. Security often depends on informed consent, and this bug removes the information while keeping the consent.

Fix

The report proposes two fixes:

  1. Add another CL to hide the permission prompt popup if it overlaps with the picture-in-picture window. CL stands for changelist, a proposed code change in Chromium's review system. This fix is direct: if the prompt would sit under the PiP window, do not show it there.
  2. Add a CL to get the permission prompt size and compare it with the content area size. If the prompt can be fitted in the content area, that is fine; if not, the suggested behaviour is like Windows, showing the prompt above the popup window. This keeps the previous CL [redacted] valid with a few changes in the size comparison. In plain words: measure the prompt and the space available. If it fits, show it inside. If it does not fit, move it out and above the window, the way Windows already does, so it is never clipped and never hidden.

Glossary

  • API: a defined way for one piece of software to ask another for something, like a service counter with set requests.
  • AddressSanitizer (asan): a developer tool that detects certain memory errors in a program.
  • Bounty: money paid by a company to a researcher who reports a valid security bug.
  • Browser UI: the parts of the browser drawn by the browser itself, such as prompts, menus and settings pages, rather than by a website.
  • Bypass: a way of getting around a security fix that is already in place.
  • Changelist (CL): a proposed code change submitted for review in Chromium's development system.
  • Chrome Canary: the experimental, frequently updated build of Chrome that receives new code first.
  • Chrome dev: a pre-release build of Chrome, less experimental than Canary.
  • Chrome Flags: a hidden settings page (chrome://flags/) for switching experimental features on and off.
  • Chromium: the open-source browser project that Google Chrome is built from.
  • Clipboard: the temporary storage a computer uses when you copy something, which other programs can read.
  • Clipped: cut off, so that part of an element is not drawn because it does not fit its container.
  • Commit: a saved change to a codebase, identified by a long hash.
  • Content area: the inside of a browser window where the page is drawn.
  • CVE: a public identifier for a known security vulnerability.
  • Docked: a window that has been resized or snapped into a particular shape or position.
  • ENTER: the keyboard key that activates the currently highlighted control.
  • Exploit: a practical demonstration or tool that takes advantage of a vulnerability.
  • Inappropriate implementation: a weakness where the code does what it was written to do, but the design or behaviour is wrong for security.
  • Intersect: for two rectangles, to overlap.
  • Keyboard focus: the control that currently receives keyboard input, shown by a highlight.
  • Linux: an open-source operating system family; the platform where this bug was tested.
  • Milestone: a numbered Chrome release cycle, such as 115.
  • Permission prompt: the browser's question asking whether a site may use a feature such as the microphone or clipboard.
  • Picture-in-Picture (PiP): a small floating video window that stays on top of other windows.
  • Popup window: a separate small browser window opened by a website.
  • Proof of concept (PoC): a small demonstration that shows a bug is real.
  • Revision: an identifier for one exact snapshot of a source code repository.
  • Screen sharing: a browser feature that lets a site see your screen, after you grant permission.
  • Severity: a rating of how serious a vulnerability is, here low.
  • Spoof: to fake or misrepresent something so it appears to be what it is not.
  • Super permissions: the researcher's phrase for powerful browser permissions such as camera, microphone and screen sharing.
  • Sync: Chrome's feature that keeps your bookmarks, settings and other data aligned with your Google account.
  • TAB: the keyboard key that moves focus from one control to the next.
  • Token: a piece of data that proves identity or grants access, like a wristband at an event.
  • VRP (Vulnerability Rewards Program): a company scheme that pays researchers for reporting security bugs.
  • Window manager: the part of a desktop operating system that controls where windows appear and how they are resized.
  • CTRL+A: the keyboard shortcut that selects everything on a page.
  • CTRL+C: the keyboard shortcut that copies the current selection to the clipboard.

More by Ahmed ElMasry

View all

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