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

Issue 2865753003: Stop on redirects while checking for www mismatches (Closed)

Created:
3 years, 7 months ago by meacer
Modified:
3 years, 6 months ago
Reviewers:
elawrence
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop on redirects while checking for www mismatches SSLCommonNameMismatchHandling feature determines a suggested URL based on the SubjectAlternateNames of the certificate and then pings this URL. The suggested URL might be redirecting to an HTTP URL, leaking the path of the original HTTPS URL. This change prevents suggested URL pings from following redirects. This will prevent leaking the path of HTTPS URLs at the expense of false negatives. E.g. foo.com serves a cert for www.foo.com. www.foo.com redirects to bar.com. This won't work anymore. BUG=718676 Review-Url: https://codereview.chromium.org/2865753003 Cr-Commit-Position: refs/heads/master@{#481299} Committed: https://chromium.googlesource.com/chromium/src/+/0b201e50b370d8269aa52aa4fddbcf323241b07f

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add test, address elawrence comments #

Patch Set 3 : Adjust comments #

Total comments: 4

Patch Set 4 : elawrence comments #

Patch Set 5 : Fix tests #

Patch Set 6 : Convert CHECK(false) to EXPECT_TRUE(false) #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -37 lines) Patch
M chrome/browser/ssl/common_name_mismatch_handler.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 3 4 5 6 14 chunks +171 lines, -36 lines 0 comments Download

Messages

Total messages: 26 (14 generated)
elawrence
https://codereview.chromium.org/2865753003/diff/1/chrome/browser/ssl/common_name_mismatch_handler.cc File chrome/browser/ssl/common_name_mismatch_handler.cc (right): https://codereview.chromium.org/2865753003/diff/1/chrome/browser/ssl/common_name_mismatch_handler.cc#newcode79 chrome/browser/ssl/common_name_mismatch_handler.cc:79: // Don't follow redirects to prevent ending up on ...
3 years, 7 months ago (2017-05-08 18:06:13 UTC) #2
meacer
elawrence, PTAL? Thanks! https://codereview.chromium.org/2865753003/diff/1/chrome/browser/ssl/common_name_mismatch_handler.cc File chrome/browser/ssl/common_name_mismatch_handler.cc (right): https://codereview.chromium.org/2865753003/diff/1/chrome/browser/ssl/common_name_mismatch_handler.cc#newcode79 chrome/browser/ssl/common_name_mismatch_handler.cc:79: // Don't follow redirects to prevent ...
3 years, 6 months ago (2017-06-02 23:01:58 UTC) #5
elawrence
Thanks for working on this! The code overall LGTM, although I do worry about how ...
3 years, 6 months ago (2017-06-03 18:45:12 UTC) #6
meacer
Thanks! The current number of errors fixed by this feature is already small, so if ...
3 years, 6 months ago (2017-06-05 21:58:00 UTC) #7
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/2865753003/80001
3 years, 6 months ago (2017-06-06 19:26:10 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/442412)
3 years, 6 months ago (2017-06-06 20:18:08 UTC) #12
meacer
Fixed the tests, landing soon.
3 years, 6 months ago (2017-06-06 23:05:13 UTC) #13
meacer
A minor change, landing now.
3 years, 6 months ago (2017-06-07 21:24:25 UTC) #14
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/2865753003/120001
3 years, 6 months ago (2017-06-07 21:26:04 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/429076)
3 years, 6 months ago (2017-06-07 21:40:45 UTC) #19
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/2865753003/140001
3 years, 6 months ago (2017-06-21 18:54:12 UTC) #22
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 21:10:28 UTC) #26
Message was sent while issue was closed.
Committed patchset #7 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/0b201e50b370d8269aa52aa4fddb...

Powered by Google App Engine
This is Rietveld 408576698