New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 887967 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature

Blocking:
issue 848761
issue 876553



Sign in to add a comment

Tracking bug for CORS-only feature-policy.

Project Member Reported by erikc...@chromium.org, Sep 21

Issue description

In the intent to implement thread for the new memory API getMemoryEstimateUASpecific, the concern was raised that returning *all* memory usage will also leak information about the size of cross-origin resources. This has security and privacy implications that make the current form factor unshippable.

https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/-xagQ4UJawY

The following workaround has been proposed: create a new feature policy which makes all resource requests [including default no-cors requests] into cors requests. Only websites that opt-in to the feature policy will have access to the new memory API.

Aside: Chrome currently loads cross-origin resources into the same process, and then tries very hard to make their contents/size inaccessible [e.g. canvas tainting]. A sufficiently determined adversary could use spectre to get their contents anyways. With this feature policy, Chrome would prevent the resources from ever being loaded in the same process.


 
Blocking: 848761
Cc: palmer@chromium.org nasko@chromium.org
Components: Blink>FeaturePolicy Blink>SecurityFeature
Labels: -Type-Bug Type-Feature
This seems quite promising to me. Feature Policy is our path for fixing long-standing design flaws in the web (eg. phasing out sync-xhr), and using 3p credentials to load an image into your page / address space certainly seems to fall into this bucket. 
Owner: erikc...@chromium.org
Status: Assigned (was: Untriaged)
Assigning to erikchen@ to get it out of the triage queue. ;)
Owner: rbyers@chromium.org
Cc: a...@google.com

Sign in to add a comment