PT-2021-14356 · Onedev · Onedev

Pwntester

·

Published

2021-01-15

·

Updated

2026-01-23

·

CVE-2021-21246

CVSS v3.1

8.6

High

VectorAV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions: OneDev versions prior to 4.0.3
Description: OneDev is an all-in-one devops platform. The REST UserResource endpoint performs a security check to ensure only administrators can list user details. However, the /users/{id} endpoint lacks security checks, allowing retrieval of 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, with 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 other users.
Recommendations: For versions prior to 4.0.3, update to version 4.0.3 or later, which addresses the issue by removing user info from the restful API. As a temporary workaround, consider restricting access to the /users/{id} endpoint until the update is applied. Avoid using the id parameter in the affected API endpoint until the issue is resolved.

Fix

Missing Authorization

Weakness Enumeration

Related Identifiers

CVE-2021-21246
GHSA-66V7-GG85-F4GX

Affected Products

Onedev