Closed Bug 2024980 Opened 8 months ago Closed 7 months ago

Check for restricted domains in ExtensionCanClaimRpId

Categories

(Core :: DOM: Web Authentication, defect, P2)

defect

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox150 --- fixed
firefox151 --- fixed

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.

Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P2
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch

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?
Attachment #9569000 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: