Skip to content
Access control Advisory Intermediate CVE-2025-13635

Inappropriate implementation in Downloads (CVE-2025-13635)

A focus management flaw in Chrome's download notification allowed a downloaded file to be opened when a window alert was closed while a download was in progress. An attacker could potentially trick a user into opening a malicious file by timing an alert with a download.

Hafiizh Follow

Originally disclosed on Chrome VRP

Bounty$3,000 Low View original
  • Fix shipped in 8 months

Security Bug

VULNERABILITY DETAILS when opening a window alert() and at the same time the popup window is downloading a file and window.alert() is closed the focus changes to the file that has been downloaded (download notification) this causes the file to be opened

VERSION Chrome Version: Version 136.0.7084.0 (Official Build) canary (64-bit) Operating System: Windows OS

REPRODUCTION CASE

  1. open enterjack3.html
  2. do enter 3-4 times fastly

CREDIT INFORMATION Externally reported security bugs may appear in Chrome release notes. If this bug is included, how would you like to be credited? Reporter credit: [goes here]

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

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

What the report shows

This is a Chrome VRP report about the Downloads feature of Google Chrome. The researcher describes a focus-handling problem where closing an alert moves focus to a download notification and the downloaded file is opened. The platform records the weakness as "Inappropriate implementation", the severity as low, and the bounty as 3000.00 USD. The report itself is short and contains no fix details.

The behaviour the researcher describes is a race between a JavaScript alert and a download. When a page opens a window with alert() and, at the same time, a popup window is downloading a file, closing the alert() moves focus to the download notification for the finished file. That focus change causes the downloaded file to be opened.

The environment given is:

Text
Chrome Version: Version 136.0.7084.0 (Official Build) canary (64-bit)
Operating System: Windows OS

The reproduction steps are:

  1. open enterjack3.html
  2. do enter 3-4 times fastly

The report does not include the contents of enterjack3.html, so the exact markup and script that trigger the race are not shown. What it does tell us is that the trigger is repeated quickly: the researcher asks for the Enter key to be pressed three or four times in rapid succession, which suggests the timing of the alert and the download completion matters.

Root cause

The report points to focus handling around the download notification. When the modal alert() is dismissed, the browser has to decide where keyboard focus goes next. In this case it lands on the download notification for the file that the popup just finished downloading, and the downloaded file is opened.

The report does not name a specific component or code path, so the exact implementation error is not stated.

Impact

A page can cause a file to be downloaded and then opened when the user presses Enter on an alert dialog. The report does not say what kind of file is involved or what happens after it opens, so the practical consequence beyond the unwanted open is not described. The platform records the severity as low.

How this kind of bug works

Browsers treat some UI surfaces as trusted: dialogs, permission prompts, download notifications and similar chrome. A page should not be able to steer focus into those surfaces, and input aimed at a page dialog should not leak into them. Bugs of this class appear when two asynchronous events overlap: a page-triggered modal and a browser-side event such as a download completing. The modal blocks script, but the browser's own UI keeps updating underneath it. When the modal closes, focus restoration picks a target based on current state, and if that target is a browser surface with a default action, the pending keystroke can activate it.

The general defences are: keep page dialogs and browser UI in separate focus scopes, consume the input that dismisses a modal, avoid restoring focus to a newly appeared browser surface, and require an explicit user gesture for actions such as opening a downloaded file.

How to test for it

This class is found by looking for places where page-controlled timing meets browser UI.

  1. Identify surfaces that appear asynchronously and can receive focus: download notifications, permission bubbles, autofill prompts, translation bars.
  2. Build a page that starts a slow download in a popup and immediately opens a modal dialog such as alert(), confirm() or prompt().
  3. Dismiss the dialog with the keyboard at the moment the download completes, and repeat with different timings and repeated key presses.
  4. Watch where focus goes after dismissal, using visible focus rings and by checking whether any default action fires.

A positive result is a browser surface receiving focus and acting on the dismissing keystroke, for example a downloaded file opening. Common false positives are cases where the file opens only because the user clicked the notification, or where the download was started by a direct user click on a link. Confirm that the page, not the user, initiated the download and that the keystroke was meant for the dialog.

How it is fixed

Typical fixes for this bug class are to keep focus inside the modal until it closes, to swallow the key event that dismisses the dialog so it cannot reach another surface, and to prevent focus from being restored to a browser notification that appeared while the dialog was open. Requiring an explicit gesture before opening a downloaded file also removes the dangerous default action.

Hunting notes

These bugs tend to hide in the seams between page script and browser chrome: download flows, permission prompts, print dialogs and any feature that shows a notification. Recon signals include features that combine asynchronous browser events with page-triggered modals, and any UI that restores focus automatically. Keep the impact honest: if the user must press keys or interact, say so, because that shapes the severity the program assigns.

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

What happened, in plain words

This is a security report filed with Google's Chrome Vulnerability Rewards Program (VRP), a scheme that pays people for finding and reporting bugs in Chrome. The researcher found a problem in Chrome's Downloads feature: a downloaded file can end up being opened when the user dismisses an alert. Google classified the weakness as "Inappropriate implementation" (a catch-all for code that does not behave the way it should), rated it low severity, and paid a bounty of 3000.00 USD. The report is short and does not describe the fix.

To understand the bug you need two ideas. A download is when the browser saves a file from the web to your computer; when it finishes, Chrome shows a small notification, usually at the bottom of the window, telling you the file is ready. An alert is the small pop-up box a web page can show with a message and an OK button, which you dismiss by pressing Enter or clicking OK. While an alert is open, the page is paused and you cannot interact with anything else.

