Inappropriate implementation in DevTools (CVE-2025-13632)
The devtools:// scheme allows loading old, fully-privileged DevTools frontend versions from a remote server, which contain previously patched vulnerabilities. A malicious extension can exploit these to gain access to the DevToolsAPI object, enabling local file access, extension impersonation, universal XSS, and sandbox escape via Console Pins.
Originally disclosed on Chrome VRP
- Fix shipped in 4 months
VULNERABILITY DETAILS
The devtools:// scheme allows loading of remote assets from the domain https://chrome-devtools-frontend.appspot.com/. This server keeps a history of old versions of the DevTools Frontend, which can be loaded by navigating any tab to the URL "devtools://devtools/remote/serve_file/@<commit_hash>/<filename>".
When loaded this way, these assets are fully-privileged, with access to the DevToolsAPI object. Because these are old versions, they contain many vulnerabilities that have already been patched, effectively allowing the exploitation of such vulnerabilities even in the latest Chrome version.
EXPLANATION
An extension can open a new tab and browse to a devtools:// URL that loads an old version of the DevTools frontend from the remote server, then exploit any old vulnerability to achieve code execution under the DevTools page. This allows a malicious extension to obtain access to the DevToolsAPI object, which can do many privileged operations, such as accessing local files, impersonating other extensions (even privileged ones), and performing universal XSS. All of this can be done with no user interaction, other than just installing the malicious extension.
In addition to that, the extension can also setup "Console Pins", by writing to localStorage when running code under the old DevTools Frontend. These Console Pins will then execute in ANY privileged origin, allowing a full sandbox escape, as soon as the user opens the real DevTools console. It's not needed to open the console in a privileged page, just by opening console anywhere, the extension can navigate the inspected tab to a privileged page, making the Console Pin execute there.
Another way to escape sandbox, is by using DevTools to impersonate a highly-privileged extension such as Perfetto UI, which can control the entire browser (its id is hardcoded in chromium sources). This is demonstrated in the attached "PoC 2". If Perfetto UI is already installed, no user interaction is required, if not, we use the webstorePrivate API to show an extension install prompt (we can even change name and icon, to make it look like our own extension). If the user accepts the prompt, Perfetto UI will be installed, and we will impersonate it.
VERSION
Chrome Version: 139.0.7258.128 stable
Operating System: Tested on Windows 11, should work on all operating systems.
REPRODUCTION CASE
In this PoC, we are reusing the vulnerability described in https://issues.chromium.org/issues/40051844. This vulnerability has been patched long ago, but because we are loading an old DevTools frontend, we can reuse it.
Steps to reproduce:
- Download the attached "PoC 1.zip" file and install it as an unpacked extension
- As soon as the extension is installed, it will open a new window with the url devtools://devtools/remote/serve_file/@e22de67c28798d98833a7137c0e22876237fc40a/inspector.html.
- After a few seconds, the extension will write the contents of the C:\ directory to the body of the DevTools page, demonstrating that it achieved local file access through the DevToolsAPI object. No user interaction is required up to this step.
- The extension will also setup a Console Pin, and wait for DevTools to be opened. As soon as you press F12 in any page, that page will be navigated to chrome://inspect, and the Console Pin will execute there.
- The script injected in chrome://inspect will open the Node Frontend, then it will open a DevTools console to inspect the Node Frontend. This will cause the Console Pin to be injected in the Node Frontend too.
- Since the Node Frontend is attached to the browser target, the injected script has full control over the browser. The script will download calc.exe and use the chrome://downloads page to execute it.
- At the end of the process, the extension will remove the console pin and uninstall itself, to avoid an infinite loop, and to not interefere with PoC #2.
The second PoC demonstrates the usage of the webstorePrivate API, to spoof a WebStore prompt, tricking the user into installing the Perfetto UI extension, despite the name and icon in the prompt being completely different. This uses the same vulnerability as above, but it is much stealthier: No UI is displayed to the user, other than a minimized DevTools window that exists briefly when the extension is loaded. It also performs a full sandbox escape, downloading and executing calc.exe in the end.
Steps to reproduce:
- Download and install "PoC 2.zip" as an unpacked extension.
- A minimized, barely perceptible, DevTools window, will appear in the taskbar for some seconds, and then close itself.
- After that, open a new tab and paste an URL of the Chrome Web Store, for ANY extension (ex. https://chromewebstore.google.com/detail/framesexplorer/imijdbpfemdegalijeojlkhiamfcgklp). After the page is fully loaded, click on the install button, and accept the prompt.
- As soon as the installation of your chosen extension is finished, you will see an alert in the WebStore page saying "Failed to install <extension>, please try again". The alert shows "Web Store extension" as the origin.
- After accepting the alert, you will see a second install prompt, that looks exactly like the prompt you just accepted (same name and icon). This would lead a user to believe that the installation "failed", and the browser is "trying again". But in reality, this second prompt, if accepted, will install the Perfetto UI extension.
- As soon as Perfetto UI is installed, the extension will open another minimized DevTools window, to impersonate the Perfetto UI extension, and take control of the browser. After a few seconds, calc.exe will be downloaded and launched.
CREDIT INFORMATION
Reporter credit: Leandro Teles (https://x.com/leandrotp2, https://www.linkedin.com/in/leandro-teles-212014197/)
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the devtools:// scheme allows loading remote, fully-privileged DevTools frontend assets from a server that retains old versions, so previously patched vulnerabilities can be reintroduced.
Impact
A malicious extension could achieve local file access, impersonate other extensions, perform universal XSS, and escape the sandbox to execute arbitrary code, with minimal user interaction (just installing the extension and opening DevTools).
What the attacker needed
Victim installs a malicious extension; victim opens DevTools (F12) for Console Pin escape
How it was found
- Install the malicious extension as an unpacked extension.
- The extension opens a new window with a devtools:// URL loading an old DevTools frontend.
- The extension exploits an old vulnerability to access the DevToolsAPI object and reads local files.
- The extension sets up a Console Pin in localStorage.
- When the user opens DevTools (F12), the inspected page is navigated to chrome://inspect and the Console Pin executes there.
- The injected script opens the Node Frontend and a DevTools console, causing the Console Pin to execute in the Node Frontend, giving full control over the browser.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Chrome's developer tools (DevTools) can load old versions of their own interface from a remote server. These old versions are trusted by the browser and have special powers, but they also contain security bugs that were fixed long ago. A malicious browser extension can open a tab to load such an old version, then use those old bugs to take control of the browser, read local files, or pretend to be another extension.
What is Access control?
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.