W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2011

[whatwg] AppCache feature request: An https manifest should be able to list resources from other https origins.

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 7 Feb 2011 23:31:10 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1102072329300.28618@ps20323.dreamhostps.com>
On Mon, 7 Feb 2011, Jonas Sicking wrote:
> On Mon, Jan 31, 2011 at 6:27 PM, Michael Nordman <michaeln at google.com> wrote:
> > But... the risk you outline is not possible...
> >
> >> However, with the modification you are proposing, an attacker site
> >> could forever pin this page the users app-cache. This means that if
> >> there is a security bug in the page, the attacker site could exploit
> >> that security problem forever since any javascript in the page will
> >> continue to run in the security context of bunnies.com. So all of a
> >> sudden the CORS headers that the site added has now had a severe
> >> security impact.
> >
> > The bunnies.com page stored in the attacker's appcache will never be
> > loaded into the context of bunnies.com. There are provisions in the
> > the appcache system to prevent that. Those provisions guard against a
> > this type of attack via HTTP.
> 
> Your proposal means that we forever lock that constraint on the 
> appcache. That is not currently the case. I.e. we'll never be able to 
> say "open an iframe using the resource which is available in my 
> appcache" or "open this cross-site worker using the resource available 
> in my appcache".
> 
> Or at least we won't ever be able to do that for cross-site resources.

That's intentional. We don't want it to be possible to get a cache of a 
third-party page vulnerable to some sort of XSS attack and then to be able 
to load that page with the credentials of its origin, since it would make 
it possible for hostile sites to lock in a vulnerability and keep using 
it even after the site had fixed the problem.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 7 February 2011 15:31:10 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:03 UTC