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

Issue 2908433003: RenderFrameProxyHost::OnOpenURL needs to validate resource request body. (Closed)

Created:
3 years, 7 months ago by Łukasz Anforowicz
Modified:
3 years, 7 months ago
Reviewers:
ncarter (slow), alexmos
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org, creis+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

FrameHostMsg_OpenURL_Params.resource_request_body needs to be validated. FrameHostMsg_OpenURL_Params comes from an untrusted source and needs to be validated to check whether the sender of the IPC really has access to the contents of the resource request body. BUG=726067 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2908433003 Cr-Commit-Position: refs/heads/master@{#475179} Committed: https://chromium.googlesource.com/chromium/src/+/4ec2e7573759e15f79a06198dd2cca6d72f6b7a4

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Rebasing... #

Patch Set 4 : . #

Total comments: 6

Patch Set 5 : Covering RenderFrameHostImpl as well and rearranging the test to pass on Android. #

Total comments: 15

Patch Set 6 : Fixed a typo in a comment #

Patch Set 7 : Addressed CR comments from alexmos@ #

Patch Set 8 : Making CanReadRequestBody an instance method of ChildProcessSecurityPolicyImpl. #

Patch Set 9 : Rebasing... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -1 line) Patch
M content/browser/bad_message.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/child_process_security_policy_impl.h View 1 2 3 4 5 6 7 4 chunks +20 lines, -0 lines 0 comments Download
M content/browser/child_process_security_policy_impl.cc View 1 2 3 4 5 6 7 2 chunks +67 lines, -0 lines 0 comments Download
M content/browser/cross_site_transfer_browsertest.cc View 1 2 3 4 5 6 2 chunks +92 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_proxy_host.cc View 1 2 3 4 5 6 7 3 chunks +12 lines, -1 line 0 comments Download
M content/browser/security_exploit_browsertest.cc View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 46 (36 generated)
Łukasz Anforowicz
alexmos@, can you PTAL? https://codereview.chromium.org/2908433003/diff/60001/content/browser/frame_host/render_frame_proxy_host.cc File content/browser/frame_host/render_frame_proxy_host.cc (right): https://codereview.chromium.org/2908433003/diff/60001/content/browser/frame_host/render_frame_proxy_host.cc#newcode43 content/browser/frame_host/render_frame_proxy_host.cc:43: // ResourceDispatcherHostImpl::ShouldServiceRequest. I've duplicated the ...
3 years, 7 months ago (2017-05-25 15:46:38 UTC) #17
alexmos
Thanks for fixing this! One question below, and I only looked at the test on ...
3 years, 7 months ago (2017-05-25 18:17:34 UTC) #18
Łukasz Anforowicz
Thanks Alex, can you take another look please? https://codereview.chromium.org/2908433003/diff/60001/content/browser/cross_site_transfer_browsertest.cc File content/browser/cross_site_transfer_browsertest.cc (right): https://codereview.chromium.org/2908433003/diff/60001/content/browser/cross_site_transfer_browsertest.cc#newcode525 content/browser/cross_site_transfer_browsertest.cc:525: // ...
3 years, 7 months ago (2017-05-25 19:56:02 UTC) #24
alexmos
Thanks! LGTM % nits and a couple of thoughts below. https://codereview.chromium.org/2908433003/diff/80001/content/browser/cross_site_transfer_browsertest.cc File content/browser/cross_site_transfer_browsertest.cc (right): https://codereview.chromium.org/2908433003/diff/80001/content/browser/cross_site_transfer_browsertest.cc#newcode543 ...
3 years, 7 months ago (2017-05-25 23:44:06 UTC) #27
Łukasz Anforowicz
Thanks Alex. https://codereview.chromium.org/2908433003/diff/80001/content/browser/cross_site_transfer_browsertest.cc File content/browser/cross_site_transfer_browsertest.cc (right): https://codereview.chromium.org/2908433003/diff/80001/content/browser/cross_site_transfer_browsertest.cc#newcode543 content/browser/cross_site_transfer_browsertest.cc:543: EXPECT_TRUE(ExecuteScript(target_contents, "window.open('" + form_url.spec() + On 2017/05/25 ...
3 years, 7 months ago (2017-05-26 00:05:14 UTC) #28
Łukasz Anforowicz
nick@, could you please comment on the idea to make CanReadRequestBody an instance method of ...
3 years, 7 months ago (2017-05-26 00:07:39 UTC) #30
ncarter (slow)
https://codereview.chromium.org/2908433003/diff/80001/content/browser/resource_request_body_browser_utils.cc File content/browser/resource_request_body_browser_utils.cc (right): https://codereview.chromium.org/2908433003/diff/80001/content/browser/resource_request_body_browser_utils.cc#newcode20 content/browser/resource_request_body_browser_utils.cc:20: const scoped_refptr<ResourceRequestBodyImpl>& body) { On 2017/05/26 00:05:14, Łukasz A. ...
3 years, 7 months ago (2017-05-26 21:23:11 UTC) #33
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/2908433003/160001
3 years, 7 months ago (2017-05-26 21:31:24 UTC) #37
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/2908433003/160001
3 years, 7 months ago (2017-05-26 23:01:18 UTC) #43
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 23:18:27 UTC) #46
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/4ec2e7573759e15f79a06198dd2c...

Powered by Google App Engine
This is Rietveld 408576698