🔍 CVE-2023-45821

5.4
CVSS Score
MEDIUM
2023-10-19
2026-06-17 06:29
✅ 완료

🇰🇷 한글 설명

Artifact Hub의 `registryIsDockerHub` 함수가 도메인 접미사만 확인하는 취약점으로 인해, 공격자가 `docker.io`로 끝나는 도메인을 사용하여 가짜 OCI 레지스트리를 구축할 수 있습니다. 이를 통해 사용자가 입력한 Docker 인증 정보를 탈취할 위험이 있으며, 이는 버전 1.16.0에서 해결되었습니다.

💡 쉬운 설명

공격자가 진짜 Docker 사이트처럼 보이는 가짜 주소를 만들어 사용자의 로그인 정보를 훔칠 수 있는 보안 결함입니다. 사용자가 입력한 정보를 가짜 사이트가 가로채서 악용할 수 있습니다.

🇺🇸 원문 (English)

Artifact Hub is a web-based application that enables finding, installing, and publishing packages and configurations for CNCF projects. During a security audit of Artifact Hub's code base a security researcher identified a bug in which the `registryIsDockerHub` function was only checking that the registry domain had the `docker.io` suffix. Artifact Hub allows providing some Docker credentials that are used to increase the rate limit applied when interacting with the Docker Hub registry API to read publicly available content. Due to the incorrect check described above, it'd be possible to hijack those credentials by purchasing a domain which ends with `docker.io` and deploying a fake OCI registry on it. <https://artifacthub.io/> uses some credentials that only have permissions to read public content available in the Docker Hub. However, even though credentials for private repositories (disabled on `artifacthub.io`) are handled in a different way, other Artifact Hub deployments could have been using them for a different purpose. This issue has been resolved in version `1.16.0`. Users are advised to upgrade. There are no known workarounds for this vulnerability.

📍 영향받는 시스템

Artifact Hub 1.16.0 미만 버전

⚔️ 공격 벡터

docker.io 접미사를 가진 도메인을 구매하여 가짜 레지스트리를 구축한 후 사용자의 인증 정보를 탈취

🛡️ 대응 방법

Artifact Hub를 최신 버전인 1.16.0 이상으로 업그레이드

🔧 검증 코드

출력 결과에 1.16.0 이상의 버전 번호가 나타나면 취약점이 해결된 상태입니다.

Shell / Script
artifacthub --version 2>/dev/null | grep -E '1\.(1[6-9]|[2-9][0-9])\\.'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L

💻 영향받는 소프트웨어

Docker