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

Issue 1775543002: Validate params.origin in the browser process at commit time. (Closed)

Created:
4 years, 9 months ago by nasko
Modified:
4 years, 9 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Validate params.origin in the browser process at commit time. The renderer process sends both an URL and an origin in its commit IPC and they should match. This CL adds such validation at commit time. BUG=559324 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/402cc291d225747dca8594602f59e139b1684d57 Cr-Commit-Position: refs/heads/master@{#380585}

Patch Set 1 #

Patch Set 2 : Quite a bit of refactoring and a basic browser test. #

Total comments: 24

Patch Set 3 : Fixes based on Charlie's review. #

Total comments: 20

Patch Set 4 : Addressing another round of comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -0 lines) Patch
M content/browser/bad_message.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 chunks +47 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 1 chunk +61 lines, -0 lines 0 comments Download
M content/browser/security_exploit_browsertest.cc View 1 2 2 chunks +57 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (12 generated)
nasko
Hey Charlie, Can you poke at this CL for me? It lacks more tests, but ...
4 years, 9 months ago (2016-03-09 22:10:38 UTC) #3
Charlie Reis
Cool! Looks pretty close, with a few questions below. https://codereview.chromium.org/1775543002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1775543002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc#newcode991 content/browser/frame_host/render_frame_host_impl.cc:991: ...
4 years, 9 months ago (2016-03-10 00:23:04 UTC) #4
nasko
https://codereview.chromium.org/1775543002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1775543002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc#newcode991 content/browser/frame_host/render_frame_host_impl.cc:991: if (!CanCommitOrigin(validated_params)) { On 2016/03/10 00:23:03, Charlie Reis wrote: ...
4 years, 9 months ago (2016-03-10 20:08:22 UTC) #5
Charlie Reis
Looking nicer! A few additional thoughts below. https://codereview.chromium.org/1775543002/diff/40001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1775543002/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode1966 content/browser/frame_host/render_frame_host_impl.cc:1966: // Non-unique ...
4 years, 9 months ago (2016-03-10 22:28:02 UTC) #6
nasko
https://codereview.chromium.org/1775543002/diff/40001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1775543002/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode1966 content/browser/frame_host/render_frame_host_impl.cc:1966: // Non-unique origin must be a valid URL, which ...
4 years, 9 months ago (2016-03-11 00:19:38 UTC) #7
Charlie Reis
Thanks! LGTM. https://codereview.chromium.org/1775543002/diff/40001/content/browser/frame_host/render_frame_host_manager_unittest.cc File content/browser/frame_host/render_frame_host_manager_unittest.cc (right): https://codereview.chromium.org/1775543002/diff/40001/content/browser/frame_host/render_frame_host_manager_unittest.cc#newcode2982 content/browser/frame_host/render_frame_host_manager_unittest.cc:2982: kUrlBar, Referrer(), ui::PAGE_TRANSITION_TYPED, std::string()); On 2016/03/11 00:19:37, ...
4 years, 9 months ago (2016-03-11 00:28:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775543002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775543002/60001
4 years, 9 months ago (2016-03-11 00:33:01 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/179870)
4 years, 9 months ago (2016-03-11 01:15:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775543002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775543002/60001
4 years, 9 months ago (2016-03-11 01:42:01 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/138270)
4 years, 9 months ago (2016-03-11 02:10:42 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775543002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775543002/60001
4 years, 9 months ago (2016-03-11 02:30:14 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/138362) linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 9 months ago (2016-03-11 03:00:23 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775543002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775543002/60001
4 years, 9 months ago (2016-03-11 04:09:43 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/138450)
4 years, 9 months ago (2016-03-11 04:46:38 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775543002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775543002/60001
4 years, 9 months ago (2016-03-11 08:31:48 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-11 09:16:19 UTC) #27
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 09:17:44 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/402cc291d225747dca8594602f59e139b1684d57
Cr-Commit-Position: refs/heads/master@{#380585}

Powered by Google App Engine
This is Rietveld 408576698