security: fix high-severity findings from audit (closes #6) #7
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/AutistMask#7
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/high-severity-security"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes from the security review (issue #6):
nextApprovalId++withcrypto.randomUUID()sender.origin/sender.tab.urlinstead of trustingmsg.originfrom content scriptmake checkpasses (afteryarn install).Closes #6
Code Review
LGTM with one flag:
✅ No RULES.md / linter / Makefile changes
✅
crypto.randomUUID()— correct fix for predictable approval IDs✅ Origin derivation from
sender.origin/sender.tab.url— proper defense against content script origin spoofing✅ Popup sender validation using
runtime.getURL()— prevents external pages from sending approval responses✅ eth_sign warning — appropriate, this is a dangerous method
✅ Secret zeroing — best-effort is the right approach for JS
✅
make checkpasses⚠️ Flag: Password minimum changed 8→12 (commits in addWallet.js and importKey.js). RULES.md does not specify a minimum. This is a security policy decision for sneak to approve or revert.