W3C home > Mailing lists > Public > public-webappsec@w3.org > June 2015

Re: Proposal: a "clear site data" API.

From: Mike West <mkwst@google.com>
Date: Sat, 13 Jun 2015 19:47:19 +0200
Message-ID: <CAKXHy=egC2ZL0_PcYc1TbW-o6cnbLvHYaKgECfUetpeQ67qadA@mail.gmail.com>
To: Alex Russell <slightlyoff@google.com>
Cc: Tanvi Vyas <tanvi@mozilla.com>, Brad Hill <hillbrad@gmail.com>, "public-webappsec@w3.org" <public-webappsec@w3.org>, Jonathan Kingston <jonathan@jooped.com>, Richard Barnes <rbarnes@mozilla.com>, Anne van Kesteren <annevk@annevk.nl>, Jake Archibald <jakearchibald@google.com>, Martin Thomson <martin.thomson@gmail.com>, Jonas Sicking <jonas@sicking.cc>
On Sat, Jun 13, 2015 at 6:37 PM, Alex Russell <slightlyoff@google.com>
wrote:
>
> That's why I'm focused on suspending/reloading. Suspending script
> execution keeps collision from happening. Hard reload after all are
> disconnected and storage is reset seems the only way to know a page is "
> clean ". Am i missing something?
>
This makes sense. The current neutering algorithm would take care of script
suspension (by setting "sandboxed scripts browsing context"
<https://html.spec.whatwg.org/multipage/browsers.html#sandboxed-scripts-browsing-context-flag>
and
other sandboxing flags), and adding a final "reload everything" step would
give us a better story with regard to being reactive to user input. Sounds
pretty reasonable to me.

My bigger worry is doing the suspension in an atomic way; "freeze the world
while we walk through everything" is appealing, but would have performance
impacts on other pages that might or might not be reasonable to mandate.
Walking through all the open browsing contexts, freezing them, and then
walking through any newly created browsing contexts (and then repeating?)
might be a way of mitigating the risk of super-persistent, self-healing XSS
that you're positing.

--
Mike West <mkwst@google.com>, @mikewest

Google Germany GmbH, Dienerstrasse 12, 80331 München,
Germany, Registergericht und -nummer: Hamburg, HRB 86891, Sitz der
Gesellschaft: Hamburg, Geschäftsführer: Graham Law, Christine Elizabeth
Flores
(Sorry; I'm legally required to add this exciting detail to emails. Bleh.)
Received on Saturday, 13 June 2015 17:48:09 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:54:13 UTC