-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External color profiles and CSP #516
Comments
cc @tabatkins |
While I think we probably need to start over with regard to exfiltration mitigation to have anything like a justifiable system, it seems reasonable that CSP would need to deal with these resources in some way. |
|I think it makes sense that color profiles would be equivalent to styles in terms of CSP, as color profiles are in a way "extensions" to style, a kind of like a style import. |
Yes, color profiles fetched as an external resource only affect colors in the stylesheets that linked to and use them. They are separate from, and don't interact with, profiles embeded in raster images, for example. ICC profiles do not contain executable code (in V2 and v4) and contain a very limited type of code in v5 (the calculator element, which executes a stack-based computation that lacks looping) For more details, see: [css-color-4] Security: handling of color-profiles |
I read
I read this and I'm missing a data point: can internal values from the color profile be detected (using a script, getComputedStyle or so) by the caller? If so, its CORS should be "anonymous" (same as fonts/shapes, as they affect layout which is JS-detectable), and if not, it should be "opaque" (same as background images). |
We agreed a while ago to not fetch new resource types without CORS. |
Ok, from the above, I think the CSP story is pretty clear for v2 and v4 profiles: they can be controlled by That said, I'm a little scared about the risk of code execution in v5. That possibility feels different in kind, but I'm a bit confused about the capability: w3c/csswg-drafts#5552 (comment) closed out that review issue, noting that "Okay so for the security & privacy appendix I added a note that ICC profiles are downloaded on demand and do not contain executable code." Is that no longer the case? /cc @svgeesus |
In whatwg/fetch#1324 @noamr reminded me that external color profiles are (about to be?) a thing. I'm not sure what this means for CSP.
Fonts were apparently big enough to get their own
font-src
, but is that also true for color profiles?Should we have a new
x-src
that covers non-script/non-style things?Or have we completely stopped caring about this and will just let
default-src
handle it?The text was updated successfully, but these errors were encountered: