5.4
MEDIUM
CVE-2022-39207
OneDev Cross-Site Scripting Vulnerability
Description

Onedev is an open source, self-hosted Git Server with CI/CD and Kanban. During CI/CD builds, it is possible to save build artifacts for later retrieval. They can be accessed through OneDev's web UI after the successful run of a build. These artifact files are served by the webserver in the same context as the UI without any further restrictions. This leads to Cross-Site Scripting (XSS) when a user creates a build artifact that contains HTML. When accessing the artifact, the content is rendered by the browser, including any JavaScript that it contains. Since all cookies (except for the rememberMe one) do not set the HttpOnly flag, an attacker could steal the session of a victim and use it to impersonate them. To exploit this issue, attackers need to be able to modify the content of artifacts, which usually means they need to be able to modify a project's build spec. The exploitation requires the victim to click on an attacker's link. It can be used to elevate privileges by targeting admins of a OneDev instance. In the worst case, this can lead to arbitrary code execution on the server, because admins can create Server Shell Executors and use them to run any command on the server. This issue has been patched in version 7.3.0. Users are advised to upgrade. There are no known workarounds for this issue.

INFO

Published Date :

Sept. 13, 2022, 7:15 p.m.

Last Modified :

July 13, 2023, 5:24 p.m.

Remotely Exploitable :

Yes !

Impact Score :

2.7

Exploitability Score :

2.3
Affected Products

The following products are affected by CVE-2022-39207 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Onedev_project onedev
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2022-39207.

URL Resource
https://blog.sonarsource.com/onedev-remote-code-execution/ Exploit Third Party Advisory
https://github.com/theonedev/onedev/commit/adb6e31476621f824fc3227a695232df830d83ab Patch Third Party Advisory
https://github.com/theonedev/onedev/security/advisories/GHSA-27fw-gv88-qrpg Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-39207 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-39207 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Reanalysis by [email protected]

    Jul. 13, 2023

    Action Type Old Value New Value
    Added CWE NIST CWE-732
    Added CWE NIST CWE-79
  • Modified Analysis by [email protected]

    Oct. 01, 2022

    Action Type Old Value New Value
    Changed Reference Type https://blog.sonarsource.com/onedev-remote-code-execution/ No Types Assigned https://blog.sonarsource.com/onedev-remote-code-execution/ Exploit, Third Party Advisory
  • CVE Modified by [email protected]

    Sep. 23, 2022

    Action Type Old Value New Value
    Added Reference https://blog.sonarsource.com/onedev-remote-code-execution/ [No Types Assigned]
  • Initial Analysis by [email protected]

    Sep. 16, 2022

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    Changed Reference Type https://github.com/theonedev/onedev/commit/adb6e31476621f824fc3227a695232df830d83ab No Types Assigned https://github.com/theonedev/onedev/commit/adb6e31476621f824fc3227a695232df830d83ab Patch, Third Party Advisory
    Changed Reference Type https://github.com/theonedev/onedev/security/advisories/GHSA-27fw-gv88-qrpg No Types Assigned https://github.com/theonedev/onedev/security/advisories/GHSA-27fw-gv88-qrpg Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:onedev_project:onedev:*:*:*:*:*:*:*:* versions up to (excluding) 7.3.0
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-39207 is associated with the following CWEs:

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.08 }} 0.00%

score

0.32577

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability