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

Issue 2712913005: Don't allow GuestView JS objects to inherit global prototype. (Closed)

Created:
3 years, 10 months ago by wjmaclean
Modified:
3 years, 10 months ago
Reviewers:
lazyboy, lfg
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't allow GuestView JS objects to inherit global prototype. Allowing objects like GuestViewImpl and GuestViewContainer to inherit prototypes from the global JS object can allow arbitrary user code to be attached to these objects, and potentially executed. This CL prevents this by forcing the inherited __proto__ objects to be null. BUG=695476 Review-Url: https://codereview.chromium.org/2712913005 Cr-Commit-Position: refs/heads/master@{#452976} Committed: https://chromium.googlesource.com/chromium/src/+/5934185d281ff83961832317620da5468e7cf703

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M extensions/renderer/resources/guest_view/guest_view.js View 1 chunk +4 lines, -0 lines 1 comment Download
M extensions/renderer/resources/guest_view/guest_view_container.js View 1 chunk +4 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 16 (10 generated)
wjmaclean
lfg@ - ptal?
3 years, 10 months ago (2017-02-24 21:09:45 UTC) #4
lfg
I'm not comfortable reviewing this, lazyboy@ can you take a look?
3 years, 10 months ago (2017-02-24 21:11:20 UTC) #7
lazyboy
lgtm https://codereview.chromium.org/2712913005/diff/1/extensions/renderer/resources/guest_view/guest_view.js File extensions/renderer/resources/guest_view/guest_view.js (right): https://codereview.chromium.org/2712913005/diff/1/extensions/renderer/resources/guest_view/guest_view.js#newcode50 extensions/renderer/resources/guest_view/guest_view.js:50: GuestViewImpl.prototype.__proto__ = null; A better solution is to ...
3 years, 10 months ago (2017-02-24 22:27:57 UTC) #10
wjmaclean
On 2017/02/24 22:27:57, lazyboy wrote: > lgtm > > https://codereview.chromium.org/2712913005/diff/1/extensions/renderer/resources/guest_view/guest_view.js > File extensions/renderer/resources/guest_view/guest_view.js (right): > ...
3 years, 10 months ago (2017-02-24 22:47:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2712913005/1
3 years, 10 months ago (2017-02-24 22:48:52 UTC) #13
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 22:59:42 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/5934185d281ff83961832317620d...

Powered by Google App Engine
This is Rietveld 408576698