Repository navigation
Conversation
jonathunne
requested changes
Oct 23, 2026
jonathunne
left a comment
Contributor
There was a problem hiding this comment.
Looks good! One remaining gap: for a wallet that's already unlocked, the passphrase is checked against the seed file on disk, not against the seed the live session holds. A process running as the same user can swap in its own seed file, unlock with its own passphrase and ttl: 0, then put the original back, and the real session never expires.
I'd suggest storing a hash of the seed at first unlock and refusing later unlocks that don't match.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The daemon verified the passphrase only when opening a wallet from cold. On the already-unlocked path it reset the session timer and returned
okwithout checking, sounlock_walletis now verified on every call. It also rejects attlit cannot honour, in the CLI parser and in the daemon.Motivation and Context
Any socket peer could extend or shorten a live session with a wrong passphrase, including setting it to never expire. The CLI masked this by decrypting locally before contacting the daemon, but scripts and raw socket peers get no such check
Related Issue
Closes #
Type of change