Vulnerabilities · 2021 · Onedev Project
CVE-2021-21245
Onedev Project Onedev vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Onedev. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Onedev Project Onedev runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
More vulnerabilities in Onedev Project products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.