Skip to content
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

Spec should mention clickjacking concerns #231

Open
jan-ivar opened this issue Sep 2, 2022 · 0 comments
Open

Spec should mention clickjacking concerns #231

jan-ivar opened this issue Sep 2, 2022 · 0 comments

Comments

@jan-ivar
Copy link
Member

jan-ivar commented Sep 2, 2022

Though it's unspecified, all browsers that support "window" and "browser" displaySurfaces focus the captured window and/or tab either immediately before or immediately after getDisplayMedia success (in Firefox it's after, but in Chrome it's had to tell because its prompt blurs the page).

If designed poorly, this may risk exposing end-users to clickjacking attacks. E.g. if the target window or tab is obscured and isn't focused immediately, then a malicious page might anticipate or guess its location before it is brought to front and lure users with a well-placed button.

Without challenging this being implementation defined, we should mention clickjacking concerns and give guidance.

Particularly, focusing after capture has started seems worse, as a malicious capturer can then look at the displaySurface to determine what is being captured and position their lure button more optimally to hit a certain target button.

In practice, today's browsers seem to be doing a good job here, switching focus so immediately that there's little time for users to click any misrepresentations, so this is more to make sure the spec is thorough and have something to point at in new issues like #190 where this initially came up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant