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

Issue 1223233002: Common Name Mismatch Handler For WWW Subdomain Mismatch case (Closed)

Created:
5 years, 5 months ago by Bhanu Dev
Modified:
5 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Common Name Mismatch Handler For WWW Subdomain Mismatch case When there is a WWW sub domain mismatch between the hostname entered in the URL and the dns name present in the certificate, we ping the www mismatched domain. If a valid response code is received, we redirect the user to the domain with valid certificate and provide a console message for developers. BUG=507454 Committed: https://crrev.com/2051ce7a01a4026ec1611c940a3d83a55a6e19ef Cr-Commit-Position: refs/heads/master@{#344052}

Patch Set 1 : Added new class CommonNameMismatchHandler #

Patch Set 2 : Added CommonNameMismatch check in SSLErrorHandler #

Patch Set 3 : Changing function signature in unnittest file #

Total comments: 58

Patch Set 4 : Handling redirection, Resolving Comments #

Patch Set 5 : Unittests #

Total comments: 49

Patch Set 6 : Added Navigation, Resolved Comments #

Patch Set 7 : Resolving Comments #

Total comments: 10

Patch Set 8 : Browsertests #

Total comments: 3

Patch Set 9 : Minor Changes: Removing test code #

Total comments: 90

Patch Set 10 : Resolved comments, added UMA #

Total comments: 18

Patch Set 11 : resolved comments: documentation, style changes #

Total comments: 6

Patch Set 12 : mmenke's comments #

Total comments: 1

Patch Set 13 : Rebasing #

Patch Set 14 : Browsertests using MockCertVerifier #

Total comments: 19

Patch Set 15 : Removed interstitial code, Implemented Redirection #

Patch Set 16 : Revert changes in security_interstitial_page.h #

Patch Set 17 : Fixing trybot failures #

Total comments: 2

Patch Set 18 : Documentation Changes #

Total comments: 56

Patch Set 19 : Resolving comments: Fixing some bugs, documentation #

Patch Set 20 : Fixing Unittests #

Total comments: 53

Patch Set 21 : Resolving Comments #

Patch Set 22 : Rebasing #

Total comments: 4

