OneDev < 4.0.3 - User Access Token Leak
OneDev before version 4.0.3 contains an insecure endpoint that allows retrieval of arbitrary user details, including access tokens, due to missing security checks on /users/{id}, letting attackers leak sensitive data and impersonate users, exploit requires no special conditions. References: https://github.com/theonedev/onedev/security/advisories/GHSA-66v7-gg85-f4gx https://github.com/theonedev/onedev/commit/a4491e5f79dc6cc96eac20972eedc8905ddf6089 https://nvd.nist.gov/vuln/detail/CVE-2021-21246 https://securitylab.github.com/advisories/GHSL-2020-214_223-onedev/ Remediation: Update to version 4.0.3 or later where user info is removed from the REST API.
url