All advisories

CSRF prevention cookie is susceptible to capture by MITM on HTTP redirect

CVE-2020-15767

Affected product(s)

  • Gradle Enterprise < 2020.2.5

Severity

Moderate

Description

The cookie used to convey the CSRF prevention token is not annotated with the “secure” attribute, which allows an attacker with the ability to MITM plain HTTP requests to obtain it, if the user mistakenly uses a HTTP instead of HTTPS address to access the server.

This cookie value could then be used to perform CSRF.

Mitigation

Upgrade to Gradle Enterprise 2020.2.5.

Credit

This issue was responsibly reported by Compass Security.