Skip to content

Use the URL origin instead of hostname to identify subject websites #11029

Open
0 of 4 issues completed
Open
@rekmarks

Description

@rekmarks

Due to some error made in the days of yore, the extension originally used the URL hostname component to identify dapps / websites/ (In the language of the permission controller, "subjects" that we identify by a part of their URLs.) This was changed to the more appropriate origin component in MetaMask/metamask-extension#8717. This change never made it to mobile, creating a confusing and potentially dangerous discrepancy in permission enforcement between the two applications. The offending line in mobile is here, although this may have implications for the SDK as well. Note that this may require a state migration.

Sub-issues

Metadata

Metadata

Assignees

Labels

INVALID-ISSUE-TEMPLATEIssue's body doesn't match any issue template.Sev2-normalAn issue that may lead to users misunderstanding some limited risks they are takingpermission-systemNew UI components for Permission Systemsnaps-bug-fixSnaps bug fixteam-mobile-platformMobile Platform teamteam-sdkSDK teamtype-bugSomething isn't working

Type

Projects

Status

To be fixed

Status

To be triaged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions