Inappropriate implementation in DevTools (CVE-2025-4052)
Chrome DevTools Recorder let ordinary users record and replay automation steps against chrome:// URLs, so a crafted tutorial page could walk a victim through importing a recorder script that silently flips a browser flag. The reporter says this enables social engineering and, on ChromeOS, could let extensions run on chrome:// URLs after the flag is changed.
Originally disclosed on Chrome VRP
- Fix shipped in 51 days
Security Bug
Important: Please do not change the component of this bug manually.
Please READ THIS FAQ before filing a bug: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/security/faq.md
Please see the following link for instructions on filing security bugs: https://www.chromium.org/Home/chromium-security/reporting-security-bugs
Reports may be eligible for reward payments under the Chrome VRP: https://g.co/chrome/vrp
NOTE: Security bugs are normally made public once a fix has been widely deployed.
VULNERABILITY DETAILS
Chrome DevTools Recorder currently allows regular users to automate steps on chrome:// URLs. This opens the door for social engineering attacks, where users can be tricked into executing pre-recorded scripts that flips flags without clear user consent.
This issue also bleeds to ChromeOS where extensions requires explicit permission to allow injecting script in chrome://file-manager/* URLs, which is currently disabled by default. By flipping a certain flag (#extensions-on-chrome-urls), the attacker could start another system attack.
VERSION
Tested in: Chrome Version: 134.0.6998.36 (Official Build) (64-bit) Operating System: Windows NT: 10.0.19044
REPRODUCTION CASE
I've attached an HTML page that looks like a valid tutorial on enabling 60FPS for web mobile games. It guides users to download and run a DevTools Recorder script that flips #extensions-on-chrome-urls flag without their full awareness. Follow the guide in the HTML file:
- Download attached HTML file.
- Download the recorder script provided in the tutorial page.
- Import the and replay the recorder file in DevTools Recorder.
Since the chrome://flags can automatically jump to certain flags, this makes the victim unaware that the target flag has been flipped. Furthermore, the warning at the very top of the page is not visible upon Relaunch as seen in the video
In this particular example, the flag is used to allows chrome extensions to run in chrome:// URLs.
SUGGESTED SOLUTION
To perform recorder steps in chrome://* URLs, the user should explicitly enable a flag in chrome://flags.
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: vanillawebdev
Context
Chrome DevTools Recorder is the panel in Chrome DevTools that lets a user record interactions with a page and replay them later as a script. A recorded flow is exported as a file and can be imported and replayed by anyone who has it.
The behaviour described here concerns what those recorded steps are allowed to touch. According to the report, DevTools Recorder at the time allowed regular users to automate steps on chrome:// URLs. That is the gap the researcher built an attack around.
The report was filed against Google Chrome through the Chrome VRP and is tracked as CVE-2025-4052, an inappropriate implementation issue in DevTools. It was rated low severity and paid a bounty of 1000.00 USD. It was disclosed on 2025-04-29.
Setup
The researcher tested on a single desktop configuration:
| Item | Value |
|---|---|
| Chrome version | 134.0.6998.36 (Official Build) (64-bit) |
| Operating system | Windows NT: 10.0.19044 |
No account, role or special tooling is described. The only artefacts are an HTML page written to look like a tutorial and a DevTools Recorder script that the page tells the reader to download. The victim needs nothing beyond a normal Chrome install and the willingness to follow the tutorial.
Finding it
The observation is that DevTools Recorder will replay recorded steps against chrome:// URLs. Browser-internal pages are normally out of reach for web content, so a mechanism that lets a user-supplied script drive them is worth examining. The researcher's framing is that this "opens the door for social engineering attacks, where users can be tricked into executing pre-recorded scripts that flips flags without clear user consent".
The specific target chosen is chrome://flags. Two properties of that page make the attack work. First, chrome://flags can jump directly to a particular flag, so the victim does not have to see or understand which flag is being changed. Second, the warning banner at the very top of the flags page is not visible upon Relaunch, so the state change is not surfaced to the user afterwards either.
The researcher also notes that the issue "bleeds to ChromeOS". On ChromeOS, extensions require explicit permission to inject script into chrome://file-manager/* URLs, and that permission is disabled by default. Flipping the #extensions-on-chrome-urls flag removes that protection, which the researcher describes as the starting point for "another system attack".
Exploitation
The delivery mechanism is a decoy tutorial. The researcher wrote an HTML page that presents itself as a legitimate guide to enabling 60FPS for web mobile games. It walks the reader through downloading and running a DevTools Recorder script that flips #extensions-on-chrome-urls without their full awareness.
Step 1: Download the HTML file
The victim downloads the attached HTML page. The page is the social engineering layer: it frames the whole exercise as a performance tweak and supplies the recorder script in step 2.
Step 2: Download the recorder script
The tutorial page provides the DevTools Recorder script for download. The script is the payload: a recorded sequence of steps that, when replayed, flips #extensions-on-chrome-urls.
Step 3: Import and replay in DevTools Recorder
The victim imports the downloaded file into DevTools Recorder and replays it. Because Recorder is permitted to automate steps on chrome:// URLs, the recorded steps against chrome://flags execute. The flags page jumps straight to the target flag, so the victim never has to locate it, read its description or consciously decide to enable it. In the researcher's example, the flag is used to allow Chrome extensions to run on chrome:// URLs.
After the replay, the victim relaunches the browser. The warning at the top of the flags page is not visible upon Relaunch, so nothing at that point tells the user that a security-relevant flag has been changed.
Root cause
The issue is that DevTools Recorder allows regular users to automate steps on chrome:// URLs. Recorded steps are user-supplied content, and replaying them against browser-internal pages gives that content the ability to drive privileged UI, including the flags page, without a distinct consent step for that class of page.
The existing defences do not cover this path. The flags page does have a warning banner, but per the report it is not visible upon Relaunch, so it does not act as a durable signal that a flag was changed. The deep-link behaviour of chrome://flags, which jumps to a named flag, removes the need for the victim to see the flag they are enabling. On ChromeOS, extensions need explicit permission to inject script into chrome://file-manager/* URLs, disabled by default; flipping #extensions-on-chrome-urls could start another system attack.
Impact
A victim who follows the decoy tutorial has #extensions-on-chrome-urls enabled without clear consent. In the researcher's example, that flag is used to allow Chrome extensions to run on chrome:// URLs. On ChromeOS this matters more: flipping the flag could let the attacker start "another system attack".
The attack requires the victim to download the HTML page, download the recorder script and import and replay it in DevTools Recorder, so it is a social engineering chain rather than a remote compromise. The report does not demonstrate a specific follow-on attack beyond flipping the flag. The program rated the issue low severity.
Fix
The researcher's suggested solution is that, to perform recorder steps in chrome://* URLs, the user should explicitly enable a flag in chrome://flags. In other words, replaying recorded steps against browser-internal pages should be gated behind an explicit opt-in rather than being available by default.
The report does not state which change, if any, was shipped.
Variants to test
- Other
chrome://pages reachable by Recorder replay. Try recording steps against internal pages other than flags and see whether the replay drives them. A positive result is any internal page whose state changes as a result of a replayed recording. - Other deep-linkable settings surfaces. The flags page can jump to a named flag; look for other internal pages that accept a target in the URL and act on it. A positive result is a page that performs a state change on load without the user selecting the target.
- ChromeOS extension injection paths. On ChromeOS, check whether flipping
#extensions-on-chrome-urlsvia a replayed recording is enough to inject script intochrome://file-manager/*. A positive result is script executing in that origin after the flag change. - Warning visibility after relaunch. Reproduce the reported behaviour that the top-of-page warning on
chrome://flagsis not visible upon Relaunch, and check whether any other persistent indicator of a changed flag exists. A positive result is a changed security-relevant flag with no visible warning after restart.
Hunting notes
This class of bug sits where a user-controlled automation or scripting feature meets privileged browser surfaces. Recorder is one example; anything that replays user-supplied steps, macros or scripts is worth checking for the same property, namely whether internal URLs are treated as ordinary targets.
The recon signal is a feature that records and replays actions and does not visibly restrict the scheme or origin of the pages it can act on. If a recording can be exported, shared and imported by someone else, the social engineering angle is available: the payload travels as a file that looks like a helpful tutorial.
On impact, the researcher tied the flag to a second, more serious consequence on ChromeOS. The report names the exact flag changed, explains why the victim would not notice (the flags page jumps to the flag, and the warning is not visible upon Relaunch), and ties the flag to a second, more serious consequence on ChromeOS where a default-off protection for chrome://file-manager/* script injection is removed. The report ties a low-severity consent problem to a platform-specific consequence on ChromeOS.
What happened, in plain words
Chrome has a built-in tool called DevTools, aimed at people who build websites. One part of it, DevTools Recorder, can watch what you do on a page and save those actions as a small file. Anyone who has that file can load it back into Recorder and press play, and Chrome will repeat the recorded actions for them.
The problem in this report is about which pages those recorded actions are allowed to touch. Normally, ordinary web pages are kept away from Chrome's own internal pages, the ones whose addresses start with chrome://. Those internal pages control browser settings, so letting random web content drive them would be dangerous. According to the report, Recorder at the time did not make that distinction: it would happily replay recorded steps against chrome:// addresses.
The researcher turned that into a trick. They wrote a web page that looks like a helpful tutorial about making mobile web games run at 60 frames per second, a common performance goal. The tutorial tells the reader to download a Recorder script and play it. When the reader does that, the script flips a particular setting. The reader never really chooses to change it, and afterwards nothing obvious tells them it happened.
The setting in question is #extensions-on-chrome-urls. It lets browser extensions, the small add-on programs you install in Chrome, run inside Chrome's internal pages. On ChromeOS, Google's laptop operating system, that matters more: extensions need explicit permission to inject script into chrome://file-manager/* URLs, disabled by default, and flipping the flag could start another system attack. The researcher calls that the starting point for another attack on the system.
The report was filed with Google's Chrome bug bounty programme, the Chrome VRP, where people who find security problems can report them and sometimes get paid. It is tracked as CVE-2025-4052, a public identifier given to a specific security issue. Google classified it as an inappropriate implementation problem in DevTools, rated it low severity, and paid a bounty of 1000.00 USD. It was disclosed on 2025-04-29.
Context
DevTools Recorder is the panel inside Chrome DevTools that lets a user record interactions with a page and replay them later as a script. Think of it like a macro recorder in a spreadsheet: you do a few clicks and keystrokes once, and the tool can repeat them for you. A recorded flow is exported as a file, and anyone who has that file can import it and replay it.
The behaviour described here concerns what those recorded steps are allowed to touch. According to the report, DevTools Recorder at the time allowed regular users to automate steps on chrome:// URLs. That is the gap the researcher built an attack around.
A chrome:// URL is an address that points at a page built into the browser itself rather than at a website on the internet. Examples include the settings page, the list of installed extensions and the flags page. Because these pages can change how the browser behaves, browsers treat them as privileged and keep ordinary web pages away from them.
The report was filed against Google Chrome through the Chrome VRP and is tracked as CVE-2025-4052, an inappropriate implementation issue in DevTools. "Inappropriate implementation" is a broad label meaning the feature works as coded but the way it was built has a security consequence. It was rated low severity and paid a bounty of 1000.00 USD. It was disclosed on 2025-04-29.
Setup
The researcher tested on a single desktop configuration:
| Item | Value |
|---|---|
| Chrome version | 134.0.6998.36 (Official Build) (64-bit) |
| Operating system | Windows NT: 10.0.19044 |
A version number like 134.0.6998.36 identifies exactly which build of Chrome was running, so others can try to reproduce the result on the same code. "Official Build (64-bit)" means the normal public release for 64-bit processors, not a special developer build. "Windows NT: 10.0.19044" is the internal version string for the edition of Windows 10 used in the test.
No account, role or special tooling is described. The only artefacts are an HTML page written to look like a tutorial and a DevTools Recorder script that the page tells the reader to download. HTML is the language web pages are written in; a file ending in .html opens in a browser and can contain text, links and instructions. The victim needs nothing beyond a normal Chrome install and the willingness to follow the tutorial.
Finding it
The observation is that DevTools Recorder will replay recorded steps against chrome:// URLs. Browser-internal pages are normally out of reach for web content, so a mechanism that lets a user-supplied script drive them is worth examining. The researcher's framing is that this "opens the door for social engineering attacks, where users can be tricked into executing pre-recorded scripts that flips flags without clear user consent".
Social engineering means manipulating a person rather than a machine: you persuade someone to do something harmful while believing it is harmless or helpful. A pre-recorded script here is the saved Recorder file, a list of steps captured earlier that can be played back later.
The specific target chosen is chrome://flags. Flags are experimental or advanced settings that are not shown in the normal settings screens. Each flag has a name, a short description and a switch to turn it on or off. Two properties of that page make the attack work. First, chrome://flags can jump directly to a particular flag, so the victim does not have to see or understand which flag is being changed. Second, the warning banner at the very top of the flags page is not visible upon Relaunch, so the state change is not surfaced to the user afterwards either. A banner is a coloured strip of text at the top of a page, usually carrying a caution; "upon Relaunch" means after the browser is closed and started again, which the tutorial asks the reader to do.
The researcher also notes that the issue "bleeds to ChromeOS". On ChromeOS, extensions require explicit permission to inject script into chrome://file-manager/* URLs, and that permission is disabled by default. To inject script means to place and run code inside a page that the extension did not write itself. The * in chrome://file-manager/* is a wildcard standing for any page under that address. Flipping the #extensions-on-chrome-urls flag removes that protection, which the researcher describes as the starting point for "another system attack".
Exploitation
The delivery mechanism is a decoy tutorial. A decoy is something that looks like one thing in order to get you to do another. The researcher wrote an HTML page that presents itself as a legitimate guide to enabling 60FPS for web mobile games. It walks the reader through downloading and running a DevTools Recorder script that flips #extensions-on-chrome-urls without their full awareness.
Step 1: Download the HTML file
The victim downloads the attached HTML page. The page is the social engineering layer: it frames the whole exercise as a performance tweak and supplies the recorder script in step 2. Framing means presenting the activity in a way that makes it seem reasonable, here as a harmless speed improvement for games.
Step 2: Download the recorder script
The tutorial page provides the DevTools Recorder script for download. The script is the payload: a recorded sequence of steps that, when replayed, flips #extensions-on-chrome-urls. The payload is the part that actually does the damage, as opposed to the part that persuades the victim to run it.
Step 3: Import and replay in DevTools Recorder
The victim imports the downloaded file into DevTools Recorder and replays it. Importing means loading a saved file back into the tool; replaying means letting the tool carry out the recorded steps. Because Recorder is permitted to automate steps on chrome:// URLs, the recorded steps against chrome://flags execute. The flags page jumps straight to the target flag, so the victim never has to locate it, read its description or consciously decide to enable it. In the researcher's example, the flag is used to allow Chrome extensions to run on chrome:// URLs.
After the replay, the victim relaunches the browser. The warning at the top of the flags page is not visible upon Relaunch, so nothing at that point tells the user that a security-relevant flag has been changed. A security-relevant flag is one whose state affects what code is allowed to do, rather than, say, a cosmetic setting.
Root cause
The root cause is the underlying reason a bug exists, as opposed to the visible symptom. The issue here is that DevTools Recorder allows regular users to automate steps on chrome:// URLs. Recorded steps are user-supplied content, and replaying them against browser-internal pages gives that content the ability to drive privileged UI, including the flags page, without a distinct consent step for that class of page. Privileged UI means screens that can change how the browser itself behaves; a consent step is a moment where the user is asked to agree specifically to that action.
The existing defences do not cover this path. The flags page does have a warning banner, but per the report it is not visible upon Relaunch, so it does not act as a durable signal that a flag was changed. Durable here means it persists long enough for the user to notice it later. The deep-link behaviour of chrome://flags, which jumps to a named flag, removes the need for the victim to see the flag they are enabling. A deep link is an address that opens a page already positioned at a particular item rather than at its top. On ChromeOS, extensions need explicit permission to inject script into chrome://file-manager/* URLs, disabled by default; flipping #extensions-on-chrome-urls could start another system attack.
Impact
A victim who follows the decoy tutorial has #extensions-on-chrome-urls enabled without clear consent. In the researcher's example, that flag is used to allow Chrome extensions to run on chrome:// URLs. On ChromeOS this matters more: flipping the flag could let the attacker start "another system attack".
The attack requires the victim to download the HTML page, download the recorder script and import and replay it in DevTools Recorder, so it is a social engineering chain rather than a remote compromise. A remote compromise would mean an attacker taking over a machine over the network with no action by the owner; here the owner has to be talked into several steps. The report does not demonstrate a specific follow-on attack beyond flipping the flag. The program rated the issue low severity.
Fix
The researcher's suggested solution is that, to perform recorder steps in chrome://* URLs, the user should explicitly enable a flag in chrome://flags. In other words, replaying recorded steps against browser-internal pages should be gated behind an explicit opt-in rather than being available by default. An opt-in is a setting the user must deliberately turn on; gating means refusing the action until that has happened.
The report does not state which change, if any, was shipped.
Variants to test
A variant is a related version of the same idea, tried in a slightly different place to see whether the same weakness appears. These are directions for further testing, not confirmed findings.
- Other
chrome://pages reachable by Recorder replay. Try recording steps against internal pages other than flags and see whether the replay drives them. A positive result is any internal page whose state changes as a result of a replayed recording. - Other deep-linkable settings surfaces. The flags page can jump to a named flag; look for other internal pages that accept a target in the URL and act on it. A positive result is a page that performs a state change on load without the user selecting the target.
- ChromeOS extension injection paths. On ChromeOS, check whether flipping
#extensions-on-chrome-urlsvia a replayed recording is enough to inject script intochrome://file-manager/*. A positive result is script executing in that origin after the flag change. An origin is the combination of scheme, host and port that identifies where a page comes from, for examplechrome://file-manager. - Warning visibility after relaunch. Reproduce the reported behaviour that the top-of-page warning on
chrome://flagsis not visible upon Relaunch, and check whether any other persistent indicator of a changed flag exists. A positive result is a changed security-relevant flag with no visible warning after restart.
Hunting notes
Hunting notes are general advice for people looking for similar bugs. This class of bug sits where a user-controlled automation or scripting feature meets privileged browser surfaces. Recorder is one example; anything that replays user-supplied steps, macros or scripts is worth checking for the same property, namely whether internal URLs are treated as ordinary targets.
The recon signal is a feature that records and replays actions and does not visibly restrict the scheme or origin of the pages it can act on. Recon, short for reconnaissance, means the early looking-around phase before attempting anything. A scheme is the first part of a URL, such as https or chrome, which says what kind of address it is. If a recording can be exported, shared and imported by someone else, the social engineering angle is available: the payload travels as a file that looks like a helpful tutorial.
On impact, the researcher tied the flag to a second, more serious consequence on ChromeOS. The report names the exact flag changed, explains why the victim would not notice (the flags page jumps to the flag, and the warning is not visible upon Relaunch), and ties the flag to a second, more serious consequence on ChromeOS where a default-off protection for chrome://file-manager/* script injection is removed. The report ties a low-severity consent problem to a platform-specific consequence on ChromeOS. A security boundary is a line the system is supposed to stop code from crossing, such as the line between an extension and the browser's own file manager page.
Glossary
- API: a defined way for one piece of software to ask another to do something, like a menu of allowed requests.
- Banner: a strip of text, often coloured, at the top of a page that carries a warning or notice.
- Bounty: a payment made by a company to someone who reports a security problem to it.
- Chrome VRP: Google's Vulnerability Reward Program for Chrome, the scheme through which this report was filed and paid.
- ChromeOS: Google's operating system for laptops and tablets, in which the browser and the system are closely tied together.
- Consent step: a moment where the user is asked to agree specifically to an action before it happens.
- CVE: a public identifier assigned to a specific security vulnerability so people can refer to it unambiguously; CVE-2025-4052 is the one in this report.
- Decoy: something that looks like one thing in order to get you to do another.
- Deep link: an address that opens a page already positioned at a particular item rather than at its top.
- DevTools: the set of developer tools built into Chrome, opened with a keyboard shortcut or menu, used to inspect and test web pages.
- DevTools Recorder: the panel in DevTools that records interactions with a page and can replay them later from a saved file.
- Disclosure: the point at which details of a security issue are made public.
- Durable signal: an indication that persists long enough for a person to notice it later, rather than only at the moment of the change.
- Extension: a small add-on program installed into a browser to add features.
- Flag: an advanced or experimental browser setting, not shown in normal settings, that can be switched on or off on the
chrome://flagspage. - HTML: the language web pages are written in; an
.htmlfile opens in a browser. - Inappropriate implementation: a classification meaning the feature works as coded but the way it was built has a security consequence.
- Inject script: to place and run code inside a page that the injecting party did not write itself.
- Low severity: a rating meaning the issue is real but hard to exploit or limited in effect.
- Opt-in: a setting the user must deliberately turn on before an action is allowed.
- Origin: the combination of scheme, host and port that identifies where a page comes from.
- Payload: the part of an attack that actually does the harmful action, as opposed to the part that persuades the victim.
- Privileged UI: screens in the browser that can change how the browser itself behaves.
- Recon: reconnaissance, the early looking-around phase before attempting an attack.
- Remote compromise: an attacker taking over a machine over the network with no action by its owner.
- Replay: letting a recording tool carry out the steps that were saved earlier.
- Scheme: the first part of a URL, such as
httpsorchrome, saying what kind of address it is. - Security boundary: a line the system is supposed to stop code from crossing.
- Social engineering: manipulating a person, rather than a machine, into doing something harmful while believing it is harmless.
- Variant: a related version of the same idea, tried in a slightly different place.
- Wildcard: a symbol such as
*that stands for any value in that position.