Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1537125 - (CVE-2018-1000007) CVE-2018-1000007 curl: HTTP authentication leak in redirects
CVE-2018-1000007 curl: HTTP authentication leak in redirects
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20180124,repor...
: Security
Depends On: 1537966 1537967 1555221 1537968 1561720
Blocks: 1537129
  Show dependency treegraph
 
Reported: 2018-01-22 08:45 EST by Adam Mariš
Modified: 2018-10-30 03:43 EDT (History)
20 users (show)

See Also:
Fixed In Version: curl 7.58.0
Doc Type: If docs needed, set a value
Doc Text:
It was found that curl and libcurl might send their Authentication header to a third party HTTP server upon receiving an HTTP REDIRECT reply. This could leak authentication token to external entities.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Upstream patch (10.64 KB, patch)
2018-01-22 08:46 EST, Adam Mariš
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:3157 None None None 2018-10-30 03:43 EDT

  None (edit)
Description Adam Mariš 2018-01-22 08:45:33 EST
It was found that libcurl might accidentally leak authentication data to third parties.

When asked to send custom headers in its HTTP requests, libcurl will send that set of headers first to the host in the initial URL but also, if asked to follow redirects and a 30X HTTP response code is returned, to the host mentioned in URL in the `Location:` response header value.

Sending the same set of headers to subsequest hosts is in particular a problem for applications that pass on custom `Authorization:` headers, as this header often contains privacy sensitive information or data that could allow others to impersonate the libcurl-using client's request.

This bug has existed since before curl 6.0.
Comment 1 Adam Mariš 2018-01-22 08:45:38 EST
Acknowledgments:

Name: the Curl project
Upstream: Craig de Stigter
Comment 2 Adam Mariš 2018-01-22 08:46 EST
Created attachment 1384445 [details]
Upstream patch
Comment 3 Adam Mariš 2018-01-24 03:09:25 EST
External References:

https://curl.haxx.se/docs/adv_2018-b3bf.html
Comment 4 Adam Mariš 2018-01-24 03:10:34 EST
Created curl tracking bugs for this issue:

Affects: fedora-all [bug 1537968]


Created mingw-curl tracking bugs for this issue:

Affects: epel-7 [bug 1537966]
Affects: fedora-all [bug 1537967]
Comment 7 Cedric Buissart 2018-02-05 11:26:23 EST
Ceph uses libcurl in the rados gateway (RGW) only. By default CURLOPT_FOLLOWLOCATION is disabled and thus 3xx are returned rather than followed (https://curl.haxx.se/libcurl/c/CURLOPT_FOLLOWLOCATION.html). RGW does not override default, and thus is not vulnerable.
Comment 10 Cedric Buissart 2018-03-29 08:51:52 EDT
Mitigation:

By default, curl and libcurl will not follow redirect requests.
This flaw happens only when curl or libcurl are explicitly requested to follow redirects (option --location in curl, and CURLOPT_FOLLOWLOCATION in libcurl).
To mitigate this, it is possible to prevent the automated following of redirects, replacing it by manual redirects (and remove the authentication header), for example.
Comment 15 Cedric Buissart 2018-04-19 03:28:19 EDT
Statement:

This issue affects the versions of curl as shipped with Red Hat Enterprise Linux 5, 6, and 7, as well as the versions of httpd24-curl as shipped with Red Hat Software Collections. Red Hat Product Security has rated this issue as having Moderate security impact. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Comment 19 errata-xmlrpc 2018-10-30 03:43:04 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2018:3157 https://access.redhat.com/errata/RHSA-2018:3157

Note You need to log in before you can comment on or make changes to this bug.