Skip to content

Commit 82a4356

Browse files
schenney-chromiumsvgeesus
authored andcommitted
[Mediaqueries] Add more fingerprinting information.
1 parent 8d636cc commit 82a4356

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

mediaqueries-5/Overview.bs

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -151,17 +151,24 @@ Units</h3>
151151
<h3 id='mq-prefers-security'>
152152
Prefers-* Media Features Security and Privacy</h3>
153153

154-
<div class=issue>
155-
Information about a user can be used as an active fingerprinting vector.
156-
Analysis of impact pending, more information to be provided before spec
157-
is published.
154+
Media features that reflect operating system preferences are a fingerprinting risk
155+
because difference users have different preferences and these are observable to origins.
158156

159-
User agents and developers implementing this
160-
specification need to be aware of this vector and take it
161-
into consideration when deciding whether to use the feature.
162-
Specifically `prefers-reduced-motion`, `prefers-color-scheme`, `prefers-reduced-transparency` and
163-
`prefers-reduced-data` are currently of concern for exploitation.
164-
</div>
157+
* The 'prefers-reduced-data' media feature may be correlated with low income and limited data.
158+
* The `prefers-reduced-motion`, `prefers-color-scheme`, `prefers-reduced-transparency` and
159+
`forced-colors` reflect affordances for a range of special needs,
160+
161+
Properties dependent on one of the above media queries
162+
may be read by embedded iframe content using several methods:
163+
164+
* Colors and other property values may be directly accessed through computed style.
165+
* Layout affecting properties influence lengths, positions and sizes available to script.
166+
* Images may be rendered into a canvas element and pixels value read by script.
167+
168+
Authors should use these media features only when the benefit is clear,
169+
particularly when embedded third party content.
170+
Combining these queries increases the fingerprinting risk,
171+
allowing users to be sorted into smaller buckets.
165172

166173
<!--
167174
██ ██ ███████
@@ -3692,9 +3699,8 @@ Appendix B: Privacy Considerations</h2>
36923699

36933700
Issue: this section is <a href="https://github.com/w3c/csswg-drafts/issues?q=is%3Aopen+is%3Aissue+label%3Amediaqueries-5+label%3Aprivacy-tracker">incomplete</a>
36943701

3695-
The 'prefers-reduced-data' media feature
3696-
may be an undesired source of fingerprinting,
3697-
with a bias towards low income with limited data.
3702+
<a href="#mq-prefers-security">Section 1.4</a> discusses fingerprinting via
3703+
the 'prefers-*' and 'forced-colors' media features.
36983704

36993705
The {{PreferenceManager}} object allows querying some user-preference [=media features=]. This
37003706
is not a privacy leak, as that information is already trivially
@@ -3745,6 +3751,7 @@ the following changes and additions were made to this module since the
37453751
* Establish a normative reference for [[Display-P3]]
37463752
* Disallow use of ''layer'' as a media type, rather than merely treat it as an unknown one, for compatibility with [=cascade layers=].
37473753
* Clarify intent of 'prefers-reduced-motion'
3754+
* Added further discussion of fingerprinting vectors
37483755

37493756
<h3 id="changes-since-2020-07-31"
37503757
oldids="video-width, descdef-media-video-width, video-height, descdef-media-video-height, video-resolution, descdef-media-video-resolution">
@@ -3908,6 +3915,7 @@ Comments from
39083915
Sigurd Lerstad,
39093916
Simon Kissane,
39103917
Simon Pieters,
3918+
Stephen Chenney,
39113919
Steven Pemberton,
39123920
Susan Lesch,
39133921
Tantek Çelik,

0 commit comments

Comments
 (0)