total Failure of password protection while extracting seed phrase! increases attack surface area for scammers
The MetaMask browser extension UI could access a user's seed phrase without requiring password confirmation, breaking the expected security boundary between the UI and background process. Although not directly exploitable, this increased the risk if MetaMask were ever vulnerable to cross-site scripting.
- Triaged in 5 days
- Fixed in 36 days
- Paid in 10 days
- Disclosed after 20 months
Summary by the program
@bug_vs_me discovered that the MetaMask browser extension UI could access a user’s seed phrase without requiring password confirmation. This behavior violated expected security boundaries between the UI and background process, where the password prompt serves as a safeguard.
Although the issue was not directly exploitable, it posed significant risk if MetaMask were ever to become vulnerable to cross-site scripting.
Given the potential severity and the importance of hardening seed phrase protections, the MetaMask team awarded @bug_vs_me a one-time bonus of $3,500 in recognition of this finding.
The issue was resolved in MetaMask Extension version 11.7.1, which now enforces password confirmation before any UI code can access the wallet’s seed phrase.
What the report shows
The target is the MetaMask browser extension, specifically the boundary between its user interface and its background process. The password prompt that normally guards access to a user's seed phrase is meant to act as a safeguard between those two parts of the extension. The researcher, @bug_vs_me, found that the UI could reach the seed phrase without that password confirmation being required.
The report as published is a short summary written by the program, so it does not include the individual requests, payloads or reproduction steps that the researcher used. What it does state is the finding itself: UI code was able to access the wallet's seed phrase without the user confirming their password. The program describes this as a violation of the expected security boundary between the UI and the background process.
The program is explicit that the issue was not directly exploitable on its own. Its significance lay in what it would enable if MetaMask were ever to become vulnerable to cross-site scripting: an attacker who could run script in the extension's context would be able to reach the seed phrase without needing the password. In other words, the missing check widened the attack surface for scammers rather than providing a standalone path to the secret.
The finding was rated medium severity with a CVSS score of 6.1, classified as an authentication bypass using an alternate path or channel. The MetaMask team awarded a one-time bonus of $3,500 in recognition of the finding. The issue was resolved in MetaMask Extension version 11.7.1, which now enforces password confirmation before any UI code can access the wallet's seed phrase.
Root cause
The report frames this as a boundary problem between the UI and the background process: the safeguard existed, but the UI could reach the seed phrase without it. The report frames this as a boundary problem between the UI and the background process: the safeguard existed, but the architecture allowed it to be bypassed by an alternate channel.
Impact
The report is careful about impact, and so should any summary of it. There was no direct exploitation: the bug did not by itself let an attacker read the seed phrase. The risk was conditional. If the extension were ever affected by cross-site scripting, the missing password gate would pose significant risk to the seed phrase. The program also describes the finding as increasing the attack surface for scammers.
How this kind of bug works
Many browser extensions split their code into a UI layer (popups, pages, content scripts) and a privileged background layer that holds secrets and performs sensitive operations. The UI asks the background layer for data over a message-passing channel. A password prompt is a control implemented in that channel: the background layer is supposed to refuse sensitive requests until the user has re-authenticated.
This class of bug appears when the control is applied inconsistently. Typical causes are a second message handler that serves the same data without the check, a cached or pre-fetched copy of the secret that the UI can read directly, a state flag that the UI can set itself, or a check performed in the UI rather than in the privileged layer. Because the UI is the part most exposed to injected script, any sensitive data reachable from the UI without re-authentication is effectively unprotected once script execution is achieved.
The defences are architectural: keep secrets only in the privileged layer, enforce the password check in that layer on every code path that returns the secret, avoid caching the secret in UI-accessible storage, and treat the UI as untrusted when designing the message API.
How to test for it
- Map the message API. Enumerate every message type the UI can send to the background layer and every response that carries sensitive data. Extension source is usually readable after unpacking the installed package, so the handler names and payload shapes are visible.
- Identify the guarded path. Trigger the legitimate flow that asks for the password and observe, in the extension's developer tools, the message exchange that follows a correct password.
- Look for alternate paths. Search the background code for other handlers that return the same data, for storage reads of the secret from UI-accessible areas, and for any pre-fetch that happens before the password is entered.
- Replay without the check. From the UI context, send the same or a related message without completing the password step, or reload the UI and inspect whether the secret is already present in memory or storage. A positive result is the seed phrase or equivalent secret appearing without any password entry.
- Confirm the boundary. Verify that the data really is the secret and not a masked or partial representation, and that the access happens from the UI context rather than from a privileged page you were not meant to reach.
Common false positives: the secret being visible after the user has already authenticated in the same session, data that is a public address or account metadata rather than the seed phrase, and access that requires the user to have unlocked the wallet with their password at startup, which is a different control from re-authentication before export.
How it is fixed
The standard fix is to move enforcement into the privileged layer and apply it to every path. Concretely: require a fresh password confirmation in the background handler that returns the seed phrase, remove or gate any alternate handler that returns the same data, avoid caching the secret where UI code can read it, and clear any unlocked state after the operation. Version 11.7.1 of the extension is described as enforcing password confirmation before any UI code can access the seed phrase, which matches this pattern.
Hunting notes
This bug class tends to hide in extensions and desktop apps that separate a UI from a privileged core: password managers, wallets, and anything that stores credentials. Recon signals include a message-passing API with many handlers, sensitive data stored in extension storage, and UI code that references secret material directly. Reading the unpacked extension and diffing handler behaviour against the documented flow is usually faster than black-box probing.
Because the flaw is often not directly exploitable, impact has to be argued carefully. Show the exact path that returns the secret without the check, demonstrate that the check exists on the intended path, and explain the realistic combination (such as script injection into the UI) that turns the gap into compromise. Programs are more likely to accept a hardening report when the boundary violation is demonstrated precisely and the conditional nature of the risk is stated honestly rather than overstated.
What happened, in plain words
MetaMask is a browser extension that acts as a cryptocurrency wallet. It stores a seed phrase, which is a list of words that can restore the wallet and all the money in it. Anyone who has the seed phrase can take the funds, so the extension is supposed to ask for your password before showing it.
The researcher, @bug_vs_me, found that the part of the extension you see and click on (the user interface, or UI) could reach the seed phrase without that password being asked for. The password prompt is meant to be a safeguard between the UI and the background process, the hidden part of the extension that holds the secrets. The report describes the finding as a violation of that expected boundary.
The report as published is a short summary written by the MetaMask team, so it does not include the individual requests, payloads or reproduction steps the researcher used. What it does state is the finding itself: UI code was able to access the wallet's seed phrase without the user confirming their password.
The team is clear that the issue was not directly exploitable on its own. It did not by itself let an attacker read the seed phrase. Its importance lay in what it would allow if MetaMask were ever to become vulnerable to cross-site scripting, a class of bug where an attacker manages to run their own code inside a page or extension. If that happened, the missing password gate would pose significant risk to the seed phrase. The team also describes the finding as increasing the attack surface for scammers.
The finding was rated medium severity with a CVSS score of 6.1, classified as an authentication bypass using an alternate path or channel. The MetaMask team awarded a one-time bonus of $3,500 in recognition of the finding. The issue was resolved in MetaMask Extension version 11.7.1, which now enforces password confirmation before any UI code can access the wallet's seed phrase.
In general, how this kind of bug works
Many browser extensions split their code into two layers. The UI layer is what you see: popups, pages, buttons. The background layer is privileged: it holds secrets and performs sensitive operations. The UI asks the background layer for data by sending it messages, like a customer asking a clerk behind a counter for a document. A password prompt is a control in that channel: the background layer is supposed to refuse sensitive requests until the user has re-entered their password.
This class of bug appears when that control is applied inconsistently. Typical causes are:
- a second message handler that serves the same data without the check;
- a cached or pre-fetched copy of the secret that the UI can read directly;
- a state flag that the UI can set itself;
- a check performed in the UI rather than in the privileged layer.
Because the UI is the part most exposed to injected code, any sensitive data reachable from the UI without re-authentication is effectively unprotected once an attacker can run code there. The defences are architectural: keep secrets only in the privileged layer, enforce the password check in that layer on every code path that returns the secret, avoid caching the secret in UI-accessible storage, and treat the UI as untrusted when designing the message API.
How to test for it
- Map the message API. List every message type the UI can send to the background layer and every response that carries sensitive data. Extension source is usually readable after unpacking the installed package, so handler names and payload shapes are visible.
- Identify the guarded path. Trigger the legitimate flow that asks for the password and watch, in the extension's developer tools, the message exchange that follows a correct password.
- Look for alternate paths. Search the background code for other handlers that return the same data, for storage reads of the secret from UI-accessible areas, and for any pre-fetch that happens before the password is entered.
- Replay without the check. From the UI context, send the same or a related message without completing the password step, or reload the UI and inspect whether the secret is already present in memory or storage. A positive result is the seed phrase or equivalent secret appearing without any password entry.
- Confirm the boundary. Verify that the data really is the secret and not a masked or partial representation, and that the access happens from the UI context rather than from a privileged page you were not meant to reach.
Common false positives: the secret being visible after the user has already authenticated in the same session, data that is a public address or account metadata rather than the seed phrase, and access that requires the user to have unlocked the wallet with their password at startup, which is a different control from re-authentication before export.
How it is fixed
The standard fix is to move enforcement into the privileged layer and apply it to every path. Concretely: require a fresh password confirmation in the background handler that returns the seed phrase, remove or gate any alternate handler that returns the same data, avoid caching the secret where UI code can read it, and clear any unlocked state after the operation. Version 11.7.1 of the extension is described as enforcing password confirmation before any UI code can access the seed phrase, which matches this pattern.
Hunting notes
This bug class tends to hide in extensions and desktop apps that separate a UI from a privileged core: password managers, wallets, and anything that stores credentials. Recon signals include a message-passing API with many handlers, sensitive data stored in extension storage, and UI code that references secret material directly. Reading the unpacked extension and comparing handler behaviour against the documented flow is usually faster than black-box probing.
Because the flaw is often not directly exploitable, impact has to be argued carefully. Show the exact path that returns the secret without the check, demonstrate that the check exists on the intended path, and explain the realistic combination (such as script injection into the UI) that turns the gap into compromise. Programs are more likely to accept a hardening report when the boundary violation is demonstrated precisely and the conditional nature of the risk is stated honestly rather than overstated.
Glossary
- Seed phrase: a list of words that can restore a cryptocurrency wallet and its funds; anyone who has it can take the money.
- Browser extension: a small program added to a browser that can add features and access some browser data.
- User interface (UI): the visible part of a program that you see and click on.
- Background process: the hidden part of an extension that holds secrets and performs sensitive operations.
- Message passing: how the UI layer asks the background layer for data, by sending messages.
- Cross-site scripting (XSS): a bug class where an attacker manages to run their own code inside a page or extension.
- Attack surface: the total set of ways an attacker could try to get in.
- Authentication bypass: getting past a login or password check without completing it properly.
- Alternate path or channel: a second route to the same data that skips the intended check.
- CVSS: a standard scoring system for rating the severity of a security flaw.
- Hardening: making a system more resistant to attack even when no direct exploit is known.
- Exploitable: able to be used by an attacker to cause harm on its own.
- False positive: a test result that looks like a bug but is not one.
- Re-authentication: asking the user to enter their password again before a sensitive action.
- Black-box probing: testing a system only from the outside, without reading its code.