Patch Set 23 : Resolving comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+869 lines, -76 lines) Patch
M chrome/browser/captive_portal/captive_portal_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +21 lines, -18 lines 0 comments Download
A chrome/browser/ssl/common_name_mismatch_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +90 lines, -0 lines 0 comments Download
A chrome/browser/ssl/common_name_mismatch_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +104 lines, -0 lines 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +362 lines, -0 lines 0 comments Download
M chrome/browser/ssl/ssl_error_classification.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +14 lines, -8 lines 0 comments Download
M chrome/browser/ssl/ssl_error_classification.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +27 lines, -16 lines 0 comments Download
M chrome/browser/ssl/ssl_error_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/ssl/ssl_error_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 11 chunks +94 lines, -29 lines 0 comments Download
M chrome/browser/ssl/ssl_error_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 8 chunks +137 lines, -5 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 62 (9 generated)
Bhanu Dev
On 2015/07/09 03:38:00, bhanudev wrote: > mailto:bhanudev@google.com changed reviewers: > + mailto:meacer@chromium.org, mailto:palmer@chromium.org Hi Mustafa ...
5 years, 5 months ago (2015-07-09 15:46:31 UTC) #2
meacer
Looking good. Now the hard part: tests :) https://codereview.chromium.org/1223233002/diff/40001/chrome/browser/ssl/common_name_mismatch_handler.cc File chrome/browser/ssl/common_name_mismatch_handler.cc (right): https://codereview.chromium.org/1223233002/diff/40001/chrome/browser/ssl/common_name_mismatch_handler.cc#newcode1 chrome/browser/ssl/common_name_mismatch_handler.cc:1: // ...
5 years, 5 months ago (2015-07-09 17:58:56 UTC) #3
palmer
https://codereview.chromium.org/1223233002/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1223233002/diff/40001/chrome/app/generated_resources.grd#newcode10066 chrome/app/generated_resources.grd:10066: + Attackers might be trying to steal your information ...
5 years, 5 months ago (2015-07-09 19:13:02 UTC) #4
Bhanu Dev
https://codereview.chromium.org/1223233002/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1223233002/diff/40001/chrome/app/generated_resources.grd#newcode10066 chrome/app/generated_resources.grd:10066: + Attackers might be trying to steal your information ...
5 years, 5 months ago (2015-07-11 04:00:44 UTC) #5
Bhanu Dev
Added Unit Tests. Please let me know if these cover all the cases. Thanks.
5 years, 5 months ago (2015-07-14 17:38:43 UTC) #6
meacer
https://codereview.chromium.org/1223233002/diff/80001/chrome/browser/ssl/common_name_mismatch_handler.cc File chrome/browser/ssl/common_name_mismatch_handler.cc (right): https://codereview.chromium.org/1223233002/diff/80001/chrome/browser/ssl/common_name_mismatch_handler.cc#newcode75 chrome/browser/ssl/common_name_mismatch_handler.cc:75: Remove extra line https://codereview.chromium.org/1223233002/diff/80001/chrome/browser/ssl/common_name_mismatch_handler.cc#newcode92 chrome/browser/ssl/common_name_mismatch_handler.cc:92: replacements.SetHostStr(www_mismatch_host_name); You might want ...
5 years, 5 months ago (2015-07-15 20:11:47 UTC) #7
meacer
On 2015/07/15 20:11:47, Mustafa Emre Acer wrote: > https://codereview.chromium.org/1223233002/diff/80001/chrome/browser/ssl/common_name_mismatch_handler.cc > File chrome/browser/ssl/common_name_mismatch_handler.cc (right): > > ...
5 years, 5 months ago (2015-07-15 20:12:30 UTC) #8
palmer
https://codereview.chromium.org/1223233002/diff/80001/chrome/browser/ssl/common_name_mismatch_handler.h File chrome/browser/ssl/common_name_mismatch_handler.h (right): https://codereview.chromium.org/1223233002/diff/80001/chrome/browser/ssl/common_name_mismatch_handler.h#newcode50 chrome/browser/ssl/common_name_mismatch_handler.h:50: const CheckUrlCallback& CheckUrlcallback); Nit: Name the argument |checkUrlCallback| (note ...
5 years, 5 months ago (2015-07-16 22:55:32 UTC) #9
Bhanu Dev
https://codereview.chromium.org/1223233002/diff/80001/chrome/browser/ssl/common_name_mismatch_handler.cc File chrome/browser/ssl/common_name_mismatch_handler.cc (right): https://codereview.chromium.org/1223233002/diff/80001/chrome/browser/ssl/common_name_mismatch_handler.cc#newcode75 chrome/browser/ssl/common_name_mismatch_handler.cc:75: On 2015/07/15 20:11:46, Mustafa Emre Acer wrote: > Remove ...
5 years, 5 months ago (2015-07-16 23:38:07 UTC) #10
palmer
https://codereview.chromium.org/1223233002/diff/120001/chrome/browser/ssl/common_name_mismatch_handler.cc File chrome/browser/ssl/common_name_mismatch_handler.cc (right): https://codereview.chromium.org/1223233002/diff/120001/chrome/browser/ssl/common_name_mismatch_handler.cc#newcode71 chrome/browser/ssl/common_name_mismatch_handler.cc:71: const GURL landing_url = url_fetcher->GetURL(); This could be a ...
5 years, 5 months ago (2015-07-17 00:16:00 UTC) #11
Bhanu Dev
Wrote browser tests. Added code to check for www mismatch if |CERT_COMMON_NAME_INVALID| is the only ...
5 years, 5 months ago (2015-07-23 20:11:07 UTC) #12
meacer
https://codereview.chromium.org/1223233002/diff/140001/chrome/browser/ssl/ssl_error_classification.cc File chrome/browser/ssl/ssl_error_classification.cc (right): https://codereview.chromium.org/1223233002/diff/140001/chrome/browser/ssl/ssl_error_classification.cc#newcode273 chrome/browser/ssl/ssl_error_classification.cc:273: return 1; On 2015/07/23 20:11:06, Bhanu Dev wrote: > ...
5 years, 5 months ago (2015-07-23 20:12:55 UTC) #13
Bhanu Dev
https://codereview.chromium.org/1223233002/diff/140001/chrome/browser/ssl/ssl_error_classification.cc File chrome/browser/ssl/ssl_error_classification.cc (right): https://codereview.chromium.org/1223233002/diff/140001/chrome/browser/ssl/ssl_error_classification.cc#newcode273 chrome/browser/ssl/ssl_error_classification.cc:273: return 1; On 2015/07/23 20:12:55, Mustafa Emre Acer wrote: ...
5 years, 5 months ago (2015-07-23 20:17:53 UTC) #14
palmer
LGTM with nits. https://codereview.chromium.org/1223233002/diff/160001/chrome/browser/ssl/common_name_mismatch_handler.cc File chrome/browser/ssl/common_name_mismatch_handler.cc (right): https://codereview.chromium.org/1223233002/diff/160001/chrome/browser/ssl/common_name_mismatch_handler.cc#newcode40 chrome/browser/ssl/common_name_mismatch_handler.cc:40: // The first 0 means this ...
5 years, 4 months ago (2015-07-27 23:56:18 UTC) #15
meacer
Looking good. I have some comments here and there, but I'm particularly curious why you ...
5 years, 4 months ago (2015-07-28 01:18:07 UTC) #16
Bhanu Dev
https://codereview.chromium.org/1223233002/diff/160001/chrome/browser/resources/security_warnings/interstitial_v2.js File chrome/browser/resources/security_warnings/interstitial_v2.js (right): https://codereview.chromium.org/1223233002/diff/160001/chrome/browser/resources/security_warnings/interstitial_v2.js#newcode29 chrome/browser/resources/security_warnings/interstitial_v2.js:29: var CMD_NAVIGATE_SUGGESTED_URL = 12; On 2015/07/28 01:18:05, Mustafa Emre ...
5 years, 4 months ago (2015-07-30 02:39:11 UTC) #17
meacer
Lgtm modulo comments https://codereview.chromium.org/1223233002/diff/160001/chrome/browser/ssl/ssl_blocking_page.cc File chrome/browser/ssl/ssl_blocking_page.cc (right): https://codereview.chromium.org/1223233002/diff/160001/chrome/browser/ssl/ssl_blocking_page.cc#newcode664 chrome/browser/ssl/ssl_blocking_page.cc:664: load_params.transition_type = ui::PAGE_TRANSITION_TYPED; On 2015/07/30 02:39:10, ...
5 years, 4 months ago (2015-07-30 19:40:22 UTC) #18
Bhanu Dev
https://codereview.chromium.org/1223233002/diff/180001/chrome/browser/resources/security_warnings/interstitial_v2.js File chrome/browser/resources/security_warnings/interstitial_v2.js (right): https://codereview.chromium.org/1223233002/diff/180001/chrome/browser/resources/security_warnings/interstitial_v2.js#newcode157 chrome/browser/resources/security_warnings/interstitial_v2.js:157: // Send a command if user clicks the suggested ...
5 years, 4 months ago (2015-07-31 00:07:16 UTC) #19
meacer
Lgtm
5 years, 4 months ago (2015-07-31 00:14:16 UTC) #20
meacer
Lgtm
5 years, 4 months ago (2015-07-31 00:14:19 UTC) #21
meacer
Can you also expand the CL description and describe what it does?
5 years, 4 months ago (2015-07-31 00:14:52 UTC) #22
chromium-reviews
Yes, I'm currently doing that :) Thanks. On Thu, Jul 30, 2015 at 5:14 PM, ...
5 years, 4 months ago (2015-07-31 00:16:12 UTC) #23
Bhanu Dev
@mmemke, @jhawkins, For owners review. PTAL. Thanks.
5 years, 4 months ago (2015-07-31 01:13:15 UTC) #25
mmenke
On 2015/07/31 01:13:15, Bhanu Dev wrote: > @mmemke, @jhawkins, > > For owners review. PTAL. ...
5 years, 4 months ago (2015-07-31 02:24:33 UTC) #26
mmenke
On 2015/07/31 02:24:33, mmenke wrote: > On 2015/07/31 01:13:15, Bhanu Dev wrote: > > @mmemke, ...
5 years, 4 months ago (2015-07-31 02:24:48 UTC) #27
Bhanu Dev
On 2015/07/31 02:24:48, mmenke wrote: > On 2015/07/31 02:24:33, mmenke wrote: > > On 2015/07/31 ...
5 years, 4 months ago (2015-07-31 03:34:04 UTC) #28
mmenke
This should be reviewed by a net/ person with some knowledge of the SSL code. ...
5 years, 4 months ago (2015-07-31 15:16:50 UTC) #29
Bhanu Dev
@davidben, For owners review. I would like you to review the files in net/, net/data/ssl/certificates/example_cert.pem ...
5 years, 4 months ago (2015-07-31 18:20:38 UTC) #31
davidben
Sorry we //net folks keep playing hot potato on this. :-) Bouncing to rsleevi as ...
5 years, 4 months ago (2015-07-31 18:24:12 UTC) #33
Bhanu Dev
On 2015/07/31 18:24:12, David Benjamin wrote: > Sorry we //net folks keep playing hot potato ...
5 years, 4 months ago (2015-07-31 18:35:06 UTC) #34
Bhanu Dev
On 2015/07/31 18:35:06, Bhanu Dev wrote: > On 2015/07/31 18:24:12, David Benjamin wrote: > > ...
5 years, 4 months ago (2015-08-03 18:30:24 UTC) #35
Ryan Sleevi
On 2015/08/03 18:30:24, Bhanu Dev wrote: > @rsleevi, Can you please take a look at ...
5 years, 4 months ago (2015-08-03 19:31:20 UTC) #38
Bhanu Dev
Browsertests using MockCertVerifier. Removed test certificates generated, related code in net/.
5 years, 4 months ago (2015-08-06 06:23:55 UTC) #39
Ryan Sleevi
I've taken a look at this, with a focus on testing. On a high-level, I ...
5 years, 4 months ago (2015-08-07 00:14:11 UTC) #40
Bhanu Dev
On 2015/08/07 00:14:11, Ryan Sleevi wrote: > I've taken a look at this, with a ...
5 years, 4 months ago (2015-08-07 00:37:41 UTC) #41
Bhanu Dev
The UI design has been changed, so we would be directly redirecting to the WWW ...
5 years, 4 months ago (2015-08-07 22:28:48 UTC) #42
Ryan Sleevi
https://codereview.chromium.org/1223233002/diff/260001/chrome/browser/ssl/ssl_error_classification.h File chrome/browser/ssl/ssl_error_classification.h (right): https://codereview.chromium.org/1223233002/diff/260001/chrome/browser/ssl/ssl_error_classification.h#newcode99 chrome/browser/ssl/ssl_error_classification.h:99: // Returns true if GetWWWSubDomainMatch finds a www mismatch. ...
5 years, 4 months ago (2015-08-07 22:31:11 UTC) #43
Bhanu Dev
On 2015/08/07 22:31:11, Ryan Sleevi wrote: > https://codereview.chromium.org/1223233002/diff/260001/chrome/browser/ssl/ssl_error_classification.h > File chrome/browser/ssl/ssl_error_classification.h (right): > > https://codereview.chromium.org/1223233002/diff/260001/chrome/browser/ssl/ssl_error_classification.h#newcode99 ...
5 years, 4 months ago (2015-08-07 22:35:01 UTC) #44
Bhanu Dev
@rsleevi, I have added the code to handle thread restrictions. Thanks a lot for helping ...
5 years, 4 months ago (2015-08-12 05:18:35 UTC) #45
meacer
Still LGTM. Please wait for an l-g-t-m from rsleevi@ before submitting. https://codereview.chromium.org/1223233002/diff/320001/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): ...
5 years, 4 months ago (2015-08-12 22:32:56 UTC) #46
Bhanu Dev
https://codereview.chromium.org/1223233002/diff/320001/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/1223233002/diff/320001/chrome/browser/ssl/ssl_browser_tests.cc#newcode2298 chrome/browser/ssl/ssl_browser_tests.cc:2298: net::ImportCertFromFile(net::GetTestCertsDirectory(), "spdy_pooling.pem"); On 2015/08/12 22:32:56, Mustafa Emre Acer wrote: ...
5 years, 4 months ago (2015-08-13 01:28:00 UTC) #47
Bhanu Dev
rsleevi@, Can you please let me know if the code is good enough to commit. ...
5 years, 4 months ago (2015-08-13 20:03:17 UTC) #48
mmenke
On 2015/08/13 20:03:17, Bhanu Dev wrote: > rsleevi@, Can you please let me know if ...
5 years, 4 months ago (2015-08-13 20:06:09 UTC) #49
Ryan Sleevi
Chatted with felt@ a bit. I guess I'm still reserved about background requests, but not ...
5 years, 4 months ago (2015-08-14 00:40:17 UTC) #50
Bhanu Dev
@rsleevi, Thanks a lot for your review. I think I learnt about some possible security ...
5 years, 4 months ago (2015-08-15 00:18:54 UTC) #52
davidben
https://codereview.chromium.org/1223233002/diff/380001/chrome/browser/ssl/common_name_mismatch_handler.cc File chrome/browser/ssl/common_name_mismatch_handler.cc (right): https://codereview.chromium.org/1223233002/diff/380001/chrome/browser/ssl/common_name_mismatch_handler.cc#newcode41 chrome/browser/ssl/common_name_mismatch_handler.cc:41: net::URLFetcher::HEAD, this); If you're always passing zero, you can ...
5 years, 4 months ago (2015-08-17 18:59:19 UTC) #53
Ryan Sleevi
https://codereview.chromium.org/1223233002/diff/380001/chrome/browser/ssl/common_name_mismatch_handler.cc File chrome/browser/ssl/common_name_mismatch_handler.cc (right): https://codereview.chromium.org/1223233002/diff/380001/chrome/browser/ssl/common_name_mismatch_handler.cc#newcode103 chrome/browser/ssl/common_name_mismatch_handler.cc:103: return url_fetcher_; On 2015/08/17 18:59:18, David Benjamin wrote: > ...
5 years, 4 months ago (2015-08-18 04:31:55 UTC) #54
Bhanu Dev
https://codereview.chromium.org/1223233002/diff/380001/chrome/browser/ssl/common_name_mismatch_handler.cc File chrome/browser/ssl/common_name_mismatch_handler.cc (right): https://codereview.chromium.org/1223233002/diff/380001/chrome/browser/ssl/common_name_mismatch_handler.cc#newcode41 chrome/browser/ssl/common_name_mismatch_handler.cc:41: net::URLFetcher::HEAD, this); On 2015/08/17 18:59:18, David Benjamin wrote: > ...
5 years, 4 months ago (2015-08-18 05:09:10 UTC) #55
davidben
lgtm https://codereview.chromium.org/1223233002/diff/420001/chrome/browser/ssl/common_name_mismatch_handler.cc File chrome/browser/ssl/common_name_mismatch_handler.cc (right): https://codereview.chromium.org/1223233002/diff/420001/chrome/browser/ssl/common_name_mismatch_handler.cc#newcode86 chrome/browser/ssl/common_name_mismatch_handler.cc:86: // |suggested_url| and |landing_url| can be different in ...
5 years, 4 months ago (2015-08-18 20:19:05 UTC) #56
Bhanu Dev
https://codereview.chromium.org/1223233002/diff/420001/chrome/browser/ssl/common_name_mismatch_handler.cc File chrome/browser/ssl/common_name_mismatch_handler.cc (right): https://codereview.chromium.org/1223233002/diff/420001/chrome/browser/ssl/common_name_mismatch_handler.cc#newcode86 chrome/browser/ssl/common_name_mismatch_handler.cc:86: // |suggested_url| and |landing_url| can be different in case ...
5 years, 4 months ago (2015-08-18 21:34:32 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1223233002/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1223233002/440001
5 years, 4 months ago (2015-08-18 21:34:59 UTC) #60
commit-bot: I haz the power
Committed patchset #23 (id:440001)
5 years, 4 months ago (2015-08-18 22:21:24 UTC) #61
commit-bot: I haz the power
5 years, 4 months ago (2015-08-18 22:22:13 UTC) #62
Message was sent while issue was closed.
Patchset 23 (id:??) landed as
https://crrev.com/2051ce7a01a4026ec1611c940a3d83a55a6e19ef
Cr-Commit-Position: refs/heads/master@{#344052}

Powered by Google App Engine
This is Rietveld 408576698