CVE-2021-21245

Critical

Description

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.

SeverityCritical
CVSS10.0
Exploit probability—
ProductOnedev
PublishedJan 15, 2021
First seenJan 15, 2021

How to fix

Update
  • onedev_project onedev4.0.3 or later

Affected products

ProductAffected versionsFixed in
onedev_project onedevv < 4.0.34.0.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.