🇰🇷 한글 설명
OneDev의 Docker 기반 작업 실행기 사용 시 Docker 소켓이 컨테이너 내부에 마운트되는 취약점입니다. 이를 통해 권한이 낮은 사용자가 호스트 시스템의 Docker 데몬을 제어하여 컨테이너를 탈출하고 호스트의 루트 권한을 획득할 수 있습니다.
💡 쉬운 설명
프로그램 설정 오류로 인해 일반 사용자가 서버 전체를 제어할 수 있는 권한을 가질 수 있는 위험한 상태입니다. 공격자가 이 허점을 이용하면 서버의 모든 파일을 조작하거나 관리자 권한을 뺏을 수 있습니다.
🇺🇸 원문 (English)
Onedev is an open source, self-hosted Git Server with CI/CD and Kanban. When using Docker-based job executors, the Docker socket (e.g. /var/run/docker.sock on Linux) is mounted into each Docker step. Users that can define and trigger CI/CD jobs on a project could use this to control the Docker daemon on the host machine. This is a known dangerous pattern, as it can be used to break out of Docker containers and, in most cases, gain root privileges on the host system. This issue allows regular (non-admin) users to potentially take over the build infrastructure of a OneDev instance. Attackers need to have an account (or be able to register one) and need permission to create a project. Since code.onedev.io has the right preconditions for this to be exploited by remote attackers, it could have been used to hijack builds of OneDev itself, e.g. by injecting malware into the docker images that are built and pushed to Docker Hub. The impact is increased by this as described before. Users are advised to upgrade to 7.3.0 or higher. There are no known workarounds for this issue.
📍 영향받는 시스템
OneDev 7.3.0 미만 버전 (Docker 기반 job executor 사용 시)
⚔️ 공격 벡터
CI/CD 작업 정의 권한을 가진 사용자가 Docker 소켓을 이용해 호스트 시스템에 명령을 전달
🛡️ 대응 방법
OneDev를 7.3.0 이상의 최신 버전으로 업그레이드하십시오.
🔧 검증 코드
출력된 버전 번호가 7.3.0 미만(예: 7.2.x)이면 취약한 상태입니다.
curl -s http://<onedev-host>:<port>/api/version | grep -E '"version": "[0-6]\.'