← Back to CVEs
CVE-2021-21245
CRITICAL10.0
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.
CVE Details
CVSS v3.1 Score10.0
SeverityCRITICAL
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Attack VectorNETWORK
ComplexityLOW
Privileges RequiredNONE
User InteractionNONE
Published1/15/2021
Last Modified11/21/2024
Sourcenvd
Honeypot Sightings0
Affected Products
onedev_project:onedev
Weaknesses (CWE)
CWE-434
References
https://github.com/theonedev/onedev/commit/0c060153fb97c0288a1917efdb17cc426934dacb(security-advisories@github.com)
https://github.com/theonedev/onedev/security/advisories/GHSA-62m2-38q5-96w9(security-advisories@github.com)
https://github.com/theonedev/onedev/commit/0c060153fb97c0288a1917efdb17cc426934dacb(af854a3a-2127-422b-91ae-364da2661108)
https://github.com/theonedev/onedev/security/advisories/GHSA-62m2-38q5-96w9(af854a3a-2127-422b-91ae-364da2661108)
IOC Correlations
No correlations recorded
This product uses data from the NVD API but is not endorsed or certified by the NVD.