Skip to content

Conversation

@tommasini
Copy link
Contributor

@tommasini tommasini commented Dec 23, 2025

Description

Dapp connection implementaion robustness

Changelog

CHANGELOG entry:

Related issues

Fixes:

Manual testing steps

Feature: my feature name

  Scenario: user [verb for user action]
    Given [describe expected initial app state]

    When user [verb for user action]
    Then [describe expected outcome]

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Strengthens origin validation to prevent external dapps from using internal MetaMask origins.

  • Enforces INTERNAL_ORIGINS checks and throws rpcErrors.invalidParams in eth_sendTransaction, SDK deeplink processDappRpcRequest, SDK setupBridge, SDKConnectV2 handleConnectDeeplink, WC2 onSessionProposal, and WC2 session handleSendTransaction.
  • Normalizes use of origin/hostname where needed and persists origin metadata for UI as before.
  • Updates WC2 tests: stubs rejectSession to resolve, adds comprehensive origin-rejection cases (blocks plain metamask, allows valid URLs including subdomains and metamask.io).

Written by Cursor Bugbot for commit bd6a404. This will update automatically on new commits. Configure here.

@tommasini tommasini requested a review from a team as a code owner December 23, 2025 13:57
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot metamaskbot added the team-mobile-platform Mobile Platform team label Dec 23, 2025
@github-actions github-actions bot added size-M and removed size-S labels Dec 23, 2025
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
12.9% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@github-actions
Copy link
Contributor

🔍 Smart E2E Test Selection

  • Selected E2E tags: SmokeAccounts, SmokeCore, SmokeConfirmationsRedesigned, SmokeIdentity, SmokeNetworkAbstractions, SmokeNetworkExpansion, SmokeTrade, SmokeWalletPlatform, SmokeWalletUX, SmokeAssets, SmokeSwaps, SmokeStake, SmokeCard, SmokeNotifications, SmokeRewards, SmokePerps, SmokeRamps, SmokeMultiChainPermissions, SmokeAnalytics, SmokeMultiChainAPI, SmokePredictions
  • Risk Level: high
  • AI Confidence: %
click to see 🤖 AI reasoning details

Fallback: AI analysis did not complete successfully. Running all tests.

View GitHub Actions results

@tommasini tommasini merged commit 8240280 into release/7.61.4 Dec 23, 2025
56 of 58 checks passed
@tommasini tommasini deleted the chore/robust-implementation-dapp-connection branch December 23, 2025 16:31
@github-actions github-actions bot locked and limited conversation to collaborators Dec 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size-M team-mobile-platform Mobile Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants