PT-2022-24805

CVE-2022-39205

·

Published

2022-09-13

·

Updated

2022-10-01

Description by

CVSS 3.1
9.0
Critical
MetricsAV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Onedev versions prior to 7.3.0
Description The issue allows unauthenticated users to take over an Onedev instance if there is no properly configured reverse proxy. The "/git-prereceive-callback" endpoint, intended for localhost access, can be invoked by attackers, leading to the execution of git commands. Environment variables for this command execution can be controlled via query parameters, allowing attackers to write to arbitrary files and potentially execute arbitrary code. This attack is difficult to detect, increasing its potential impact.
Recommendations For versions prior to 7.3.0, upgrade to version 7.3.0 or later to resolve the issue. As a temporary workaround, consider restricting access to the "/git-prereceive-callback" endpoint to minimize the risk of exploitation. Additionally, ensure a properly configured reverse proxy is in place to prevent unauthorized access.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-4F9H-H82C-4XM2
Found an issue in the description? Have something to add? Feel free to write us 👾