Skip to content

Git Repository Disclosure

High
robinshine published GHSA-h427-rv56-c9h2 Sep 13, 2022

Package

OneDev (standalone application)

Affected versions

< 7.3.0

Patched versions

7.3.0

Description

Observation

All files in the /opt/onedev/sites/ directory are exposed and can be read by unauthenticated users. This directory contains all projects, including their bare git repos and build artifacts.

Impact

This file disclosure vulnerability can be used by unauthenticated attackers to leak all project files of any project. Since project IDs are incremental, an attacker could just iterate through them and leak all project data.

Patches

7.3.0 or higher

Credits

This issue was reported by SonarSource team

Severity

High

CVE ID

CVE-2022-39208

Weaknesses

No CWEs