New windows stealing focus -- and passwords?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
metacity (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: metacity
I'm resubmitting bug #51242 because I'm now convinced it has potential to be successfully exploited remotely to steal user passwords. It basically comes down to the fact that metacity gives by default (which is impossible to change for me) the focus to a newly open window. This can have many hazardous consequences (e.g. typing "rm -rf *" in the wrong window), but also security implications:
Consider Alice logging on to Bob's server with ssh. Malicious user Mallory is already logged on to the server, detects the login attempt (e.g. seeing sshd starting with ps) and automatically sends an IM message to Alice ("Hi Alice, how are you?"). There is a non-zero probability that Alice will not notice the new IM window instantly and accidently type his/her password right into Mallory's IM window, giving away her password.
I think there may also be a way for rogue websites to open unexpected popups. It could be even more effective in some way because the new window can be made very small (unnoticeable if not for the change of the focus) and send the typed text to the attacker directly without the user needing to press the "enter" key.
Changed in metacity: | |
status: | Unconfirmed → Needs Info |
We all survived for many years with window managers which allowed applications to steal focus, and most other window managers still work that way, so I don't consider this a serious vulnerability.
That said, the focus stealing prevention in metacity is working fine for me in both dapper and edgy.