Closed Bug 1880566 Opened 9 months ago Closed 7 months ago

websites can call moveTo as many times as they like, moving windows around randomly

Categories

(Core :: DOM: Core & HTML, defect, P3)

Desktop
Windows 11
defect

Tracking

()

RESOLVED DUPLICATE of bug 502561

People

(Reporter: planetman1125, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: reporter-external, Whiteboard: [reporter-external] [client-bounty-form] [verif?])

steps to reproduce

go to https://mehliug-git.github.io/cool-website/moveto.html

and then click the click me for start the test

then you will notice a message saying it's blocking pop us when in reatily out of full screen you can see the pop up from the website moving around the desktop making it a bit diffult to interact with your pc

Flags: sec-bounty?

if we see how the tor browser and the brave browser approach this for example brave allows this however sets a limit for how many times it can move around the desktop and eventually stops while chrome and firefox just keeps moving the hardcore approach of tor basically doesn't allow this

OS: Unspecified → Windows 11
Hardware: Unspecified → Desktop
Group: firefox-core-security → dom-core-security
Component: Security → DOM: Core & HTML
Keywords: dupeme
Product: Firefox → Core
Summary: websites can interact outside of the scope for firefox broswer (windows 11) within it's application processs → websites can call moveTo as many times as they like, moving windows around randomly

Firefox supports a pref that disallows this functionality entirely, and Tor is probably using that. I know I set that personally. Otherwise this is following the web spec though so it's hard to call a security vulnerability. We may or may not have an existing bug to change the default pref setting in which case this would be a duplicate, but otherwise this could be that bug.

The pref is dom.disable_window_move_resize

Blocks: eviltraps
Group: dom-core-security
Severity: -- → S3
Priority: -- → P3

I should clarify that the pref I mention in comment 3 prevents using moveTo at all and is a blunt instrument. Allowing the feature but limiting its use to a response to user activation would be a better approach.

Status: NEW → RESOLVED
Closed: 7 months ago
Duplicate of bug: 502561
Flags: sec-bounty? → sec-bounty-
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.