CVE-2022-39207

Published on: Not Yet Published

Last Modified on: 10/01/2022 02:17:00 AM UTC

CVE-2022-39207 - advisory for GHSA-27fw-gv88-qrpg

Source: Mitre Source: NIST CVE.ORG Print: PDF PDF
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Certain versions of Onedev from Onedev Project contain the following vulnerability:

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.

  • CVE-2022-39207 has been assigned by URL Logo [email protected] to track the vulnerability - currently rated as MEDIUM severity.
  • Affected Vendor/Software: URL Logo theonedev - onedev version < 7.3.0

CVSS3 Score: 5.4 - MEDIUM

Attack
Vector
Attack
Complexity
Privileges
Required
User
Interaction
NETWORK LOW LOW REQUIRED
Scope Confidentiality
Impact
Integrity
Impact
Availability
Impact
CHANGED LOW LOW NONE

CVE References

Description Tags Link
Fix XSS attach for published artifacts · theonedev/[email protected] · GitHub github.com
text/html
URL Logo MISC github.com/theonedev/onedev/commit/adb6e31476621f824fc3227a695232df830d83ab
Persistent XSS · Advisory · theonedev/onedev · GitHub github.com
text/html
URL Logo CONFIRM github.com/theonedev/onedev/security/advisories/GHSA-27fw-gv88-qrpg
Securing Developer Tools: OneDev Remote Code Execution blog.sonarsource.com
text/html
URL Logo MISC blog.sonarsource.com/onedev-remote-code-execution/

Known Affected Configurations (CPE V2.3)

Type Vendor Product Version Update Edition Language
ApplicationOnedev ProjectOnedevAllAllAllAll
  • cpe:2.3:a:onedev_project:onedev:*:*:*:*:*:*:*:*:

Social Mentions

Source Title Posted (UTC)
Twitter Icon @CVEreport cve.report/CVE-2022-39207 Onedev is an open source, self-hosted Git Server with CI/CD and Kanban. During CI/CD build… twitter.com/i/web/status/1… 2022-09-13 20:16:12
© CVE.report 2022 Twitter Nitter Twitter Viewer |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report