PT-2021-14358 · Onedev · Onedev

Pwntester

·

Published

2021-01-15

·

Updated

2022-10-19

·

CVE-2021-21248

CVSS v3.1

9.6

Critical

VectorAV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions: OneDev versions prior to 4.0.3
Description: OneDev is an all-in-one devops platform with a critical issue involving the build endpoint parameters. The InputSpec is used to define parameters of a Build spec, utilizing dynamically generated Groovy classes. A user able to control job parameters can run arbitrary code on OneDev's server by injecting arbitrary Groovy code, resulting in the injection of a static constructor that will run arbitrary code.
Recommendations: For versions prior to 4.0.3, update to version 4.0.3 or later, which addresses the issue by escaping special characters such as quotes from user input. As a temporary workaround, consider restricting access to the build endpoint parameters to minimize the risk of exploitation.

Fix

Code Injection

Special Elements Injection

Weakness Enumeration

Related Identifiers

CVE-2021-21248
GHSA-GWP4-5498-HV5F

Affected Products

Onedev