CVE-2021-21246
Summary
| CVE | CVE-2021-21246 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-01-15 21:15:00 UTC |
| Updated | 2021-01-21 15:07:00 UTC |
| Description | OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, the REST UserResource endpoint performs a security check to make sure that only administrators can list user details. However for the `/users/{id}` endpoint there are no security checks enforced so it is possible to retrieve arbitrary user details including their Access Tokens! These access tokens can be used to access the API or clone code in the build spec via the HTTP(S) protocol. It has permissions to all projects accessible by the user account. This issue may lead to `Sensitive data leak` and leak the Access Token which can be used to impersonate the administrator or any other users. This issue was addressed in 4.0.3 by removing user info from restful api. |
Risk And Classification
Problem Types: CWE-862
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Onedev Project | Onedev | All | All | All | All |
| Application | Onedev Project | Onedev | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Fix the issue that user access token can be leaked via restful api · theonedev/onedev@a4491e5 · GitHub | MISC | github.com | Patch, Third Party Advisory |
| Pre-Auth Access token leak · Advisory · theonedev/onedev · GitHub | CONFIRM | github.com | Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.