Inappropriate implementation in Extensions (CVE-2025-3069)
The crosh terminal page in ChromeOS accepts URL parameters that are passed to privileged terminal APIs, allowing an extension to launch crosh and run vmshell with arbitrary arguments. A web page could also redirect to this internal page, potentially enabling command execution.
- Fix shipped in 2.8 years
Steps to reproduce the problem:
chrome.window.create({url: 'chrome-extension://nkoccljplnhpfnfiajclkommnmllphnl/html/crosh.html?command=vmshell&args[]='})
Problem Description:
The URL parameters args[] and command on chrome-extension://nkoccljplnhpfnfiajclkommnmllphnl/html/crosh.html
Are used in chrome.terminalPrivate.openTerminalProcess or chrome.terminalPrivate.openVmshellProcess
This allows an extension to trigger crosh and run vmshell with arguments.
Interestingly if you type a url in the omnibox a https:// resource is allowed to redirect to crosh. its treated as sec-fetch-site none not sure if its meant to be cross-origin.
Unrelated but I noticed ChromeOS leaks if files and folders exist to guest users file:///etc/passwd and file:///etc/ says ERROR_ACCESS_DENIED while file:///etc/foo says ERROR_FILE_NOT_FOUND
I understand if this is a non-issue.
Additional Comments:
**Chrome version: ** 103.0.0.0 **Channel: ** Not sure
OS: Windows
Context
ChromeOS ships a built-in developer shell called crosh, implemented as a Chrome extension with the ID nkoccljplnhpfnfiajclkommnmllphnl. Its page lives at chrome-extension://nkoccljplnhpfnfiajclkommnmllphnl/html/crosh.html. Behind that page sit privileged extension APIs, chrome.terminalPrivate.openTerminalProcess and chrome.terminalPrivate.openVmshellProcess, which start terminal processes on behalf of the extension. The report is about how URL parameters on the crosh page reach those APIs, and what an ordinary extension can do with that path.
The issue was filed against Google Chrome through the Chrome VRP, credited to NDevTK, rated medium severity, and paid a bounty of 1000.00 USD. It was disclosed on 2025-04-01 under the title "Inappropriate implementation in Extensions" and tracked as CVE-2025-3069.
Setup
The reporter lists Chrome version 103.0.0.0 and OS Windows, with the channel marked "Not sure". The behaviour under discussion is ChromeOS-specific: crosh, terminalPrivate and vmshell are ChromeOS components, and the reporter's own follow-up observation about file:///etc/ is explicitly about ChromeOS. No accounts, roles or special tooling are described; the reproduction is a single API call from an extension.
Finding it
The reporter noticed that two URL parameters on the crosh page, args[] and command, are consumed by chrome.terminalPrivate.openTerminalProcess or chrome.terminalPrivate.openVmshellProcess. The code path is in terminal_private_api.cc in the Chromium source tree. In other words, a page that any extension can navigate a window to carries parameters that end up as arguments to a privileged terminal API. That is the core observation: the parameters are attacker-influenced input that reaches a process-spawning interface.
A second observation in the same report concerns redirects. If you type a URL in the omnibox, an https:// resource is allowed to redirect to crosh. The reporter notes that this is treated as sec-fetch-site none, and is unsure whether it is meant to be cross-origin. This matters because it would give a web origin, not just an extension, a route to the crosh page.
A third, explicitly unrelated observation: ChromeOS leaks whether files and folders exist to guest users. file:///etc/passwd and file:///etc/ return ERROR_ACCESS_DENIED, while file:///etc/foo returns ERROR_FILE_NOT_FOUND. The difference between the two error codes discloses existence. The reporter adds "I understand if this is a non-issue."
Exploitation
Step 1: create a window pointed at crosh with parameters
chrome.window.create({url: 'chrome-extension://nkoccljplnhpfnfiajclkommnmllphnl/html/crosh.html?command=vmshell&args[]='})
The call creates a Chrome window whose URL is the crosh page of the terminal extension. The query string sets command=vmshell and supplies an args[] parameter. Because the crosh page reads these parameters and passes them into chrome.terminalPrivate.openTerminalProcess or chrome.terminalPrivate.openVmshellProcess, the effect is that an extension can trigger crosh and run vmshell with arguments of its choosing. The reporter's payload leaves args[] empty; the point demonstrated is the mechanism, not a particular argument value.
Step 2 (observation): redirect from the web
No payload is given for this part. The reporter states that typing a URL in the omnibox lets an https:// resource redirect to crosh, and that the resulting request is treated as sec-fetch-site none. The open question raised is whether that redirect is intended to be cross-origin. If it is, the parameter path above is reachable from a web page rather than only from an extension.
Step 3 (observation): file existence oracle for guests
file:///etc/passwd
file:///etc/
file:///etc/foo
For a guest user, the first two return ERROR_ACCESS_DENIED, while the third returns ERROR_FILE_NOT_FOUND. The distinct errors let a guest distinguish a path that exists but is denied from one that does not exist at all.
Root cause
The crosh page takes the command and args[] URL parameters and feeds them into the privileged terminalPrivate APIs that spawn terminal and vmshell processes. The crosh page takes the command and args[] URL parameters and feeds them into the privileged terminalPrivate APIs that spawn terminal and vmshell processes, so an extension can trigger crosh and run vmshell with arguments. The report does not describe any validation, origin check or permission gate on the parameter path; the weakness is classified as an inappropriate implementation in Extensions.
For the redirect observation, the reporter's uncertainty is whether the sec-fetch-site none treatment of a redirect into crosh is correct, that is, whether the navigation should have been considered cross-origin. The report does not resolve this.
Impact
The demonstrated impact is that an extension can trigger crosh and run vmshell with arguments. The reporter frames the redirect behaviour as a possible additional route from an https:// resource, but does not demonstrate exploitation through it. The file existence leak affects guest users and discloses only whether files and folders exist, not their contents; the reporter explicitly allows that it may be a non-issue. The program rated the overall issue medium severity.
Fix
The report does not state what change was made. The advisory title, "Inappropriate implementation in Extensions", and the CVE assignment indicate the issue was addressed as a Chrome security fix, but the specific code change is not described here.
Variants to test
- Other privileged extension pages that read query parameters and forward them to native or process-spawning APIs. A positive result is a page reachable by navigation whose parameters change what process runs or with which arguments.
- Redirects from web origins into privileged
chrome-extension://pages. A positive result is anhttps://page causing a navigation to such a page with attacker-chosen parameters, with the request treated as same-site ornonerather than cross-origin. - Error-code oracles on restricted schemes for low-privilege profiles. A positive result is two different error codes for existing versus non-existing paths, as with
ERROR_ACCESS_DENIEDversusERROR_FILE_NOT_FOUNDabove.
Hunting notes
This kind of bug tends to hide at the boundary between a web-reachable page and a privileged API: extension pages that parse location.search and pass values into chrome.*Private methods, native messaging hosts, or process launchers. During recon, look for extension URLs that accept command, args[] or similar parameters, and check whether a plain extension or a web redirect can reach them.
What happened, in plain words
ChromeOS is Google's operating system for Chromebooks. It includes a built-in developer shell called crosh, which is a small command-line tool for diagnostics and advanced tasks. Crosh is not a normal web page: it is packaged as a Chrome extension, a small add-on program that runs inside the browser. That extension has a fixed identifier, nkoccljplnhpfnfiajclkommnmllphnl, and its page is reached through a special chrome-extension:// address.
Behind the crosh page sit two privileged functions, chrome.terminalPrivate.openTerminalProcess and chrome.terminalPrivate.openVmshellProcess. An API (application programming interface) is a set of functions one program offers to another so they can talk. These two APIs start terminal processes, meaning they launch programs on the machine. They are marked private, a naming convention for APIs tied to built-in ChromeOS components.
The report shows that the crosh page reads two values from its web address, the URL parameters command and args[], and passes them into those privileged APIs. A URL parameter is the part of an address after a question mark, like ?name=value, used to hand small pieces of information to a page. Because an extension can open a window pointing at that address, an extension can trigger crosh and run vmshell with arguments.
The issue was filed against Google Chrome through the Chrome VRP (Vulnerability Reward Program, Google's scheme for paying people who report security bugs), credited to NDevTK, rated medium severity, and paid a bounty of 1000.00 USD. It was disclosed on 2025-04-01 under the title "Inappropriate implementation in Extensions" and tracked as CVE-2025-3069. A CVE is a public catalogue number given to a known security flaw so people can refer to it unambiguously.
Setup
The reporter lists Chrome version 103.0.0.0 and OS Windows, with the channel marked "Not sure". The behaviour under discussion is ChromeOS-specific: crosh, terminalPrivate and vmshell are ChromeOS components, and the reporter's own follow-up observation about file:///etc/ is explicitly about ChromeOS. No accounts, roles or special tooling are described; the reproduction is a single API call from an extension.
Finding it
The reporter noticed that two URL parameters on the crosh page, args[] and command, are consumed by chrome.terminalPrivate.openTerminalProcess or chrome.terminalPrivate.openVmshellProcess. The code path is in terminal_private_api.cc in the Chromium source tree. Chromium is the open-source project Chrome is built from, and a source file is the human-written code that defines how a feature behaves. In other words, a page that any extension can navigate a window to carries parameters that end up as arguments to a privileged terminal API. That is the core observation: the parameters are attacker-influenced input that reaches a process-spawning interface.
A second observation in the same report concerns redirects. A redirect is when one address tells the browser to go to a different address instead. If you type a URL in the omnibox (the browser's address bar), an https:// resource is allowed to redirect to crosh. The reporter notes that this is treated as sec-fetch-site none, and is unsure whether it is meant to be cross-origin. sec-fetch-site is a label the browser attaches to a request saying how the destination relates to the page that started it; none means the request was started directly by the user, not by another site. Cross-origin means coming from a different site than the one being visited. This matters because it would give a web origin, not just an extension, a route to the crosh page.
A third, explicitly unrelated observation: ChromeOS leaks whether files and folders exist to guest users. A guest user is a temporary ChromeOS session with limited access, often used on shared machines. file:///etc/passwd and file:///etc/ return ERROR_ACCESS_DENIED, while file:///etc/foo returns ERROR_FILE_NOT_FOUND. The difference between the two error codes discloses existence: one error says "this exists but you may not see it", the other says "this does not exist". The reporter adds "I understand if this is a non-issue."
Exploitation
Step 1: create a window pointed at crosh with parameters
chrome.window.create({url: 'chrome-extension://nkoccljplnhpfnfiajclkommnmllphnl/html/crosh.html?command=vmshell&args[]='})
The call creates a Chrome window whose URL is the crosh page of the terminal extension. The query string sets command=vmshell and supplies an args[] parameter. Because the crosh page reads these parameters and passes them into chrome.terminalPrivate.openTerminalProcess or chrome.terminalPrivate.openVmshellProcess, the effect is that an extension can trigger crosh and run vmshell with arguments of its choosing. The reporter's payload leaves args[] empty; the point demonstrated is the mechanism, not a particular argument value.
Line by line:
chrome.window.create(...)asks the browser to open a new window.chromeis the object Chrome exposes to extensions, andwindow.createis the function that makes windows.- The argument is an object with one property,
url, whose value is the address to load. - The address starts with
chrome-extension://nkoccljplnhpfnfiajclkommnmllphnl/, which points at the built-in crosh extension by its identifier. - The path
/html/crosh.htmlis the crosh page inside that extension. - The
?begins the query string.command=vmshelltells crosh which command to run, herevmshell, a ChromeOS component that starts a virtual machine shell. &args[]=adds an empty argument list. The square brackets in the name signal that this parameter is meant to hold a list of values.
Why this step: it is the smallest possible demonstration. Instead of describing a complicated attack, the reporter shows that one ordinary extension call is enough to reach the privileged path.
Step 2 (observation): redirect from the web
No payload is given for this part. The reporter states that typing a URL in the omnibox lets an https:// resource redirect to crosh, and that the resulting request is treated as sec-fetch-site none. The open question raised is whether that redirect is intended to be cross-origin. If it is, the parameter path above is reachable from a web page rather than only from an extension.
Why this matters: if a normal website can redirect the browser to crosh, the route to the crosh page would not be limited to extensions. The reporter does not claim this is exploitable, only that the labelling looks questionable.
Step 3 (observation): file existence oracle for guests
file:///etc/passwd
file:///etc/
file:///etc/foo
For a guest user, the first two return ERROR_ACCESS_DENIED, while the third returns ERROR_FILE_NOT_FOUND. The distinct errors let a guest distinguish a path that exists but is denied from one that does not exist at all.
Line by line:
file:///etc/passwdasks the browser to open a local file./etc/passwdis a standard Unix file that lists user accounts. The guest is refused withERROR_ACCESS_DENIED.file:///etc/asks for the/etc/folder itself. It is also refused withERROR_ACCESS_DENIED.file:///etc/fooasks for a name that does not exist. It returnsERROR_FILE_NOT_FOUND.
An oracle in security means any signal that answers a question the attacker is not supposed to be able to ask. Here the error code answers "does this path exist?" even though the guest cannot read the contents. Why this step: it is a separate, smaller observation, included because it is easy to check and might matter to someone else, not because it is part of the main bug.
Root cause
The crosh page takes the command and args[] URL parameters and feeds them into the privileged terminalPrivate APIs that spawn terminal and vmshell processes. The crosh page takes the command and args[] URL parameters and feeds them into the privileged terminalPrivate APIs that spawn terminal and vmshell processes, so an extension can trigger crosh and run vmshell with arguments. Untrusted input means data that could have been chosen by someone with bad intentions; the safe habit is to check it before acting on it. The report does not describe any validation, origin check or permission gate on the parameter path; the weakness is classified as an inappropriate implementation in Extensions. "Inappropriate implementation" is a category meaning the feature works as coded but the design or the checks around it are wrong.
For the redirect observation, the reporter's uncertainty is whether the sec-fetch-site none treatment of a redirect into crosh is correct, that is, whether the navigation should have been considered cross-origin. The report does not resolve this.
Impact
The demonstrated impact is that an extension can trigger crosh and run vmshell with arguments. The reporter frames the redirect behaviour as a possible additional route from an https:// resource, but does not demonstrate exploitation through it. The file existence leak affects guest users and discloses only whether files and folders exist, not their contents; the reporter explicitly allows that it may be a non-issue. The program rated the overall issue medium severity.
Fix
The report does not state what change was made. The advisory title, "Inappropriate implementation in Extensions", and the CVE assignment indicate the issue was addressed as a Chrome security fix, but the specific code change is not described here.
Variants to test
- Other privileged extension pages that read query parameters and forward them to native or process-spawning APIs. A positive result is a page reachable by navigation whose parameters change what process runs or with which arguments.
- Redirects from web origins into privileged
chrome-extension://pages. A positive result is anhttps://page causing a navigation to such a page with attacker-chosen parameters, with the request treated as same-site ornonerather than cross-origin. - Error-code oracles on restricted schemes for low-privilege profiles. A positive result is two different error codes for existing versus non-existing paths, as with
ERROR_ACCESS_DENIEDversusERROR_FILE_NOT_FOUNDabove.
Hunting notes
This kind of bug tends to hide at the boundary between a web-reachable page and a privileged API: extension pages that parse location.search and pass values into chrome.*Private methods, native messaging hosts, or process launchers. location.search is the part of a page's address starting with ?, the same query string discussed above. Native messaging is a Chrome feature that lets an extension exchange messages with a separate program installed on the computer. During recon, look for extension URLs that accept command, args[] or similar parameters, and check whether a plain extension or a web redirect can reach them.
Glossary
- API: a set of functions one program offers to another so they can talk to each other.
- Bounty: money paid by a company to someone who reports a security flaw.
- Chrome VRP: Google Chrome's Vulnerability Reward Program, the scheme that receives and pays for Chrome security reports.
- ChromeOS: Google's operating system for Chromebooks.
- Chromium: the open-source project whose code Chrome is built from.
- Crosh: the built-in developer shell on ChromeOS, packaged as a Chrome extension.
- Cross-origin: coming from a different site than the one being visited.
- CVE: a public catalogue number given to a known security flaw.
- Extension: a small add-on program that runs inside the browser.
- Guest user: a temporary ChromeOS session with limited access.
- Inappropriate implementation: a weakness category meaning the feature works as coded but the design or checks around it are wrong.
- Native messaging: a Chrome feature that lets an extension exchange messages with a separate program on the computer.
- Oracle: any signal that answers a question the attacker is not supposed to be able to ask, such as an error code revealing whether a file exists.
- Privileged API: an API reserved for trusted, built-in code rather than ordinary extensions.
- Redirect: when one address tells the browser to go to a different address instead.
- sec-fetch-site: a label the browser attaches to a request saying how the destination relates to the page that started it;
nonemeans the user started it directly. - Severity: a rating of how serious a flaw is, here medium.
- URL parameter: the part of an address after a question mark, used to hand small pieces of information to a page.
- Untrusted input: data that could have been chosen by someone with bad intentions, which should be checked before use.
- vmshell: a ChromeOS component that starts a virtual machine shell.