Expect-Staple sends weird/useless reports when user has bypassed a certificate error |
||
Issue descriptionAfter bypassing a certificate error, SSLClientSocket::DoVerifyCertComplete() has a |result| of OK but |server_cert_verify_result.ocsp_result| has not been filled in. Thus a weird hybrid report gets sent, containing the actual OCSP response but information from the default |ocsp_result|. We might just want to lift the CheckExpectStaple() call out of the `if (result == OK)` so that we check Expect-Staple even when there is a certificate error: https://cs.chromium.org/chromium/src/net/socket/ssl_client_socket_impl.cc?q=DoVerifyCertComplete&sq=package:chromium&l=1341
,
Oct 13 2016
Should we send reports at all if there's a certificate error (including bypassed ones)?
,
Oct 13 2016
I think we should. If an OCSP response is missing on a connection, I'd imagine a site owner would want to know about it even if there was also a certificate error.
,
Dec 22 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/13e0b315a37468b305d5504caab8f3dd3691f3ba commit 13e0b315a37468b305d5504caab8f3dd3691f3ba Author: estark <estark@chromium.org> Date: Thu Dec 22 23:52:32 2016 Do not do Expect-Staple when OCSPVerifyResult has not been populated The OCSPVerifyResult is not always populated on a connection, for example when a certificate error has been bypassed. This CL adds a new response status that allows us to distinguish whether or not OCSP details have been checked on the connection, and we no longer send reports when they haven't been checked. This CL also adds a test that reports are not sent when there is a certificate error, as is the case when first encountering a cert error, before it has been bypassed. BUG= 654127 Review-Url: https://codereview.chromium.org/2587243002 Cr-Commit-Position: refs/heads/master@{#440547} [modify] https://crrev.com/13e0b315a37468b305d5504caab8f3dd3691f3ba/net/cert/ocsp_verify_result.h [modify] https://crrev.com/13e0b315a37468b305d5504caab8f3dd3691f3ba/net/http/transport_security_state.cc [modify] https://crrev.com/13e0b315a37468b305d5504caab8f3dd3691f3ba/net/url_request/url_request_unittest.cc
,
Dec 23 2016
|
||
►
Sign in to add a comment |
||
Comment 1 by est...@chromium.org
, Oct 7 2016