Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(973)

Issue 452013002: Kill renderers that register Service Workers from non-secure origins (Closed)

Created:
6 years, 4 months ago by dominicc (has gone to gerrit)
Modified:
6 years, 4 months ago
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, kinuko+serviceworker, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org, alecflett+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Kill renderers that register Service Workers from non-secure origins Service Workers are only available on "secure origins" per [1]. There's an API-level check in ServiceWorkerContainer::registerServiceWorker, unregisterServiceWorker. To defend against a compromised renderer circumventing the policy, this adds a check that the origin is secure in browser, where the registration takes place. [1] http://www.chromium.org/Home/chromium-security/prefer-secure-origins-for-powerful-new-features BUG=394213

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -11 lines) Patch
M content/browser/DEPS View 2 chunks +2 lines, -0 lines 1 comment Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 2 chunks +14 lines, -5 lines 3 comments Download
M content/browser/service_worker/service_worker_dispatcher_host_unittest.cc View 5 chunks +60 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
dominicc (has gone to gerrit)
PTAL creis: content/browser/DEPS falken: content/browser/service_worker This depends on https://codereview.chromium.org/452793002/ going first.
6 years, 4 months ago (2014-08-08 07:23:49 UTC) #1
falken
lgtm with nit https://codereview.chromium.org/452013002/diff/1/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/452013002/diff/1/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode41 content/browser/service_worker/service_worker_dispatcher_host.cc:41: blink::WebURL webUrl(url); We're in chromium, so ...
6 years, 4 months ago (2014-08-08 09:06:15 UTC) #2
Charlie Reis
[-creis1,+creis,+scottmg] Adding Scott to look at the DEPS change, since I think those were removed ...
6 years, 4 months ago (2014-08-08 16:26:35 UTC) #3
michaeln
https://codereview.chromium.org/452013002/diff/1/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/452013002/diff/1/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode42 content/browser/service_worker/service_worker_dispatcher_host.cc:42: blink::WebSecurityOrigin origin = blink::WebSecurityOrigin::create(webUrl); chromium /browser libs can't depend ...
6 years, 4 months ago (2014-08-08 20:15:33 UTC) #4
scottmg
On 2014/08/08 16:26:35, Charlie Reis wrote: > [-creis1,+creis,+scottmg] > > Adding Scott to look at ...
6 years, 4 months ago (2014-08-08 21:57:13 UTC) #5
dominicc (has gone to gerrit)
On 2014/08/08 21:57:13, scottmg wrote: > On 2014/08/08 16:26:35, Charlie Reis wrote: > > [-creis1,+creis,+scottmg] ...
6 years, 4 months ago (2014-08-11 02:29:29 UTC) #6
palmer
> Thanks for the archaeology. Was WebSecurityOrigin removed because it was unused? > Or was ...
6 years, 4 months ago (2014-08-11 18:24:04 UTC) #7
michaeln1
> What's the issue with that? Bloat, DLL loading, or ...? There is more than ...
6 years, 4 months ago (2014-08-11 20:03:47 UTC) #8
dominicc (has gone to gerrit)
6 years, 4 months ago (2014-08-15 06:51:07 UTC) #9
On 2014/08/11 18:24:04, Chromium Palmer wrote:
> > Thanks for the archaeology. Was WebSecurityOrigin removed because it was
> unused?
> > Or was it made to be unused and then removed?
> 
> WebSecurityOrigin is still present...
> 
> > > We don't want any blink code in the browser process because the
> > > browser/renderer
> > > are separated into 2 dlls on windows.
> > 
> > What's the issue with that? Bloat, DLL loading, or ...?
> 
> Hmm, we are going to have to duplicate the logic in Chromium code, then. I was
> hoping to avoid having to do that. Inevitable bugs...

I'll close this issue. Could someone opine on Issue 362214 about where this
should live in Chrome?

Powered by Google App Engine
This is Rietveld 408576698