Incorrect calculation in API (CVE-2026-106420)
Chrome's window bounds check uses integer division, so a window with zero or one-pixel area always passes the intersection test. An extension without permissions can create an off-screen window, load a cross-origin page, and focus an element via URL fragment, allowing a user keypress to trigger actions like OAuth approval.
Originally disclosed on Chrome VRP
- Fix shipped in 8 months
VULNERABILITY DETAILS
It was discovered that Chrome extensions without any permissions can create and position browser windows entirely off-screen while still allowing them to receive user keyboard input.
To mitigate this class of issues, Chrome introduced the WindowBoundsIntersectDisplays function (https://chromium-review.googlesource.com/c/chromium/src/+/3536833
). This function was intended to prevent windows from being created or moved outside visible displays by computing the intersection area between the window bounds and all connected displays. The mitigation requires that at least 50% of the window area intersect with a display.
However, the comparison intersect_area >= (bounds.size().GetArea() / 2) relies on integer division, which introduces an issue. When the window area is 0 or 1, integer division truncates the result to 0, causing the check to always succeed, even if the window is completely off-screen.
As a result, an extension can:
- Create a window with normal, on-screen dimensions.
- Immediately resize the window so that its
widthorheightbecomes0, or both dimensions become1. - Move the window fully off-screen, bypassing the intersection check.
Integer division bypass
// chrome/browser/extensions/api/tabs/tabs_api.cc:421-437
bool WindowBoundsIntersectDisplays(const gfx::Rect& bounds) {
auto checked_area = bounds.size().GetCheckedArea();
if (!checked_area.IsValid()) {
return false;
}
int intersect_area = 0;
for (const auto& display : display::Screen::Get()->GetAllDisplays()) {
gfx::Rect display_bounds = display.bounds();
display_bounds.Intersect(bounds);
intersect_area += display_bounds.size().GetArea();
}
return intersect_area >= (bounds.size().GetArea() / 2);
}
When either the width or height is 0, or both width and height are 1:
- window_area = 0 * height = 0 (or 1 * 1 = 1).
- Integer division truncates: 0 / 2 = 0 (or 1 / 2 = 0)
- intersect_area = 0 when the window is fully off-screen.
- The check becomes: 0 >= 0, which always evaluates to true.
This allows the window to be considered valid regardless of its actual visibility.
Universal CSRF via element focus
The most impactful attack with minimal user interaction enabled by this issue in my opinion is a universal CSRF via element focus.
An extension can load a cross-origin page inside an off-screen window and automatically focus any element that has an id attribute by using a URL fragment (such as https://victim.com/oauth/authorize#btn-accept).
The browser will automatically focus the element with the specified id (id="btn-accept"). When the user presses Enter or Space, the focused element is activated, performing the action associated with the button.
This is particularly dangerous in the context of:
- OAuth authorization flows (a single keypress can silently grant access the a victim's account).
- Payment confirmation dialogs (purchases can be completed without user awareness).
- Permission prompts (sensitive permissions may be granted unintentionally).
A page simulating an OAuth authorization flow is included to demonstrate this attack. I have also attached a video (repro.mp4) reproducing the issue. The video first shows the OAuth page working normally, and then demonstrates how the attack can trick the user into unknowingly approving the authorization without any visible UI or user awareness.
Additional impacts
Beyond the primary attack described above, prior research (see issue 40058935) also demonstrates that other sensitive browser features may be exploited using this technique. These impacts were not exhaustively validated, as they require additional user interaction.
| Impact | Keypresses |
|---|---|
| Screen share | 3 |
| Payment completion | 2+ |
| chrome://flags manipulation | 3 |
| chrome://settings changes | 3+ |
| External protocol launch | 2 |
| Pointer lock | 1 |
| Content leak via Ctrl+A and Ctrl+C | 2+ |
| Opening downloaded files | 2+ |
BISECT
An initial bisect identified the regression range between revisions 683284 and 683298 (https://chromium.googlesource.com/chromium/src/+log/ffaacd30fcc767d781cbef8c154d1f8a64a17ba2..b302b4c7894fa99cc33f8932469dca35fdf28c50).
Further investigation showed that the original behavior enabling off-screen windows was introduced by commit https://chromium.googlesource.com/chromium/src/+/df7de6e0612a769837271c884584633fa7375f6c, which landed in M78.0.3872.0.
A later attempt to mitigate a similar issue (https://chromium-review.googlesource.com/c/chromium/src/+/3536833) introduced the incomplete intersection logic, adding the integer truncation bug described above.
VERSION
Chrome Version: 144.0.7559.9
Chrome Version: 145.0.7632.5
Chrome Version: 146.0.7635.3
Chrome Version: 146.0.7646.0
Operating System: Windows 11 24H2
REPRODUCTION CASE
- Download
oauth.htmland place it in a directory. - Serve the file using a local web server at port
8080(e.g.,python -m http.server 8080). - Download
manifest.jsonandbackground.js. - Place those files in a separate directory and load the extension into Chrome.
- The extension creates a window and immediately resizes and moves it off-screen.
- The off-screen window loads
http://localhost:8080/oauth.html#btn-accept, which simulates an OAuth authorization page. - The URL includes the fragment
#btn-accept, automatically focusing theAcceptbutton. - Press
EnterorSpace, which triggers the button click without any visible UI, demonstrating the CSRF attack.
CREDIT INFORMATION
Reporter credit: Luan Herrera (@lbherrera_)
Context
Chrome extensions run with a permission model: an extension that requests no permissions is expected to have very limited reach. One capability that extensions do have is creating and positioning browser windows through the tabs API. Because a window that is invisible but still receives keyboard input is a useful primitive for tricking users, Chrome added a mitigation called WindowBoundsIntersectDisplays, introduced in the change at https://chromium-review.googlesource.com/c/chromium/src/+/3536833. The function is meant to stop an extension from creating or moving a window so that it sits outside all connected displays: it computes how much of the window overlaps the displays and requires that at least 50% of the window area intersect with a display.
The report describes a flaw in that calculation that lets an extension with no permissions place a window entirely off-screen while it still receives the user's keyboard input. The issue affects the window bounds check in the tabs API.
Setup
The researcher tested on Windows 11 24H2 with the following Chrome versions:
| Chrome version |
|---|
| 144.0.7559.9 |
| 145.0.7632.5 |
| 146.0.7635.3 |
| 146.0.7646.0 |
The reproduction needs three files: oauth.html, which simulates an OAuth authorisation page, and manifest.json plus background.js for the extension. The page is served locally on port 8080, and the extension is loaded into Chrome in a separate directory. No permissions are required for the extension.
Finding it
The researcher looked at how WindowBoundsIntersectDisplays decides whether a window is visible enough. The function sums the intersection area between the window bounds and every connected display, then compares that sum against half the window area. The comparison uses integer division, and that is where the logic breaks down.
When the window area is 0 or 1, integer division truncates the threshold to 0. The check then always succeeds, even when the window is completely off-screen. The researcher's reasoning is:
- When either
widthorheightis0, or bothwidthandheightare1: window_area = 0 * height = 0 (or 1 * 1 = 1). - Integer division truncates: 0 / 2 = 0 (or 1 / 2 = 0).
- intersect_area = 0 when the window is fully off-screen.
- The check becomes: 0 >= 0, which always evaluates to true.
So a window can be considered valid regardless of its actual visibility. The sequence the researcher describes is:
- Create a window with normal, on-screen dimensions.
- Immediately resize the window so that its
widthorheightbecomes0, or both dimensions become1. - Move the window fully off-screen, bypassing the intersection check.
Exploitation
Step 1: serve the simulated OAuth page
Download oauth.html and place it in a directory, then serve it with a local web server on port 8080:
python -m http.server 8080
Step 2: load the extension
Download manifest.json and background.js, place them in a separate directory, and load the extension into Chrome. The extension needs no permissions.
Step 3: create, shrink and move the window off-screen
The extension creates a window and immediately resizes and moves it off-screen. Because the window area is reduced to 0 or 1 before the move, the intersection check passes and the window is accepted as valid.
Step 4: load the target page with a focusing fragment
The off-screen window loads http://localhost:8080/oauth.html#btn-accept, which simulates an OAuth authorisation page. The fragment #btn-accept makes the browser automatically focus the element with id="btn-accept", the Accept button.
Step 5: trigger the action with a keypress
When the user presses Enter or Space, the focused element is activated and the button click fires, with no visible UI. That is the CSRF: the user's keystroke is delivered to a page they cannot see, and it performs the action associated with the focused element.
The researcher also attached a video, repro.mp4, reproducing the issue. It first shows the OAuth page working normally, then demonstrates how the attack tricks the user into approving the authorisation without any visible UI or user awareness.
Universal CSRF via element focus
The researcher considers this the most impactful attack enabled by the issue, because it needs minimal user interaction. An extension can load a cross-origin page inside an off-screen window and automatically focus any element that has an id attribute by using a URL fragment, such as https://victim.com/oauth/authorize#btn-accept. The browser focuses the element with the specified id (id="btn-accept"), and a press of Enter or Space activates it, performing the action associated with the button.
The researcher highlights three contexts where this is particularly dangerous:
- OAuth authorisation flows, where a single keypress can silently grant access to a victim's account.
- Payment confirmation dialogs, where purchases can be completed without user awareness.
- Permission prompts, where sensitive permissions may be granted unintentionally.
Additional impacts
Prior research (issue 40058935) shows that other sensitive browser features may be exploited with the same technique. The researcher did not exhaustively validate these, as they require additional user interaction.
| Impact | Keypresses |
|---|---|
| Screen share | 3 |
| Payment completion | 2+ |
| chrome://flags manipulation | 3 |
| chrome://settings changes | 3+ |
| External protocol launch | 2 |
| Pointer lock | 1 |
| Content leak via Ctrl+A and Ctrl+C | 2+ |
| Opening downloaded files | 2+ |
Root cause
The vulnerable function is in chrome/browser/extensions/api/tabs/tabs_api.cc:421-437:
// chrome/browser/extensions/api/tabs/tabs_api.cc:421-437
bool WindowBoundsIntersectDisplays(const gfx::Rect& bounds) {
auto checked_area = bounds.size().GetCheckedArea();
if (!checked_area.IsValid()) {
return false;
}
int intersect_area = 0;
for (const auto& display : display::Screen::Get()->GetAllDisplays()) {
gfx::Rect display_bounds = display.bounds();
display_bounds.Intersect(bounds);
intersect_area += display_bounds.size().GetArea();
}
return intersect_area >= (bounds.size().GetArea() / 2);
}
The function validates the checked area first, then sums the intersection of the window with each display. The final comparison divides the window area by two using integer arithmetic. For a window area of 0 or 1, the right-hand side becomes 0, so the comparison reduces to 0 >= 0 when the window is fully off-screen, which is always true. The mitigation therefore does not hold for degenerate window sizes.
The bisect section traces the history. An initial bisect identified the regression range between revisions 683284 and 683298 (https://chromium.googlesource.com/chromium/src/+log/[redacted]..[redacted]). Further investigation showed that the original behaviour enabling off-screen windows was introduced by commit https://chromium.googlesource.com/chromium/src/+/[redacted], which landed in M78.0.3872.0. A later attempt to mitigate a similar issue (https://chromium-review.googlesource.com/c/chromium/src/+/3536833) introduced the incomplete intersection logic, adding the integer truncation bug.
Impact
An extension with no permissions can create a window that is entirely off-screen yet still receives keyboard input. By loading a cross-origin page in that window and using a URL fragment to focus an element with a known id, the extension can turn a single Enter or Space press into a click on that element. The researcher frames this as a universal CSRF via element focus, with OAuth authorisation, payment confirmation and permission prompts as the most dangerous contexts. The additional impacts listed in the table are drawn from prior research and were not exhaustively validated, because they require more user interaction.
Fix
The report does not describe the fix that was applied. The flaw it identifies is the integer division in the threshold comparison, which lets a window area of 0 or 1 pass the check; the report does not state how the comparison was changed.
Variants to test
- Try other window sizes that truncate under integer division, such as a single dimension of
0or both dimensions of1, and check whether the window can still be moved fully off-screen. A positive result is a window that stays off-screen while accepting keyboard input. - Try focusing elements by
idfragment on pages with sensitive buttons, such as OAuth consent, payment confirmation and permission prompts. A positive result is a focused element that activates onEnterorSpacewithout any visible UI. - Try the additional impacts from the table, such as screen share,
chrome://flags,chrome://settings, external protocol launch, pointer lock, content leak via Ctrl+A and Ctrl+C, and opening downloaded files, counting the keypresses each requires. A positive result is the action completing with the listed number of keypresses.
Hunting notes
This kind of bug hides in geometry and bounds checks where a threshold is computed with integer arithmetic, especially where a mitigation was added later on top of existing window creation and positioning code. During recon, look for functions that compare an intersection area against a fraction of a total area, and check what happens when the total area is 0 or 1. The researcher showed impact by building a working extension with no permissions, a local page simulating an OAuth flow, and a video demonstrating the attack end to end, which demonstrated the CSRF consequence end to end.
What happened, in plain words
Chrome lets you install small add-on programs called extensions. Extensions can do things the normal web page cannot, so Chrome asks them to declare what they want to use, and the user approves those requests. These requests are called permissions. An extension that asks for no permissions at all is supposed to be almost harmless: it should not be able to read your pages, change your settings, or reach your accounts.
One thing extensions can still do without permissions is open browser windows and decide where those windows sit on the screen. That sounds boring, but it becomes interesting when a window is invisible. If a window is placed completely outside the visible screen, you cannot see it, yet the keyboard still sends your key presses to it. A hidden window that listens to your keyboard is a way to make you press a button you never saw.
To stop this, Chrome added a safety check called WindowBoundsIntersectDisplays. The idea is simple: work out how much of the window overlaps the monitors that are actually connected, and refuse the window if less than half of it is visible. The check is meant to block any attempt to create or move a window fully off-screen.
This report shows that the check can be defeated. The maths inside it uses whole numbers (integers), and whole-number division throws away the remainder. When a window is shrunk to an area of 0 or 1, half of that area is calculated as 0, and the check ends up comparing 0 with 0. That comparison is always true, so a window that is completely off-screen is accepted as valid.
The consequence is that an extension with no permissions can open a hidden window, load a real website inside it, and put the keyboard focus on a button on that page. When you press Enter or Space, the button is clicked. The researcher calls this a universal CSRF via element focus, and the most serious example is an OAuth approval screen, where one key press can grant an attacker access to your account.
The pieces you need to know
Before following the steps, here are the ideas the report relies on, explained from scratch.
- Extension: a small program you install into Chrome to add a feature. It runs inside the browser and can use special browser abilities.
- Permission: a capability an extension must ask for, such as reading the pages you visit. Chrome shows these requests when you install the extension. An extension with no permissions is meant to be tightly limited.
- API: a set of functions a program is allowed to call. Think of it as a service counter: you can only ask for what is on the menu. The affected area here is the API layer, the part of Chrome that extensions call into.
- tabs API: the part of Chrome's extension API that lets an extension create windows and tabs and set their position and size.
- Window bounds: the rectangle a window occupies, described by its position and its width and height.
- Display: a monitor connected to the computer. A laptop with an external screen has two displays.
- Intersection: the overlapping part of two rectangles. If a window sits half on a monitor, the intersection is that visible half.
- Integer division: division that keeps only the whole-number part and discards the remainder. In normal maths, 1 divided by 2 is 0.5. In integer division, it is 0. This single detail is the heart of the bug.
- CSRF (Cross-Site Request Forgery): tricking a logged-in user's browser into sending an action to a website the user did not intend. The classic version abuses cookies that the browser attaches automatically. The version here is different: it abuses keyboard focus, so the user really does press the key, but on a page they cannot see.
- OAuth: the system behind "Log in with Google" style buttons. A website sends you to an authorisation page, you approve, and the website receives permission to act on your account. The approval is normally a button click.
- URL fragment: the part of a web address after the
#symbol. It is not sent to the server; the browser uses it locally. One common use is to jump to, or focus, an element on the page whoseidmatches the fragment. idattribute: a label given to an HTML element so it can be found uniquely, for exampleid="btn-accept"on a button.- Focus: the element that currently receives keyboard input. When a button has focus, pressing
EnterorSpaceactivates it, exactly as if you had clicked it. - Bisect: a debugging technique that narrows down which code change introduced a bug by testing versions in the middle of a range and halving the range repeatedly, like finding a word in a dictionary by opening it in the middle.
- CVE: a public identifier for a known security flaw, so people can refer to it unambiguously.
Setup
The researcher tested on Windows 11 24H2 with these Chrome versions:
| Chrome version |
|---|
| 144.0.7559.9 |
| 145.0.7632.5 |
| 146.0.7635.3 |
| 146.0.7646.0 |
The reproduction uses three files. oauth.html is a page that imitates an OAuth authorisation screen. manifest.json and background.js make up the extension. The page is served locally on port 8080, and the extension is loaded into Chrome from a separate directory. The extension asks for no permissions, which is the point: the attack works with the least privileged kind of extension.
Finding it
The researcher read the code of WindowBoundsIntersectDisplays and looked at how it decides whether a window is visible enough. The function adds up the overlap between the window and every connected monitor, then compares that total with half of the window's own area. The comparison uses integer division, and that is where the logic breaks.
When the window area is 0 or 1, integer division cuts the threshold down to 0. The check then always passes, even when the window is completely off-screen. The researcher's reasoning, step by step:
- When either
widthorheightis0, or bothwidthandheightare1: window_area = 0 * height = 0 (or 1 * 1 = 1). - Integer division truncates: 0 / 2 = 0 (or 1 / 2 = 0).
- intersect_area = 0 when the window is fully off-screen.
- The check becomes: 0 >= 0, which always evaluates to true.
So a window is treated as valid no matter where it actually is. The sequence the researcher describes is:
- Create a window with normal, on-screen dimensions.
- Immediately resize the window so that its
widthorheightbecomes0, or both dimensions become1. - Move the window fully off-screen, bypassing the intersection check.
A normal-sized window passes the first check honestly. Shrinking it to a degenerate size makes the threshold collapse to zero. The move then passes the second check because zero is compared with zero. Each step looks acceptable on its own; only the combination defeats the protection.
Exploitation
Step 1: serve the simulated OAuth page
Download oauth.html, put it in a directory, and serve it with a local web server on port 8080:
python -m http.server 8080
This line starts Python's built-in web server. -m http.server tells Python to run its simple file-serving module, and 8080 is the port number, the door on your computer where the server listens.
Step 2: load the extension
Download manifest.json and background.js, place them in a separate directory, and load the extension into Chrome. The extension needs no permissions.
manifest.json is the description file that tells Chrome what the extension is and what it may do. background.js is the script that runs in the background and performs the window actions. Loading it from a separate directory keeps the extension files apart from the web page files. The absence of permissions is deliberate: it proves the attack does not rely on any privileged access.
Step 3: create, shrink and move the window off-screen
The extension creates a window and immediately resizes and moves it off-screen. Because the window area is reduced to 0 or 1 before the move, the intersection check passes and the window is accepted as valid.
This is the bypass in action. The window exists, it is real, and it can load pages and receive keyboard input, but it is not on any monitor. To you, nothing appears to happen.
Step 4: load the target page with a focusing fragment
The off-screen window loads http://localhost:8080/oauth.html#btn-accept, which simulates an OAuth authorisation page. The fragment #btn-accept makes the browser automatically focus the element with id="btn-accept", the Accept button.
localhost means this computer, and 8080 is the port from step 1. Everything after # is the fragment. The browser looks for an element whose id is btn-accept and gives it keyboard focus. The technique is described as universal because any element with an id can be focused this way.
Step 5: trigger the action with a keypress
When the user presses Enter or Space, the focused element is activated and the button click fires, with no visible UI. That is the CSRF: the user's keystroke is delivered to a page they cannot see, and it performs the action associated with the focused element.
The result is an approval the user never knowingly gave.
The researcher also attached a video, repro.mp4, reproducing the issue. It first shows the OAuth page working normally, then demonstrates how the attack tricks the user into approving the authorisation without any visible UI or user awareness.
Universal CSRF via element focus
The researcher considers this the most impactful attack enabled by the issue, because it needs minimal user interaction. An extension can load a cross-origin page inside an off-screen window and automatically focus any element that has an id attribute by using a URL fragment, such as https://victim.com/oauth/authorize#btn-accept. The browser focuses the element with the specified id (id="btn-accept"), and a press of Enter or Space activates it, performing the action associated with the button.
"Cross-origin" means the page belongs to a different website from the extension. It does not need to read the page: it only needs to load it and let the fragment do the focusing. The button then does whatever it was built to do, with the user's own session and the user's own key press.
The researcher highlights three contexts where this is particularly dangerous:
- OAuth authorisation flows, where a single keypress can silently grant access to a victim's account.
- Payment confirmation dialogs, where purchases can be completed without user awareness.
- Permission prompts, where sensitive permissions may be granted unintentionally.
Additional impacts
Prior research (issue 40058935) shows that other sensitive browser features may be exploited with the same technique. The researcher did not exhaustively validate these, as they require additional user interaction.
| Impact | Keypresses |
|---|---|
| Screen share | 3 |
| Payment completion | 2+ |
| chrome://flags manipulation | 3 |
| chrome://settings changes | 3+ |
| External protocol launch | 2 |
| Pointer lock | 1 |
| Content leak via Ctrl+A and Ctrl+C | 2+ |
| Opening downloaded files | 2+ |
The table lists how many key presses each action would need. Screen share means starting to broadcast your screen to someone. chrome://flags and chrome://settings are Chrome's internal configuration pages. An external protocol launch means handing a link to another program on your computer. Pointer lock means capturing your mouse pointer. The Ctrl+A and Ctrl+C entry means selecting all the content of a page and copying it, which could leak what is on the page. Opening downloaded files means launching something that was downloaded. These are listed as possible consequences, not as confirmed results.
Root cause
The vulnerable function lives in chrome/browser/extensions/api/tabs/tabs_api.cc:421-437:
// chrome/browser/extensions/api/tabs/tabs_api.cc:421-437
bool WindowBoundsIntersectDisplays(const gfx::Rect& bounds) {
auto checked_area = bounds.size().GetCheckedArea();
if (!checked_area.IsValid()) {
return false;
}
int intersect_area = 0;
for (const auto& display : display::Screen::Get()->GetAllDisplays()) {
gfx::Rect display_bounds = display.bounds();
display_bounds.Intersect(bounds);
intersect_area += display_bounds.size().GetArea();
}
return intersect_area >= (bounds.size().GetArea() / 2);
}
Line by line, in plain words:
bool WindowBoundsIntersectDisplays(const gfx::Rect& bounds) {declares a function that takes a rectangle, the window's bounds, and answers yes or no.auto checked_area = bounds.size().GetCheckedArea();works out the window's area in a way that can report an error instead of silently overflowing.if (!checked_area.IsValid()) { return false; }rejects the window if that area could not be computed safely. This is a guard against absurd sizes, not against tiny ones.int intersect_area = 0;starts a running total of how much of the window is visible, at zero.for (const auto& display : display::Screen::Get()->GetAllDisplays()) {loops over every connected monitor.gfx::Rect display_bounds = display.bounds();gets that monitor's rectangle.display_bounds.Intersect(bounds);shrinks the monitor rectangle down to the part that overlaps the window.intersect_area += display_bounds.size().GetArea();adds that overlap to the running total.return intersect_area >= (bounds.size().GetArea() / 2);is the decision: is the visible total at least half the window's area? The division by two is integer division.
The function checks the area for validity, then sums the overlap with each monitor. The final comparison halves the window area using whole numbers. For an area of 0 or 1, the right-hand side becomes 0, so when the window is fully off-screen the comparison is 0 >= 0, which is always true. The protection simply does not hold for these degenerate sizes.
The bisect section traces the history. An initial bisect identified the regression range between revisions 683284 and 683298 (https://chromium.googlesource.com/chromium/src/+log/[redacted]..[redacted]). Further investigation showed that the original behaviour enabling off-screen windows was introduced by commit https://chromium.googlesource.com/chromium/src/+/[redacted], which landed in M78.0.3872.0. A later attempt to mitigate a similar issue (https://chromium-review.googlesource.com/c/chromium/src/+/3536833) introduced the incomplete intersection logic, adding the integer truncation bug.
In other words, the ability to place windows off-screen is old, going back to Chrome milestone 78. The safety check came later, as an attempt to mitigate a similar issue, and it is that later change which contains the flaw described here. The bisect narrowed the range of revisions where the behaviour changed, which is how the researcher connected the current behaviour to the specific commits.
Impact
An extension with no permissions can create a window that is entirely off-screen yet still receives keyboard input. By loading a cross-origin page in that window and using a URL fragment to focus an element with a known id, the extension can turn a single Enter or Space press into a click on that element. The researcher frames this as a universal CSRF via element focus, with OAuth authorisation, payment confirmation and permission prompts as the most dangerous contexts. The additional impacts in the table come from prior research and were not exhaustively validated, because they need more user interaction.
Fix
The report does not describe the fix that was applied. The flaw it identifies is the integer division in the threshold comparison, which lets a window area of 0 or 1 pass the check; the report does not state how the comparison was changed.
Variants to test
- Try other window sizes that truncate under integer division, such as a single dimension of
0or both dimensions of1, and check whether the window can still be moved fully off-screen. A positive result is a window that stays off-screen while accepting keyboard input. - Try focusing elements by
idfragment on pages with sensitive buttons, such as OAuth consent, payment confirmation and permission prompts. A positive result is a focused element that activates onEnterorSpacewithout any visible UI. - Try the additional impacts from the table, such as screen share,
chrome://flags,chrome://settings, external protocol launch, pointer lock, content leak via Ctrl+A and Ctrl+C, and opening downloaded files, counting the keypresses each requires. A positive result is the action completing with the listed number of keypresses.
Hunting notes
This kind of bug hides in geometry and bounds checks where a threshold is computed with integer arithmetic, especially where a mitigation was added later on top of existing window creation and positioning code. During recon, look for functions that compare an intersection area against a fraction of a total area, and check what happens when the total area is 0 or 1. The researcher showed impact by building a working extension with no permissions, a local page simulating an OAuth flow, and a video demonstrating the attack end to end, which demonstrated the CSRF consequence end to end.
Glossary
- API: a defined set of functions a program may call, like a menu of allowed requests.
- Background script: the part of an extension that runs without a visible page, doing work behind the scenes.
- Bisect: narrowing down the cause of a bug by testing versions in the middle of a range and halving the range repeatedly.
- Bounds: the rectangle a window occupies, given by position, width and height.
- Chrome extension: an add-on program installed into Chrome that can use special browser abilities.
- Cross-origin: belonging to a different website than the one making the request.
- CSRF (Cross-Site Request Forgery): making a logged-in user's browser perform an action the user did not intend.
- CVE: a public identifier for a known security flaw.
- Fragment: the part of a URL after
#, used by the browser locally and not sent to the server. idattribute: a unique label on an HTML element, used to find it.- Integer division: division that keeps only the whole-number part and discards the remainder, so 1 divided by 2 is 0.
- Manifest: the description file that tells Chrome what an extension is and what it may do.
- OAuth: the system behind "Log in with" buttons, where a user approves a website's access to their account.
- Permission: a capability an extension must request and the user must approve.
- Pointer lock: a browser feature that captures the mouse pointer for a page.
- Port: a numbered door on a computer where a network service listens.
- Regression range: the span of code revisions between a working version and a broken one.
- tabs API: the part of Chrome's extension API used to create and position windows and tabs.
- Universal CSRF: here, a CSRF technique that works on any page with a predictable element
id, without needing to read the page. - URL: a web address.