CVE-2020-5289
Read permissions not enforced for client provided filter expressions in Elide.
Description
Impact
It is possible for an adversary to "guess and check" the value of a model field they do not have access to assuming they can read at least one other field in the model. The adversary can construct filter expressions for an inaccessible field to filter a collection. The presence or absence of models in the returned collection can be used to reconstruct the value of the inaccessible field.
For example, a User model has two fields: name and role. The adversary has read permissions to see the name field of the User collection but not the role. By constructing a filter like the one below, the adversary can determine which users have admin role by presence or absence in the returned collection:
filter=role=="Admin"
Patches
Resolved in Elide 4.5.14 and greater.
Workarounds
The adversary can only access the fields if a model includes fields with different read permission levels (some less secure and some more secure). Model security can be adjusted by restricting read permissions on existing models.
References
Fixed in https://github.com/yahoo/elide/pull/1236
For more information
If you have any questions or comments about this advisory:
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.yahoo.elide » elide-core | < 4.5.14 | 4.5.14 |
Blast radius
40% of the dependent artifacts (8) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1,030 |
| 2 hops | 59 |
| 3 hops | 1 |
Most used dependents
- com.yahoo.elide » elide-graphql10 usages
- com.yahoo.elide » elide-spring-boot-starter7 usages
- com.yahoo.elide » elide-datastore-jpa6 usages
- com.yahoo.elide » elide-datastore-hibernate55 usages
- com.yahoo.elide » elide-datastore-multiplex5 usages
- com.yahoo.elide » elide-datastore-hibernate4 usages
- com.yahoo.elide » elide-swagger4 usages
- com.yahoo.navi » models3 usages
- com.yahoo.elide » elide-datastore-inmemorydb2 usages
- com.yahoo.elide » elide-standalone1 usages
- org.illyasviel.elide » elide-spring-boot-starter1 usages
- com.yahoo.elide » elide-datastore-hibernate30 usages
- com.yahoo.elide » elide-datastore-noop0 usages
- com.yahoo.elide » dropwizard-elide0 usages
- com.yahoo.elide » elide-datastore-search0 usages
Computed from the dependency graph of build 20261202.2045 (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-5289 | nvd.nist.gov |
| Web | yahoo/elide advisory GHSA-2mxr-89gf-rc4v | github.com |
| Web | yahoo/elide pull request #1236 | github.com |
| Web | yahoo/elide pull request #1236 | github.com |
