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

Issue 2079273004: Allow Cast certificates to have serial numbers greater than 20 bytes. (Closed)

Created:
4 years, 6 months ago by eroman
Modified:
4 years, 6 months ago
Reviewers:
mattm, ryanchung, sheretov
CC:
chromium-reviews, cbentzel+watch_chromium.org, sheretov+watch_chromium.org, dougsteed+watch_chromium.org, vadimgo+watch_chromium.org, ryanchung+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow Cast certificates to have serial numbers greater than 20 bytes, as well as non-minimal INTEGER encodings (invalid DER). Previously such certificates were rejected, however there are some intermediate device certificates with serial numbers 21 bytes long, so make a temporary allowance. BUG=621645 Committed: https://crrev.com/c15c91eed960673eff22f0bec50cdab4fd950824 Cr-Commit-Position: refs/heads/master@{#401019}

Patch Set 1 #

Total comments: 4

Patch Set 2 : fixup a comment #

Patch Set 3 : Update the cert fuzzer #

Patch Set 4 : remove allowance of invalid serial numbers for cast roots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+372 lines, -36 lines) Patch
M components/cast_certificate/cast_cert_validator.cc View 1 2 3 4 chunks +29 lines, -12 lines 0 comments Download
M components/cast_certificate/cast_cert_validator_unittest.cc View 1 chunk +21 lines, -0 lines 0 comments Download
A components/test/data/cast_certificate/certificates/intermediate_serialnumber_toolong.pem View 1 1 chunk +270 lines, -0 lines 0 comments Download
M net/cert/internal/cert_issuer_source_aia.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/cert/internal/cert_issuer_source_aia_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/cert/internal/cert_issuer_source_static_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/cert/internal/parse_certificate.h View 4 chunks +18 lines, -2 lines 0 comments Download
M net/cert/internal/parse_certificate.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M net/cert/internal/parse_certificate_fuzzer.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M net/cert/internal/parse_certificate_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/cert/internal/parse_ocsp.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/cert/internal/parsed_certificate.h View 2 chunks +5 lines, -2 lines 0 comments Download
M net/cert/internal/parsed_certificate.cc View 3 chunks +10 lines, -5 lines 0 comments Download
M net/cert/internal/verify_certificate_chain_pkits_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/cert/internal/verify_certificate_chain_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
eroman
I expect to follow-up with more testing as part of //net unit-tests. For now the ...
4 years, 6 months ago (2016-06-20 23:14:06 UTC) #3
mattm
https://codereview.chromium.org/2079273004/diff/1/components/cast_certificate/cast_cert_validator.cc File components/cast_certificate/cast_cert_validator.cc (right): https://codereview.chromium.org/2079273004/diff/1/components/cast_certificate/cast_cert_validator.cc#newcode86 components/cast_certificate/cast_cert_validator.cc:86: GetCertParsingOptions()); Since these are statically included and verified by ...
4 years, 6 months ago (2016-06-20 23:42:12 UTC) #4
eroman
https://codereview.chromium.org/2079273004/diff/1/components/cast_certificate/cast_cert_validator.cc File components/cast_certificate/cast_cert_validator.cc (right): https://codereview.chromium.org/2079273004/diff/1/components/cast_certificate/cast_cert_validator.cc#newcode86 components/cast_certificate/cast_cert_validator.cc:86: GetCertParsingOptions()); On 2016/06/20 23:42:12, mattm wrote: > Since these ...
4 years, 6 months ago (2016-06-20 23:45:45 UTC) #5
mattm
https://codereview.chromium.org/2079273004/diff/1/components/cast_certificate/cast_cert_validator.cc File components/cast_certificate/cast_cert_validator.cc (right): https://codereview.chromium.org/2079273004/diff/1/components/cast_certificate/cast_cert_validator.cc#newcode86 components/cast_certificate/cast_cert_validator.cc:86: GetCertParsingOptions()); On 2016/06/20 23:45:45, eroman wrote: > On 2016/06/20 ...
4 years, 6 months ago (2016-06-20 23:55:04 UTC) #6
ryanchung
Thanks for your help, Eric and Matt! LGTM
4 years, 6 months ago (2016-06-21 00:15:25 UTC) #7
eroman
https://codereview.chromium.org/2079273004/diff/1/components/cast_certificate/cast_cert_validator.cc File components/cast_certificate/cast_cert_validator.cc (right): https://codereview.chromium.org/2079273004/diff/1/components/cast_certificate/cast_cert_validator.cc#newcode86 components/cast_certificate/cast_cert_validator.cc:86: GetCertParsingOptions()); On 2016/06/20 23:55:04, mattm wrote: > On 2016/06/20 ...
4 years, 6 months ago (2016-06-21 00:19:31 UTC) #8
mattm
lgtm
4 years, 6 months ago (2016-06-21 00:22:00 UTC) #9
eroman
+sheretov@chromium.org for OWNERS approval.
4 years, 6 months ago (2016-06-21 00:23:06 UTC) #11
sheretov
lgtm
4 years, 6 months ago (2016-06-21 16:02:51 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2079273004/60001
4 years, 6 months ago (2016-06-21 17:05:34 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-21 17:10:48 UTC) #17
commit-bot: I haz the power
4 years, 6 months ago (2016-06-21 17:12:44 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c15c91eed960673eff22f0bec50cdab4fd950824
Cr-Commit-Position: refs/heads/master@{#401019}

Powered by Google App Engine
This is Rietveld 408576698