Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 699612 Details for
Bug 909977
CVE-2013-0308 git: Incorrect IMAP server's SSL x509.v3 certificate validation in git-imap-send command
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Third (final) part (3/3) of proposed upstream patch to correct this
v3-0003-imap-send-support-subjectAltName-as-well.txt (text/plain), 1.83 KB, created by
Jan Lieskovsky
on 2013-02-19 19:24:06 UTC
(
hide
)
Description:
Third (final) part (3/3) of proposed upstream patch to correct this
Filename:
MIME Type:
Creator:
Jan Lieskovsky
Created:
2013-02-19 19:24:06 UTC
Size:
1.83 KB
patch
obsolete
>From f6460f871e382edd62c3a8c6948158e7a9ecaf64 Mon Sep 17 00:00:00 2001 >From: Oswald Buddenhagen <ossi@kde.org> >Date: Fri, 15 Feb 2013 12:59:53 -0800 >Subject: [PATCH v3 3/3] imap-send: support subjectAltName as well > >Check not only the common name of the certificate subject, but also >check the subject alternative DNS names as well, when verifying that >the certificate matches that of the host we are trying to talk to. > >Signed-off-by: Oswald Buddenhagen <ossi@kde.org> >Signed-off-by: Junio C Hamano <gitster@pobox.com> >--- > imap-send.c | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > >diff --git a/imap-send.c b/imap-send.c >index 33fed3d..81fbfbb 100644 >--- a/imap-send.c >+++ b/imap-send.c >@@ -31,6 +31,7 @@ typedef void *SSL; > #else > #include <openssl/evp.h> > #include <openssl/hmac.h> >+#include <openssl/x509v3.h> > #endif > > struct store_conf { >@@ -292,6 +293,24 @@ static int verify_hostname(X509 *cert, const char *hostname) > int len; > X509_NAME *subj; > char cname[1000]; >+ int i, found; >+ STACK_OF(GENERAL_NAME) *subj_alt_names; >+ >+ /* try the DNS subjectAltNames */ >+ found = 0; >+ if ((subj_alt_names = X509_get_ext_d2i(cert, NID_subject_alt_name, NULL, NULL))) { >+ int num_subj_alt_names = sk_GENERAL_NAME_num(subj_alt_names); >+ for (i = 0; !found && i < num_subj_alt_names; i++) { >+ GENERAL_NAME *subj_alt_name = sk_GENERAL_NAME_value(subj_alt_names, i); >+ if (subj_alt_name->type == GEN_DNS && >+ strlen((const char *)subj_alt_name->d.ia5->data) == (size_t)subj_alt_name->d.ia5->length && >+ host_matches(hostname, (const char *)(subj_alt_name->d.ia5->data))) >+ found = 1; >+ } >+ sk_GENERAL_NAME_pop_free(subj_alt_names, GENERAL_NAME_free); >+ } >+ if (found) >+ return 0; > > /* try the common name */ > if (!(subj = X509_get_subject_name(cert))) >-- >1.8.1.3.701.g82b0977 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 909977
:
699610
|
699611
| 699612 |
700017