Harden website access, wallet authorization, and transaction confirmation - #1561
Open
KillariDev wants to merge 5 commits into
Open
KillariDev wants to merge 5 commits into
KillariDev wants to merge 5 commits into
Conversation
# Conflicts: # app/ts/background/accessManagement.ts # app/ts/background/popupMessageHandlers.ts # app/ts/background/providerMessageHandlers.ts # app/ts/background/settings.ts # app/ts/background/windows/confirmTransaction.ts # app/ts/types/JsonRpc-types.ts # app/ts/utils/contentScriptsUpdating.ts # test/tests/backgroundEthAccounts.test.ts # test/tests/contentScriptsUpdating.test.ts # test/tests/terminalReplyDelivery.suite.ts
- Remove listeners using callbacks from the previously opened dialog - Include quarantine acceptance in Safe confirmation scenarios
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.
Summary
This PR closes trust-boundary gaps across website permissions, wallet signing, and transaction forwarding so the origin, account, and transaction approved by the user are the ones the extension ultimately authorizes and sends.
Secure interception and simulation for
wallet_sendCallsremains tracked separately in #1560.Why
Previously, several values could change or become ambiguous after the user made a security-sensitive decision:
This PR makes those boundaries explicit and fails closed when a request cannot be preserved faithfully.
Website access and migration
Wallet and signing authorization
Transaction confirmation
Compatibility
Existing state is preserved wherever it can be interpreted without weakening security:
Older releases do not understand the new v1.5 export format, and requests that depended on mismatched or discarded fields now fail closed by design.
Validation
bun run test— 1,232 passed, 0 failed.bun run setup-chrome— passed.bun run typecheck— passed.bun run lint— passed.bun run test:chrome-communication— passed against the built Manifest V3 extension.git diff --check— passed.