1Password CLI Vulnerability
The 1Password CLI leaves the vault unlocked after the first prompt, so any subprocess or malicious package can read all vault items without further authentication. An attacker could exfiltrate every secret the user has access to.
codeberg.org
Published on codeberg.org
manchicken/1password-cli-vuln-disclosure
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker who can run code on the developer's machine could dump every vault the user has access to, not just the secrets intended for the CLI.
What the attacker needed
1Password CLI installed and vault unlocked; attacker can run code on the machine; victim installs a malicious package
The fix
1Password should allow limiting CLI access to specific vaults or items, prompt per vault or item, and prompt for each process individually.
How it was found
- Install the 1Password CLI and use op to protect secrets.
- Install a malicious npm package that has a post-install script.
- The script uses the op NPM module to enumerate and exfiltrate secrets from every accessible vault.
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 write-up has not been written yet. The Original tab links to the source.
The 1Password command-line tool asks for your password once, then keeps your vault open for any program you run afterwards. So if you install a bad package, it can quietly read all your passwords without asking again.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.