Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(30)

Issue 4657080: code review 4657080: crypto/x509: prevent chain cycles in Verify (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by agl1
Modified:
13 years, 8 months ago
Reviewers:
CC:
bradfitz, golang-dev
Visibility:
Public.

Description

crypto/x509: prevent chain cycles in Verify It's possible to include a self-signed root certificate as an intermediate and push Verify into a loop. I already had a test for this so I thought that it was ok, but it turns out that the test was void because the Verisign root certificate doesn't contain the "IsCA" flag and so it wasn't an acceptable intermediate certificate for that reason.

Patch Set 1 #

Patch Set 2 : diff -r f822b48fedeb https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r f822b48fedeb https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 5f2ce0cf2484 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -10 lines) Patch
M src/pkg/crypto/x509/verify.go View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/pkg/crypto/x509/verify_test.go View 1 2 chunks +11 lines, -10 lines 0 comments Download

Messages

Total messages: 3
agl1
Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 8 months ago (2011-07-07 17:59:14 UTC) #1
bradfitz
LGTM On Thu, Jul 7, 2011 at 10:59 AM, <agl@golang.org> wrote: > Reviewers: bradfitz, > ...
13 years, 8 months ago (2011-07-07 18:01:47 UTC) #2
agl1
13 years, 8 months ago (2011-07-07 22:06:59 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=8c5c270c9653 ***

crypto/x509: prevent chain cycles in Verify

It's possible to include a self-signed root certificate as an
intermediate and push Verify into a loop.

I already had a test for this so I thought that it was ok, but it
turns out that the test was void because the Verisign root certificate
doesn't contain the "IsCA" flag and so it wasn't an acceptable
intermediate certificate for that reason.

R=bradfitz
CC=golang-dev
http://codereview.appspot.com/4657080
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b