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

Inappropriate Implementation in Browser UI (CVE-2025-1917)

A browser UI flaw allowed the text selection menu to appear over the URL bar when a user tapped on a page. An attacker could manipulate the user by obscuring the real address bar with this menu.

Khalil Zhani Follow

Originally disclosed on Chrome VRP

Bounty$2,000 Medium View original
  • Fix shipped in 12 months

Steps to reproduce the problem

  1. Open the testcase.html or navigate to https://lbstyle.github.io/repro.html
  2. tap anywhere

Problem Description

When the user taps somewhere on the page, the text selection menu can appear over the URL bar, in this case, the user can be manipulated.

Summary

Text Selection menu able to overlap URL bar

Additional Data

Category: Security
Chrome Channel: Not sure
Regression: N/A

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

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

What the report shows

The target is the browser UI of Google Chrome, specifically the text selection menu that appears when a user taps on a page. The researcher, Khalil Zhani, reported an inappropriate implementation issue that was assigned CVE-2025-1917 and rated medium severity. The Chrome VRP paid a bounty of 2,000 USD, and the report was disclosed on 4 March 2025.

The reproduction steps are short and direct:

  1. Open the testcase.html or navigate to https://lbstyle.github.io/repro.html
  2. tap anywhere

The third step is left empty in the report. The problem description explains what happens: when the user taps somewhere on the page, the text selection menu can appear over the URL bar, and in that state the user can be manipulated. The summary states the same finding in one line: the text selection menu is able to overlap the URL bar.

The additional data records the category as Security, the Chrome channel as "Not sure" and regression as N/A. The report does not describe the underlying code, the platform affected, or the exact manipulation scenario beyond the overlap itself.

Root cause

The report does not describe a cause; the overlap is only shown as observed behaviour.

Impact

The report's own framing is that the user "can be manipulated" when the selection menu covers the URL bar. The concrete consequence is not spelled out. The report only says the user can be manipulated when the menu covers the URL bar. The report does not claim a specific attack chain, data theft or code execution, The report gives no further characterisation of the issue..

How this kind of bug works

Browsers separate page content, rendered by the renderer process, from browser chrome such as the URL bar, tabs and permission prompts, which is drawn by the browser process. The security model depends on the renderer never being able to draw over or imitate trusted chrome. Overlay bugs arise when a renderer-controlled surface, such as a context menu, selection handle, popup or fullscreen element, is composited at a layer or position that escapes the content area. Common triggers are unusual viewport sizes, zoom levels, scrolling, touch input, or timing around when a menu is shown relative to a layout change.

The defences are structural: clipping renderer output to the content rectangle, drawing security-sensitive chrome in a separate layer that is always on top, validating the geometry of popups and menus before display, and treating any renderer-supplied coordinates as untrusted. Vendors may run automated tests that check chrome placement.

How to test for it

This class of bug is found by trying to make renderer-controlled UI escape its bounds. A general method:

  1. Identify surfaces the page can influence: text selection menus, context menus, autofill dropdowns, permission prompts, date pickers, fullscreen and picture-in-picture transitions, and custom cursors.
  2. Vary the environment: different zoom levels, window sizes, device emulation with touch enabled, scroll positions, and rapid orientation changes.
  3. Trigger the surface at the edges of the viewport, near the URL bar, and while the page is scrolling or resizing, so that positioning logic is stressed.
  4. Check whether the surface overlaps, hides or visually imitates browser chrome. A positive result is a reproducible overlap where the page controls what the user sees in a trusted area.
  5. Record the exact steps, browser version and channel, and capture a screenshot or video of the overlap.

Common false positives are overlaps that are purely cosmetic and cannot be influenced by page content, menus that are clipped correctly but appear close to the chrome, and issues that only reproduce with extensions or non-default flags. Confirm reproducibility on a clean profile before reporting.

How it is fixed

Standard fixes are to clip renderer-composited surfaces to the content viewport, to raise the z-order of security-sensitive chrome so it cannot be covered, and to validate menu and popup geometry in the browser process before rendering. Vendors may also add regression tests that assert chrome remains visible under adversarial page layouts.

Hunting notes

UI spoofing bugs tend to hide at the boundaries between renderer and browser: touch and gesture handling, fullscreen transitions, popup positioning near viewport edges, and any feature where the page supplies coordinates. Recon signals include recent changes to menu or popup positioning code, platform-specific touch behaviour, and features that render outside the normal document flow.

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

What happened, in plain words

A web browser is a program that shows web pages. It has two parts that matter here. One part draws the page itself, the text and pictures that a website sends. The other part draws the browser's own controls: the address bar (also called the URL bar, the box at the top where the web address appears), the tabs, and the menus the browser shows you. Security depends on keeping these two parts apart. A website should never be able to draw over the browser's own controls, because those controls are what you trust when you decide which site you are on.

This report is about Google Chrome. When you tap on a page on a touch screen, Chrome can show a small menu for working with selected text, for example to copy it. The researcher, Khalil Zhani, found that this text selection menu could appear on top of the URL bar. The report's summary puts it in one line: the text selection menu is able to overlap the URL bar.

