[Full-disclosure] [ GLSA 200909-20 ] cURL: Certificate validation error



- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory GLSA 200909-20
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Severity: Normal
Title: cURL: Certificate validation error
Date: September 25, 2009
Bugs: #281515
ID: 200909-20

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

An error in the X.509 certificate handling of cURL might enable remote
attackers to conduct man-in-the-middle attacks.

Background
==========

cURL is a command line tool for transferring files with URL syntax,
supporting numerous protocols.

Affected packages
=================

-------------------------------------------------------------------
Package / Vulnerable / Unaffected
-------------------------------------------------------------------
1 net-misc/curl < 7.19.6 >= 7.19.6

Description
===========

Scott Cantor reported that cURL does not properly handle fields in
X.509 certificates that contain an ASCII NUL (\0) character.
Specifically, the processing of such fields is stopped at the first
occurence of a NUL character. This type of vulnerability was recently
discovered by Dan Kaminsky and Moxie Marlinspike.

Impact
======

A remote attacker might employ a specially crafted X.509 certificate
(that for instance contains a NUL character in the Common Name field)
to conduct man-in-the-middle attacks.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All cURL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose =net-misc/curl-7.19.6

References
==========

[ 1 ] CVE-2009-2417
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2417

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

http://security.gentoo.org/glsa/glsa-200909-20.xml

Concerns?
=========

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
security@xxxxxxxxxx or alternatively, you may file a bug at
https://bugs.gentoo.org.

License
=======

Copyright 2009 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.5

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

Relevant Pages

  • [ GLSA 200909-20 ] cURL: Certificate validation error
    ... An error in the X.509 certificate handling of cURL might enable remote ... attackers to conduct man-in-the-middle attacks. ... Security is a primary focus of Gentoo Linux and ensuring the ...
    (Bugtraq)
  • [Full-disclosure] [ GLSA 200910-01 ] Wget: Certificate validation error
    ... An error in the X.509 certificate handling of Wget might enable remote ... man-in-the-middle attacks on SSL connections made using Wget. ... Security is a primary focus of Gentoo Linux and ensuring the ...
    (Full-Disclosure)
  • [ GLSA 200910-01 ] Wget: Certificate validation error
    ... An error in the X.509 certificate handling of Wget might enable remote ... man-in-the-middle attacks on SSL connections made using Wget. ... Security is a primary focus of Gentoo Linux and ensuring the ...
    (Bugtraq)
  • Need pointers on managing client certs...
    ... I've been exploring openssl and curl, ... client side which appears to be subject to periodic expiration. ... get things to work simply by just telling curl not to do certificate ... so to get their cert file manually updated. ...
    (comp.security.unix)
  • Re: MD5 crack for digital certificates
    ... Message hash computed (in this instance using MD5) ... Message hash appended to certificate. ... against three distinct types of attacks: ...
    (Pen-Test)