Improper Authorization

Affecting com.google.oauth-client:google-oauth-client artifact, versions [,1.31.0)

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

Overview

com.google.oauth-client:google-oauth-client is a powerful and easy-to-use Java library for the OAuth 1.0a and OAuth 2.0 authorization standards.

Affected versions of this package are vulnerable to Improper Authorization. PKCE support is not implemented in accordance with the RFC for OAuth 2.0 for Native Apps. Without the use of PKCE, the authorization code returned by an authorization server is not enough to guarantee that the client that issued the initial authorization request is the one that will be authorized. An attacker is able to obtain the authorization code using a malicious app on the client-side and use it to gain authorization to the protected resource.

Remediation

Upgrade com.google.oauth-client:google-oauth-client to version 1.31.0 or higher.

References

CVSS Score

7.4
high severity
  • Attack Vector
    Network
  • Attack Complexity
    High
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    High
  • Integrity
    High
  • Availability
    None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Credit
Stefán Freyr Stefánsson
CVE
CVE-2020-7692
CWE
CWE-285
Snyk ID
SNYK-JAVA-COMGOOGLEOAUTHCLIENT-575276
Disclosed
03 Jul, 2020
Published
03 Jul, 2020