Closed
Bug 2024980
Opened 8 months ago
Closed 7 months ago
Check for restricted domains in ExtensionCanClaimRpId
Categories
(Core :: DOM: Web Authentication, defect, P2)
Core
DOM: Web Authentication
Tracking
()
RESOLVED
FIXED
151 Branch
People
(Reporter: robwu, Assigned: jschanck)
References
Details
Attachments
(2 external files)
The justification that enables extensions to claim RP IDs based on host permissions is described in https://phabricator.services.mozilla.com/D269076#inline-1566432
The initial implementation only checks host permissions, without the other parts of WebExtensionPolicy::CanAccessURI. Let's implement these checks, until there is a good reason for why we should not do so.
| Assignee | ||
Updated•8 months ago
|
Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P2
| Assignee | ||
Comment 1•7 months ago
|
||
Pushed by jschanck@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/1fa97bea14c6
https://hg.mozilla.org/integration/autoland/rev/8b6ce646cf72
check for restricted domains in ExtensionCanClaimRpId. r=robwu
Comment 3•7 months ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
status-firefox151:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
Comment 4•7 months ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined/Reason for urgency: An extension is not allowed to inject a content script on a domain that is listed in
ExtensionPolicyService::RestrictedDomains(), even if that extension has host permissions for that domain. Bug 1956484 enables an extension to create / assert WebAuthn credentials for domains that match the extension's host permissions. The feature does not check the restricted domain list. This does not enable credential theft or MITM attacks, and it is not a security risk per se. However, enterprise administrators that have manually configured the restricted domain list may genuinely be surprised that extensions can use WebAuthn on their domains.
This patch restricts extensions' use of WebAuthn to avoid this confusion.
- Code covered by automated testing?: yes
- Fix verified in Nightly?: yes
- Needs manual QE testing?: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: low
- Explanation of risk level: This changes the behavior of a feature that has not yet made it to release. Chromium has recently made the same change.
- String changes made/needed?: none
- Is Android affected?: yes
Attachment #9569000 -
Flags: approval-mozilla-beta?
| Assignee | ||
Comment 5•7 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D293392
Updated•7 months ago
|
Attachment #9569000 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Updated•7 months ago
|
status-firefox150:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•