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

Issue 1690123002: Reduce Certificate Parsing Strictness (Closed)

Created:
4 years, 10 months ago by svaldez
Modified:
4 years, 10 months ago
Reviewers:
eroman, Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reduce Certificate Parsing Strictness In order to allow for compatibility with existing certificates/OCSP responders in the wild, the strictness on a few structures must be reduced: * Allow empty parameters in Signature Algorithms BUG= Committed: https://crrev.com/ed6e2ee578343dbc63fd6756f2b37bbaf1b163b8 Cr-Commit-Position: refs/heads/master@{#377722}

Patch Set 1 #

Patch Set 2 : Fixing tests. #

Total comments: 12

Patch Set 3 : Updating comments and generalizing CL. #

Patch Set 4 : Making VerifySerialNumber public. #

Patch Set 5 : Adding note about non-strict parsing. #

Patch Set 6 : Fixing unittest. #

Total comments: 12

Patch Set 7 : Updating comments. #

Patch Set 8 : Removing 21 octet weakness. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -44 lines) Patch
M net/cert/internal/parse_certificate.h View 1 2 3 7 1 chunk +27 lines, -0 lines 0 comments Download
M net/cert/internal/parse_certificate.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -37 lines 0 comments Download
M net/cert/internal/signature_algorithm.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M net/cert/internal/signature_algorithm_unittest.cc View 1 2 5 chunks +20 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (10 generated)
svaldez
Currently the top 100k Alexa sites have about a 7% rate of OCSP responses with ...
4 years, 10 months ago (2016-02-11 22:48:08 UTC) #2
eroman
(1) You will need to update the unit tests (2) Should we only be lenient ...
4 years, 10 months ago (2016-02-12 01:12:23 UTC) #3
svaldez
On 2016/02/12 01:12:23, eroman wrote: > (1) You will need to update the unit tests ...
4 years, 10 months ago (2016-02-12 15:31:22 UTC) #4
eroman
https://codereview.chromium.org/1690123002/diff/20001/net/cert/internal/signature_algorithm.cc File net/cert/internal/signature_algorithm.cc (right): https://codereview.chromium.org/1690123002/diff/20001/net/cert/internal/signature_algorithm.cc#newcode229 net/cert/internal/signature_algorithm.cc:229: // ("PARAMS TYPE NULL ARE required"), however due to ...
4 years, 10 months ago (2016-02-12 21:09:44 UTC) #5
svaldez
Done, I'm actually going to generalize this CL to include a couple other less strict ...
4 years, 10 months ago (2016-02-12 22:00:11 UTC) #7
svaldez
Adding TODO to match the ones in the other CL. From the initial runs, these ...
4 years, 10 months ago (2016-02-19 16:44:10 UTC) #9
eroman
Seems fine to me, however Ryan may want to comment as he was opposed to ...
4 years, 10 months ago (2016-02-23 22:09:52 UTC) #10
svaldez
For the 21 vs 20 octets, the CAs we've seen that do it badly are ...
4 years, 10 months ago (2016-02-24 16:36:57 UTC) #12
eroman
lgtm
4 years, 10 months ago (2016-02-25 01:47:07 UTC) #13
Ryan Sleevi
Not LGTM for serial We should explicitly reject those. Firefox does as well. I've been ...
4 years, 10 months ago (2016-02-25 20:42:59 UTC) #14
svaldez
Removing the 21 octet exception then.
4 years, 10 months ago (2016-02-25 20:58:40 UTC) #16
Ryan Sleevi
On 2016/02/25 20:58:40, svaldez wrote: > Removing the 21 octet exception then. Sorry bout not ...
4 years, 10 months ago (2016-02-25 21:03:37 UTC) #17
Ryan Sleevi
lgtm
4 years, 10 months ago (2016-02-25 21:04:22 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1690123002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1690123002/140001
4 years, 10 months ago (2016-02-25 21:20:37 UTC) #22
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-02-26 00:14:45 UTC) #24
commit-bot: I haz the power
4 years, 10 months ago (2016-02-26 00:16:03 UTC) #26
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ed6e2ee578343dbc63fd6756f2b37bbaf1b163b8
Cr-Commit-Position: refs/heads/master@{#377722}

Powered by Google App Engine
This is Rietveld 408576698