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

Issue 760513003: Only allow insecure object-src directives for whitelisted mime types (Closed)

Created:
6 years ago by raymes
Modified:
6 years ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@extensions-csp3
Project:
chromium
Visibility:
Public.

Description

Only allow insecure object-src directives for whitelisted mime types This CL only allows insecure object-src directives in the CSP of an extension if a set of whitelisted mime types are also specified in the CSP. This is to prevent plugins that aren't fully sandboxed from loading up arbitrary URLs in an extension and maliciously gaining control of the extension. The set of plugins that are whitelisted should be those that are fully sandboxed. Committed: https://crrev.com/3c02e4d34f7be4ea737688a1a011efb820a4ddd2 Cr-Commit-Position: refs/heads/master@{#305761}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -7 lines) Patch
M extensions/common/csp_validator.h View 1 2 3 5 1 chunk +3 lines, -1 line 0 comments Download
M extensions/common/csp_validator.cc View 1 2 3 4 5 6 7 5 chunks +66 lines, -1 line 0 comments Download
M extensions/common/csp_validator_unittest.cc View 1 2 3 5 1 chunk +20 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
raymes
6 years ago (2014-11-25 13:34:43 UTC) #2
Mike West
Conceptually, this LGTM. Thanks for taking another pass. The details look reasonable, but please get ...
6 years ago (2014-11-25 13:42:37 UTC) #4
raymes
https://codereview.chromium.org/760513003/diff/80001/extensions/common/csp_validator.cc File extensions/common/csp_validator.cc (right): https://codereview.chromium.org/760513003/diff/80001/extensions/common/csp_validator.cc#newcode214 extensions/common/csp_validator.cc:214: only_sandboxed_plugins_specified = false; On 2014/11/25 13:42:36, Mike West wrote: ...
6 years ago (2014-11-25 13:51:05 UTC) #5
Mike West
+jschuh, who loves plugins.
6 years ago (2014-11-25 13:52:16 UTC) #7
not at google - send to devlin
lgtm https://codereview.chromium.org/760513003/diff/120001/extensions/common/csp_validator.cc File extensions/common/csp_validator.cc (right): https://codereview.chromium.org/760513003/diff/120001/extensions/common/csp_validator.cc#newcode211 extensions/common/csp_validator.cc:211: for (size_t i = 0; i < plugin_types.size(); ...
6 years ago (2014-11-25 17:08:46 UTC) #8
raymes
Thanks all. I also added another mime type for the internal pdf plugin which is ...
6 years ago (2014-11-25 22:31:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/760513003/140001
6 years ago (2014-11-26 01:06:20 UTC) #11
commit-bot: I haz the power
Committed patchset #8 (id:140001)
6 years ago (2014-11-26 02:28:04 UTC) #12
commit-bot: I haz the power
6 years ago (2014-11-26 02:29:18 UTC) #13
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/3c02e4d34f7be4ea737688a1a011efb820a4ddd2
Cr-Commit-Position: refs/heads/master@{#305761}

Powered by Google App Engine
This is Rietveld 408576698