CVE-2020-7692
Improper Authorization in Google OAuth Client
Description
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. This affects the package com.google.oauth-client:google-oauth-client before 1.31.0.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.google.oauth-client » google-oauth-client | < 1.31.0 | 1.31.0 |
Blast radius
52% of the dependent artifacts (1,934) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 21,266 |
| 2 hops | 150,959 |
| 3 hops | 80,085 |
| 4 hops | 53,950 |
| 5 hops | 26,506 |
| 6 hops | 7,797 |
Most used dependents
- org.apache.kafka » kafka1,450 usages
- com.google.api-client » google-api-client1,085 usages
- com.google.firebase » firebase-messaging862 usages
- com.google.cloud » google-cloud-storage641 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- org.apache.solr » solr-core500 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- com.simpligility.maven.plugins » android-maven-plugin338 usages
- org.jsonschema2pojo » jsonschema2pojo-maven-plugin334 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.apache.beam » beam-sdks-java-core268 usages
- com.google.crypto.tink » tink242 usages
- com.google.firebase » firebase-admin213 usages
- org.apache.solr » solr-test-framework181 usages
- com.google.oauth-client » google-oauth-client-jetty181 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2020-7692 | nvd.nist.gov |
| Package | googleapis/google-oauth-java-client | github.com |
| Web | googleapis/google-oauth-java-client issue #469 | github.com |
| Web | googleapis/google-oauth-java-client commit 13433cd | github.com |
| Web | thread.html/r3db6ac73e0558d64f0b664f2fa4ef0a865e57c5de20f8321d3b48678@<commits.druid.apach ... | lists.apache.org |
| Web | thread.html/reae8909b264d1103f321b9ce1623c10c1ddc77dba9790247f2c0c90f@<commits.druid.apach ... | lists.apache.org |
| Web | vuln/SNYK-JAVA-COMGOOGLEOAUTHCLIENT-575276 | snyk.io |
| Web | html/rfc7636#section-1 | tools.ietf.org |
| Web | html/rfc8252#section-8.1 | tools.ietf.org |