The researcher describes a race: two things happening at almost the same moment. A page opens an alert, and at the same time a popup window is downloading a file. When the alert is closed, keyboard focus (the idea of "which element on screen is currently receiving your keystrokes") moves to the download notification for the finished file. That focus change causes the downloaded file to be opened.

The environment given is:

Text
Chrome Version: Version 136.0.7084.0 (Official Build) canary (64-bit)
Operating System: Windows OS

Canary is Chrome's experimental early build, where new code appears before it reaches ordinary users.

The reproduction steps are:

  1. open enterjack3.html
  2. do enter 3-4 times fastly

Step 1 means loading a test page the researcher wrote, named enterjack3.html. Step 2 means pressing the Enter key three or four times in quick succession. The report does not include the contents of that file, so the exact markup and script that trigger the race are not shown. What the steps do tell us is that timing matters: pressing Enter repeatedly and fast suggests the alert and the download completion have to overlap in a narrow window.

Root cause

The report points to focus handling around the download notification. When the alert is dismissed, the browser has to decide where your keystrokes should go next. Here it lands on the download notification for the file the popup just finished downloading, and the downloaded file is opened.

The report does not name a specific component or code path, so the exact implementation error is not stated.

Impact

A page can cause a file to be downloaded and then opened when the user presses Enter on an alert dialog. The report does not say what kind of file is involved or what happens after it opens, so the practical consequence beyond the unwanted open is not described. The platform records the severity as low.

In general, how this kind of bug works

Browsers treat some parts of their interface as trusted: dialogs, permission prompts, download notifications and similar browser-owned surfaces. A web page should not be able to steer focus into those surfaces, and input aimed at a page dialog should not leak into them. Think of it like a receptionist (the browser) who takes a message (your keystroke) meant for a visitor (the page dialog) and accidentally hands it to a different department (the download notification).

Bugs of this class appear when two asynchronous events overlap: a page-triggered modal and a browser-side event such as a download completing. "Asynchronous" simply means the two things do not happen in a fixed order; each finishes whenever it finishes. The modal blocks the page's script, but the browser's own interface keeps updating underneath it. When the modal closes, focus restoration picks a target based on the current state, and if that target is a browser surface with a default action, the pending keystroke can activate it.

The general defences are: keep page dialogs and browser interface in separate focus scopes, consume the input that dismisses a modal, avoid restoring focus to a newly appeared browser surface, and require an explicit user gesture for actions such as opening a downloaded file.

In general, how to test for it

This class is found by looking for places where page-controlled timing meets browser interface.

  1. Identify surfaces that appear asynchronously and can receive focus: download notifications, permission bubbles, autofill prompts, translation bars.
  2. Build a page that starts a slow download in a popup and immediately opens a modal dialog such as alert(), confirm() or prompt().
  3. Dismiss the dialog with the keyboard at the moment the download completes, and repeat with different timings and repeated key presses.
  4. Watch where focus goes after dismissal, using visible focus rings and by checking whether any default action fires.

A positive result is a browser surface receiving focus and acting on the dismissing keystroke, for example a downloaded file opening. Common false positives are cases where the file opens only because the user clicked the notification, or where the download was started by a direct user click on a link. Confirm that the page, not the user, initiated the download and that the keystroke was meant for the dialog.

In general, how it is fixed

Typical fixes for this bug class are to keep focus inside the modal until it closes, to swallow the key event that dismisses the dialog so it cannot reach another surface, and to prevent focus from being restored to a browser notification that appeared while the dialog was open. Requiring an explicit gesture before opening a downloaded file also removes the dangerous default action.

In general, hunting notes

These bugs tend to hide in the seams between page script and browser interface: download flows, permission prompts, print dialogs and any feature that shows a notification. Recon signals include features that combine asynchronous browser events with page-triggered modals, and any interface that restores focus automatically. Keep the impact honest: if the user must press keys or interact, say so, because that shapes the severity the program assigns.

Glossary

  • Chrome VRP: Google's Vulnerability Rewards Program, which pays researchers for reporting security bugs in Chrome.
  • Bounty: the money a program pays for an accepted report.
  • Severity: a rating of how serious a bug is, here low.
  • Inappropriate implementation: a weakness label meaning the code does not behave as it should, without a more specific category.
  • Downloads: the Chrome feature that saves files from the web to your computer.
  • Download notification: the small browser message shown when a download finishes.
  • Alert: a pop-up box a page can show with a message and an OK button; the page is paused until it is dismissed.
  • Modal: a dialog that blocks interaction with everything else until it is closed.
  • Focus: which element on screen currently receives your keyboard input.
  • Focus restoration: the browser deciding where focus goes after a dialog closes.
  • Race: a bug where the result depends on the exact timing of two events happening close together.
  • Asynchronous: two things that do not happen in a fixed order, each finishing whenever it finishes.
  • Popup: a separate browser window opened by a page.
  • Keystroke: a single press of a key.
  • Default action: what an interface element does when activated, such as opening a file.
  • User gesture: a deliberate action by the user, such as a click or key press, that the browser can trust.
  • Canary: Chrome's experimental early build, used before code reaches ordinary users.
  • False positive: a test result that looks like a bug but is not one.
  • Deterministic reproduction: steps that reliably produce the same result every time.

More by Hafiizh

View all

78 more disclosed reports, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.