Skip to content

Commit 945e37c

Browse files
committed
[css-position-3] Add a Privacy and Security Considerations section.
1 parent cc84557 commit 945e37c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

css-position-3/Overview.bs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,3 +1573,23 @@ Acknowledgments</h2>
15731573
<ul>
15741574
<li>Rewrote the whole spec for editorial clarity, technical precision, and compatibility with [[CSS-ALIGN-3]], [[CSS-WRITING-MODES-3]], [[CSS-BREAK-3]], and [[CSS-DISPLAY-3]].
15751575
</ul>
1576+
1577+
<h2 class=no-num id=priv-sec>
1578+
Privacy and Security Considerations</h2>
1579+
1580+
This specification introduces no new privacy considerations.
1581+
1582+
If an attacker is able to inject arbitrary CSS,
1583+
positioned layout can make it easier to position elements the attacker has control of
1584+
over arbitrary other elements of the page,
1585+
potentially tricking users of the page.
1586+
(There are many routes to this attack: negative 'margin', 'transform', etc.
1587+
Don't let people apply arbitrary CSS to bits of your page.)
1588+
1589+
''position: fixed'' can allow a page to emulate modal dialogs,
1590+
potentially tricking a user into thinking they're interacting with the user agent
1591+
and entering in sensitive information that they page can then capture.
1592+
User agents must ensure that their native dialogs are positioned
1593+
in ways that the page cannot emulate;
1594+
in particular,
1595+
that at least some of the dialog is outside the "poisoned pixels" that web content can paint to.

0 commit comments

Comments
 (0)