RE: Seamless transclusion of complex replaced elements

Though I can't review the bug at this time, Boris does sum up the general security principle below. This is further exacerbated by the fact that disallowing basic access to the iframe is not enough. The iframe, if it auto-sizes to content, could change the layout of the parent document and the layout changes being detected in the malicious document could be enough to then imply information about the iframe and allow information disclosure. This is the case of a malicious page hosting a vulnerable page in an iframe (there are other scenarios, but far more obscure).

Justin Rogers [MSFT]

-----Original Message-----
From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of Boris Zbarsky
Sent: Wednesday, February 20, 2008 8:15 AM
To: Brad Kemper
Cc: www-style@w3.org
Subject: Re: Seamless transclusion of complex replaced elements


Brad Kemper wrote:
> Couldn't that be solved by not giving the document in the IFRAME
> JavaScript access to things like the document's or body's
> clientHeight, offsetHeight, scrollTop, scrollHeight, etc.

It's the other way around.  A document including a document from a different
domain in an iframe (or object, or whatever) must not be able to extract any
information from that child document.  That includes information like "preferred
height".

That's discussed at length in the Mozilla bug I linked to, for what it's worth.

-Boris

Received on Wednesday, 20 February 2008 18:41:34 UTC