Repository navigation
Security: close the audit findings (4 commits) - #4
Open
Avithegod2010 wants to merge 4 commits into
Open
Avithegod2010 wants to merge 4 commits into
Avithegod2010 wants to merge 4 commits into
Conversation
Both verifier paths used ByteArray.contentEquals, which short-circuits on the first differing byte. MessageDigest.isEqual removes that leak. This does NOT replace the fast SHA-256 verifier with Argon2id — that needs a KDF-version migration for existing vaults and is still open.
Dependency updates were entirely manual, so patched releases sat unadopted (e.g. Next 16.1.3, vite 7.3.2). Groups minor/patch into one weekly PR.
Nothing stopped a committed key or a known-vulnerable pin from coming back. This runs gitleaks 8.30.1 over every commit (pinned by release URL, not a movable action tag) on every push and PR.
…collection locks (M2) The decoy and hidden lock screens probed the real vault with tryUnlockQuiet(), and the per-collection gate used verifyPasswordQuiet(). Both were written to leave the failed-attempt counter alone, so once an attacker knew the duress password the decoy screen was an unlimited, unpaced oracle against the real password: no counter, no backoff, no erase-after-N-attempts. The coercer scenario the counter exists for was the one path that bypassed it. Every password path now moves the committed counter through one bumpAttempt() (guarded by a mutex so two concurrent guesses cannot lose an increment) and shares applyFailurePolicy(), which calls onWipeRequired() at the threshold and keeps the progressive backoff. On the decoy/hidden screens the guess is offered to the active space first and charged to the real vault only when every space refused it, so normal use of the decoy never burns real-vault attempts; a correct password clears the counter it just proved. The wipe threshold default is still 0 (off): making erasure the default destroys user data and needs a product decision.
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.
Closes the findings from the full-history security audit of 2026-11-21.
Commits:
Per-finding detail lives in the local audit workspace (
E:/Dev/repo-audit/reports/locker.md). Every fix is its own commit, so any one of them can be reverted on its own.