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

Issue 2902933002: Verify all files in the request body are accessible by the renderer process. (Closed)

Created:
3 years, 7 months ago by nasko
Modified:
3 years, 7 months ago
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org, creis+watch_chromium.org, Charlie Reis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Verify all files in the request body are accessible by the renderer process. This CL adds verification to RenderFrameHostImpl::OnBeginNavigation to ensure that any files referenced in the request body have been properly granted access to the renderer process. If the validation fails, the process is terminated. BUG=725689 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2902933002 Cr-Commit-Position: refs/heads/master@{#474478} Committed: https://chromium.googlesource.com/chromium/src/+/5d30e832a1ce833818a76134b6fdd62238ec82c6

Patch Set 1 #

Patch Set 2 : Remove NOTREACHED as tests exercise this codepath. #

Total comments: 3

Patch Set 3 : Change file to avoid PwnMessageReceived, just revoke file access. #

Total comments: 2

Patch Set 4 : Rebase #

Total comments: 6

Patch Set 5 : Fixes based on Nick's review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -0 lines) Patch
M content/browser/bad_message.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/browser_side_navigation_browsertest.cc View 1 2 3 4 3 chunks +59 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 2 chunks +36 lines, -0 lines 0 comments Download
M content/test/data/form_that_posts_to_echoall.html View 1 chunk +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 31 (23 generated)
nasko
Hey Nick, Can you review this CL for me? It implements the verification allowed access ...
3 years, 7 months ago (2017-05-24 17:29:44 UTC) #9
ncarter (slow)
lgtm w/ nits and a Windows compile fix https://codereview.chromium.org/2902933002/diff/20001/content/browser/browser_side_navigation_browsertest.cc File content/browser/browser_side_navigation_browsertest.cc (right): https://codereview.chromium.org/2902933002/diff/20001/content/browser/browser_side_navigation_browsertest.cc#newcode368 content/browser/browser_side_navigation_browsertest.cc:368: base::FilePath ...
3 years, 7 months ago (2017-05-24 20:06:19 UTC) #12
Łukasz Anforowicz
Drive-by comments... https://codereview.chromium.org/2902933002/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/2902933002/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode2178 content/browser/frame_host/render_frame_host_impl.cc:2178: This is unrelated to the bug you ...
3 years, 7 months ago (2017-05-24 20:24:11 UTC) #14
ncarter (slow)
https://codereview.chromium.org/2902933002/diff/60001/content/browser/browser_side_navigation_browsertest.cc File content/browser/browser_side_navigation_browsertest.cc (right): https://codereview.chromium.org/2902933002/diff/60001/content/browser/browser_side_navigation_browsertest.cc#newcode330 content/browser/browser_side_navigation_browsertest.cc:330: // security_exploit_browsertest.cc, so move it there once PlzNavigate is ...
3 years, 7 months ago (2017-05-24 21:24:38 UTC) #21
nasko
https://codereview.chromium.org/2902933002/diff/60001/content/browser/browser_side_navigation_browsertest.cc File content/browser/browser_side_navigation_browsertest.cc (right): https://codereview.chromium.org/2902933002/diff/60001/content/browser/browser_side_navigation_browsertest.cc#newcode330 content/browser/browser_side_navigation_browsertest.cc:330: // security_exploit_browsertest.cc, so move it there once PlzNavigate is ...
3 years, 7 months ago (2017-05-24 21:43:58 UTC) #22
ncarter (slow)
lgtm
3 years, 7 months ago (2017-05-24 21:49:18 UTC) #25
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/2902933002/80001
3 years, 7 months ago (2017-05-24 22:11:10 UTC) #28
commit-bot: I haz the power
3 years, 7 months ago (2017-05-24 23:43:21 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/5d30e832a1ce833818a76134b6fd...

Powered by Google App Engine
This is Rietveld 408576698