Web wallet: a second wallet cannot have its own passphrase — setup rejects any passphrase that differs from the active wallet's
Report
In the web wallet, creating or importing a second wallet always fails with "incorrect passphrase" when the new wallet is given a passphrase different from the currently active wallet's passphrase. Every wallet in a vault is forced to share the active wallet's passphrase, even though the vault itself supports per-wallet passphrases (each entry carries its own salt and iterations, and the manage-wallets reveal path decrypts each entry with the passphrase the user types for that entry).
Code evidence — web/assets/wallet.js, onSetupSubmit. This line runs for every setup submit (create, import, and derive-next-account) whenever a vault already exists, before any wallet is built:
if (state.vault?.wallets.length) await decryptSeed(pass1, activeWallet());
pass1 is the passphrase typed in the setup form for the NEW wallet; activeWallet() is the existing wallet. decryptSeed throws "incorrect passphrase" unless the new passphrase decrypts the old wallet, so the outer catch shows that error and persistNewWallet is never reached. The check therefore does not verify the user knows the current passphrase — it requires the new passphrase to equal the active wallet's passphrase.
That the vault design supports different passphrases per wallet is visible in the same codebase:
- web/assets/vault.js, buildWalletEntry(passphrase, ...) encrypts each entry under the passphrase it is given, with its own salt/IV/iterations.
- web/assets/wallets.js, onRevealSubmit decrypts the selected entry with the passphrase typed for that entry (decryptSeed(pass, w)), not with a vault-wide passphrase.
Reproduction:
- In the web wallet, create wallet A with passphrase correct-horse-1 and unlock it.
- Click "+ add" (or "import") and fill the form for wallet B with a different passphrase, e.g. correct-horse-2, with matching confirmation.
- Submit. Expected: wallet B is created, encrypted under its own passphrase. Observed: the form reports "incorrect passphrase" and no wallet is created. Retrying with wallet A's passphrase succeeds. The error message misleads the user into thinking they mistyped, when in fact a different passphrase is simply not permitted.
Impact: functional defect in wallet management: users cannot separate passphrases per wallet, and the failure is reported with a misleading error. No funds are at risk and the workaround (reuse the same passphrase) exists, so this is Minor. Repo: xeprotocol/xe, HEAD 8cc209d (testnet-0006 build).
De-duplication: searched the public desk title corpus (2,718 titles) for "second wallet", "add wallet", "different passphrase", "vault" + "passphrase", and wallet create/add/import/second/multiple — no match. Closest tickets read in full and different: XE-11460 (revealed backup stays in the DOM after in-page navigation), XE-8073 (vault passphrase lingers in setup/migrate input DOM after Lock), XE-0413 / XE-13400 / XE-14551 / XE-5824 (plaintext passphrase cached in sessionStorage), XE-6395 / XE-10630 (wallet deletion needs no passphrase). None concerns passphrase reuse being enforced at wallet creation.
Payout XE address: db4043dea0d12c476c2644a3df09c4ce51fa1ce04617723405916ade3fa3305f
Thread
Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the first verifiable submission, so this one closes as a duplicate. If you believe it is a different bug, file a new report that links https://bounty.xe.network/XE-16716 and says what differs; it is read like any other.