CVE-2022-39205 – Access Control Bypass in Onedev
https://notcve.org/view.php?id=CVE-2022-39205
Onedev is an open source, self-hosted Git Server with CI/CD and Kanban. In versions of Onedev prior to 7.3.0 unauthenticated users can take over a OneDev instance if there is no properly configured reverse proxy. The /git-prereceive-callback endpoint is used by the pre-receive git hook on the server to check for branch protections during a push event. It is only intended to be accessed from localhost, but the check relies on the X-Forwarded-For header. Invoking this endpoint leads to the execution of one of various git commands. • https://blog.sonarsource.com/onedev-remote-code-execution https://github.com/theonedev/onedev/commit/f1e97688e4e19d6de1dfa1d00e04655209d39f8e https://github.com/theonedev/onedev/releases/tag/v7.3.0 https://github.com/theonedev/onedev/security/advisories/GHSA-4f9h-h82c-4xm2 • CWE-287: Improper Authentication •
CVE-2021-32651 – LDAP injection via OneDev may leak some LDAP directory information
https://notcve.org/view.php?id=CVE-2021-32651
OneDev is a development operations platform. If the LDAP external authentication mechanism is enabled in OneDev versions 4.4.1 and prior, an attacker can manipulate a user search filter to send forged queries to the application and explore the LDAP tree using Blind LDAP Injection techniques. The specific payload depends on how the User Search Filter property is configured in OneDev. This issue was fixed in version 4.4.2. OneDev es una plataforma de operaciones de desarrollo. • https://github.com/theonedev/onedev/commit/4440f0c57e440488d7e653417b2547eaae8ad19c https://github.com/theonedev/onedev/security/advisories/GHSA-5864-2496-4xjf • CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection') •
CVE-2021-21245 – Pre-Auth Arbitrary File Upload
https://notcve.org/view.php?id=CVE-2021-21245
OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, AttachmentUploadServlet also saves user controlled data (`request.getInputStream()`) to a user specified location (`request.getHeader("File-Name")`). This issue may lead to arbitrary file upload which can be used to upload a WebShell to OneDev server. This issue is addressed in 4.0.3 by only allowing uploaded file to be in attachments folder. The webshell issue is not possible as OneDev never executes files in attachments folder. • https://github.com/theonedev/onedev/commit/0c060153fb97c0288a1917efdb17cc426934dacb https://github.com/theonedev/onedev/security/advisories/GHSA-62m2-38q5-96w9 • CWE-434: Unrestricted Upload of File with Dangerous Type •
CVE-2021-21246 – Pre-Auth Access token leak
https://notcve.org/view.php?id=CVE-2021-21246
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. • https://github.com/theonedev/onedev/commit/a4491e5f79dc6cc96eac20972eedc8905ddf6089 https://github.com/theonedev/onedev/security/advisories/GHSA-66v7-gg85-f4gx • CWE-862: Missing Authorization •
CVE-2021-21247 – Post-Auth Unsafe Deserialization on BasePage (AJAX)
https://notcve.org/view.php?id=CVE-2021-21247
OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, the application's BasePage registers an AJAX event listener (`AbstractPostAjaxBehavior`) in all pages other than the login page. This listener decodes and deserializes the `data` query parameter. We can access this listener by submitting a POST request to any page. This issue may lead to `post-auth RCE` This endpoint is subject to authentication and, therefore, requires a valid user to carry on the attack. • https://github.com/theonedev/onedev/security/advisories/GHSA-6pxf-75cf-vwjp • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') CWE-502: Deserialization of Untrusted Data •