S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
high·Product Based Web Vulnerabilities·Updated Jan 28, 2026

CVE-2021-21246 Scanner

CVE-2021-21246 Scanner - Information Disclosure vulnerability in OneDev

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsurl
CostFree
2.2k
Times Used
continuous scan runs
4.7k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2021-21246
7.5
CVSShigh
Exploitable remotely over the internet · no authentication required.

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.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
onedevby theonedev
< 4.0.3
Updated Aug 21, 2026View on NVD →
Detail

OneDev is a widely adopted open-source project management and issue tracking tool designed for software development teams. Used by companies and developers around the world, OneDev assists in project planning, development tracking, and continuous integration processes. It is particularly useful for dev teams that need a centralized platform for tracking tasks and compiling code in a collaborative environment. OneDev's interface is built to optimize both team and individual productivity, providing features to manage code reviews, issue tracking, and code hosting in one platform. With these features, it integrates seamlessly into existing DevOps workflows, improving team coordination and efficiency. Its REST API support allows users to extend the functionalities and automate workflows to suit specific requirements.

The Information Disclosure vulnerability identified in OneDev prior to version 4.0.3 is due to a lack of security checks in one of its endpoints. This flaw allows unauthorized users to access sensitive user data, specifically through the /users/{id} REST API endpoint. Information that can be leaked includes user access tokens and email addresses. Such data leakage can lead to severe security issues including user impersonation and unauthorized access to user accounts. No special conditions are needed for exploitation, making this vulnerability particularly dangerous as it can be easily exploited remotely. This flaw poses a significant security risk as it makes sensitive data accessible to unauthorized parties.

Technically, OneDev's user access token leak vulnerability is found within the REST API available in versions earlier than 4.0.3. The problematic endpoint, /rest/users/{id}, fails to enforce adequate authorization checks, allowing anyone with access to the API URL to fetch sensitive user information. The vulnerability is exposed when a GET request is sent to this endpoint, with typical responses containing '"accessToken"' and '"email"' within JSON formatted data. The Content-Type for returned data from this endpoint is application/json, signifying a structured data response likely meant for authorized users only. The absence of proper security checks means that attackers can exploit this vulnerability simply by accessing the endpoint directly.

Exploiting the Information Disclosure vulnerability in OneDev could lead to unauthorized data access and user impersonation. Attackers gaining access to user tokens can potentially take control of affected user accounts. Such access would allow for actions to be performed in the name of the compromised user without their knowledge. This could lead to unauthorized data manipulation, and in severe cases, complete account compromise where attackers could exfiltrate sensitive, private, or proprietary information. Beyond data theft, the compromised account might be used maliciously within the project, affecting team productivity and trust. Proper exploitation of this vulnerability can thus severely impact users' security and affect business operations reliant on the integrity of the OneDev platform.

REFERENCES

Solution Advice
  • Update OneDev to version 4.0.3 or later to ensure that REST API security checks are properly enforced.
  • Audit your current user access controls and tokens to ensure no unauthorized access has occurred, and reset tokens if necessary.
  • Implement additional logging around API access to detect any future unauthorized requests promptly.
  • Configure role-based access control (RBAC) to limit API interactions strictly to authorized users.
  • Conduct regular security assessments to identify and mitigate similar vulnerabilities in the future.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.