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

Issue 2486683002: Improve print preview checks in the PDF plugin (Closed)

Created:
4 years, 1 month ago by raymes
Modified:
4 years, 1 month ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve print preview checks in the PDF plugin Special functionality is available in the PDF plugin for print preview. We don't want to allow this functionality to be exposed when not in print preview as it may have potential security implications. This CL improves the checks that are used: 1) Check the document URL to determine whether we are in print preview, rather than the URL that is passed in to load, which could be chosen by an attacker. 2) Add CHECKs to ensure we are in print preview mode and trying to load a print preview document when print preview messages are received. Note that we should never get into a state where these checks would be invalid but this gives us defense in depth. BUG=654280 Committed: https://crrev.com/9fb7fed591eb80fa9653f7d027f004afb8425b17 Cr-Commit-Position: refs/heads/master@{#430802}

Patch Set 1 #

Patch Set 2 : Improve print preview checks in the PDF plugin #

Total comments: 2

Patch Set 3 : Improve print preview checks in the PDF plugin #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -7 lines) Patch
M pdf/out_of_process_instance.h View 1 chunk +3 lines, -0 lines 0 comments Download
M pdf/out_of_process_instance.cc View 1 2 7 chunks +18 lines, -7 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
raymes
4 years, 1 month ago (2016-11-08 07:00:19 UTC) #2
Lei Zhang
lgtm https://codereview.chromium.org/2486683002/diff/20001/pdf/out_of_process_instance.cc File pdf/out_of_process_instance.cc (right): https://codereview.chromium.org/2486683002/diff/20001/pdf/out_of_process_instance.cc#newcode463 pdf/out_of_process_instance.cc:463: CHECK(IsPrintPreview() && IsPrintPreviewUrl(url)); Put these as 2 separate ...
4 years, 1 month ago (2016-11-08 07:38:13 UTC) #3
raymes
https://codereview.chromium.org/2486683002/diff/20001/pdf/out_of_process_instance.cc File pdf/out_of_process_instance.cc (right): https://codereview.chromium.org/2486683002/diff/20001/pdf/out_of_process_instance.cc#newcode463 pdf/out_of_process_instance.cc:463: CHECK(IsPrintPreview() && IsPrintPreviewUrl(url)); On 2016/11/08 07:38:13, Lei Zhang (slow) ...
4 years, 1 month ago (2016-11-08 23:18:01 UTC) #4
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/2486683002/40001
4 years, 1 month ago (2016-11-08 23:18:57 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-09 01:07:03 UTC) #8
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 01:19:18 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9fb7fed591eb80fa9653f7d027f004afb8425b17
Cr-Commit-Position: refs/heads/master@{#430802}

Powered by Google App Engine
This is Rietveld 408576698