You are here: Known Vulnerabilities in Mozilla Products (Firefox 1.0.5) > MFSA 2005-52
Mozilla Foundation Security Advisory 2005-52
Title: Same origin violation: frame calling top.focus()
Severity: Moderate
Reporter: Andreas Sandblad (Secunia)
Products: Firefox, Mozilla Suite
Fixed in: Firefox 1.0.5
Mozilla Suite 1.7.10
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. The attacker could steal cookies and passwords from the framed page, or take actions on behalf of a signed-in user. This attack would work only against sites that use frames in this manner.
Workaround
Upgrade to a version containing the fix. As a website author verify that a parent frame is from the expected site before calling methods on it.