The report was rated medium severity, assigned the identifier CVE-2025-1917, and paid a bounty of 2,000 USD through the Chrome VRP. A CVE is a public catalogue number given to a known security flaw so people can refer to it unambiguously. A bounty is a payment a vendor makes to someone who reports a security problem. The Chrome VRP is Google's programme for receiving those reports. The report was disclosed on 4 March 2025.

What the report shows

The reproduction steps are short:

  1. Open the testcase.html or navigate to https://lbstyle.github.io/repro.html
  2. tap anywhere

The third step is left empty. Step 1 means loading a prepared test page, either a file saved locally or the copy hosted at that address. Step 2 means touching the screen anywhere on that page, after which the selection menu can appear.

The problem description says that when the user taps somewhere on the page, the text selection menu can appear over the URL bar, and in that case the user can be manipulated. The summary repeats the finding: the menu is able to overlap the URL bar.

The additional data records the category as Security, the Chrome channel as "Not sure" and regression as N/A. A channel is the release track of the browser, such as stable or beta. Regression asks whether the behaviour used to work correctly and then broke. The report does not describe the code involved, which operating system or device was used, or the exact way a user could be manipulated beyond the overlap itself.

In general, how this kind of bug works

Browsers deliberately separate page content from browser controls. The page is drawn by one part of the browser, often in a separate process, a running program kept apart from the rest for safety. The address bar, tabs and permission prompts are drawn by the browser's own trusted part. The whole security model rests on the page never being able to draw over, hide or imitate those trusted controls. If page-controlled elements could cover trusted controls, they could mislead you about what you are seeing.

Overlay bugs happen when something the page can influence, such as a menu, a popup, a selection handle or a fullscreen element, ends up drawn outside the page area. Think of a sticker that is supposed to stay inside a photo frame but is placed slightly too high, so it covers the label on the frame. Common triggers are unusual window sizes, zoom levels, scrolling, touch input, or timing around when a menu appears relative to a layout change.

The defences are structural. The browser clips page output to the page rectangle, so anything outside is cut off. It draws security-sensitive controls in a layer that is always on top. It checks the position and size of menus and popups before showing them, and it treats coordinates supplied by the page as untrusted. Vendors also run automated tests that compare what is drawn against where the browser controls are expected to be.

In general, how to test for it

This class of bug is found by trying to make page-controlled interface elements escape their bounds:

  1. List the surfaces a page can influence: text selection menus, context menus, autofill dropdowns, permission prompts, date pickers, fullscreen and picture-in-picture transitions, and custom cursors.
  2. Vary the environment: different zoom levels, window sizes, device emulation with touch enabled, scroll positions, and rapid orientation changes.
  3. Trigger the surface at the edges of the page, near the address bar, and while the page is scrolling or resizing, so the positioning logic is stressed.
  4. Check whether the surface overlaps, hides or visually imitates browser controls. A positive result is a reproducible overlap where the page controls what the user sees in a trusted area.
  5. Record the exact steps, browser version and channel, and capture a screenshot or video of the overlap.

Common false positives are overlaps that are purely cosmetic and cannot be influenced by page content, menus that are clipped correctly but merely appear close to the controls, and issues that only reproduce with extensions or non-default settings. Confirm the result on a clean profile before reporting.

In general, how it is fixed

Typical fixes clip page-drawn surfaces to the page area, raise the layering of security-sensitive controls so they cannot be covered, and validate menu and popup geometry in the browser's trusted part before drawing. Vendors may also add regression tests that assert the controls stay visible under hostile page layouts. This report does not describe the fix that was applied.

In general, where to look

Interface spoofing bugs tend to hide at the boundary between page and browser: touch and gesture handling, fullscreen transitions, popup positioning near the edges of the page, and any feature where the page supplies coordinates. Useful signals are recent changes to menu or popup positioning code, platform-specific touch behaviour, and features drawn outside the normal page flow.

Glossary

  • Browser: a program that fetches and displays web pages.
  • Browser UI / browser chrome: the browser's own controls, such as the address bar, tabs and menus, as opposed to page content.
  • URL bar / address bar: the box showing the address of the current page.
  • Renderer: the part of the browser that draws page content, often isolated in its own process.
  • Process: a running program that the operating system keeps separate from others.
  • Text selection menu: the small menu shown when you select text, offering actions such as copy.
  • Overlay: an element drawn on top of something else.
  • Clipping: cutting off anything drawn outside a defined area.
  • Z-order / layering: the order in which overlapping elements are stacked, deciding which one is visible on top.
  • Viewport: the visible area in which a page is drawn.
  • UI spoofing: making a user believe they see a trusted control when they see something else.
  • CVE: a public catalogue identifier for a known security flaw.
  • Bounty: a payment made for a valid security report.
  • VRP: Vulnerability Reward Program, a vendor's scheme for receiving security reports.
  • Severity: a rating of how serious a flaw is.
  • Channel: a release track of a browser, such as stable or beta.
  • Regression: a case where behaviour that used to work correctly later broke.
  • False positive: a reported issue that turns out not to be a real problem.
  • Fuzzing: automated testing that feeds many varied inputs to find crashes and odd behaviour.

More by Khalil Zhani

View all

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