18183059 problem in LIBRARY/CURL
authorRich Burridge <rich.burridge@oracle.com>
Wed, 05 Feb 2014 07:08:28 -0800
changeset 1688 3f0c67b12bf7
parent 1687 1a1d0ee12d7c
child 1689 f62328c11ab6
18183059 problem in LIBRARY/CURL
components/curl/patches/012-CVE-2014-0015.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/curl/patches/012-CVE-2014-0015.patch	Wed Feb 05 07:08:28 2014 -0800
@@ -0,0 +1,22 @@
+CVE-2014-0015: libcurl can in some circumstances re-use the wrong
+connection when asked to do an NTLM-authenticated HTTP or HTTPS request.
+
+More information at:
+http://curl.haxx.se/docs/adv_20140129.html
+
+Relevant upstream patch at:
+http://curl.haxx.se/CVE-2014-0015-7-27.patch
+
+--- lib/url.c.orig	2014-02-04 12:20:53.704898398 -0800
++++ lib/url.c	2014-02-04 12:28:14.698044886 -0800
[email protected]@ -3103,8 +3103,8 @@
+         }
+         if((needle->handler->protocol & CURLPROTO_FTP) ||
+            ((needle->handler->protocol & CURLPROTO_HTTP) &&
+-            ((data->state.authhost.want==CURLAUTH_NTLM) ||
+-             (data->state.authhost.want==CURLAUTH_NTLM_WB)))) {
++            ((data->state.authhost.want & CURLAUTH_NTLM) ||
++             (data->state.authhost.want & CURLAUTH_NTLM_WB)))) {
+           /* This is FTP or HTTP+NTLM, verify that we're using the same name
+              and password as well */
+           if(!strequal(needle->user, check->user) ||