Bug 1756388 (CVE-2019-15052)

Summary: CVE-2019-15052 gradle: sends authentication credentials originally destined for the configured host
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: aileenc, chazlett, csutherl, dan, decathorpe, drieden, ggaughan, gzaronik, janstey, java-sig-commits, jclere, jjelen, jochrist, lgao, lkundrak, mbabacek, mizdebsk, msimacek, myarboro, rfreire, twalsh, weli
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Gradle, where the HTTP client sends credentials originally meant for the configured host, to all subsequent hosts that the request redirects. This flaw allows a leak of the authentication token to external entities.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-28 00:45:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1756389, 1756390    
Bug Blocks: 1756405    

Description Guilherme de Almeida Suckevicz 2019-09-27 14:12:12 UTC
The HTTP client in Gradle before 5.6 sends authentication credentials originally destined for the configured host. If that host returns a 30x redirect, Gradle also sends those credentials to all subsequent hosts that the request redirects to. This is similar to CVE-2018-1000007.

References:
https://github.com/gradle/gradle/issues/10278
https://github.com/gradle/gradle/pull/10176
https://github.com/gradle/gradle/security/advisories/GHSA-4cwg-f7qc-6r95

Comment 1 Guilherme de Almeida Suckevicz 2019-09-27 14:12:32 UTC
Created gradle tracking bugs for this issue:

Affects: epel-6 [bug 1756390]
Affects: fedora-all [bug 1756389]

Comment 3 Product Security DevOps Team 2019-09-28 00:45:33 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2019-15052