Mozilla Foundation Security Advisory 2005-52
Title: Same origin violation: frame calling top.focus()
Severity: High
Reporter: Secunia.com
Products: Firefox, Mozilla Suite
Fixed in: Firefox 1.0.5
Mozilla Suite 1.7.9
Description
A child frame can call top.focus() even if the framing page comes from a different
origin and has overridden the focus() routine. The call is made in the context
of the child frame. The attacker would look for a target site with a framed
page that makes this call but doesn't verify that its parent comes from the same
site. By framing this page the attacker could steal cookies and passwords, or
take actions on the site on behalf of a signed-in user.
Workaround
Disable Javascript. As a website author verify that a parent frame is
from the expected site before calling methods on it.
References
http://secunia.com/advisories/15549/
https://bugzilla.mozilla.org/show_bug.cgi?id=296830