🇰🇷 한글 설명
Cosmos의 tokenMiddleware에서 Constellation 터널 우회 취약점이 발견되었습니다. 공격자가 유효한 API 키를 사용하여 특정 헤더를 조작하면, JWT 인증, 비밀번호, MFA 및 관리자 권한 확인을 우회하여 다른 사용자로 위장할 수 있습니다.
💡 쉬운 설명
해커가 가짜 신분증(헤더)을 만들어 보안 검사를 통과하고 관리자처럼 행동할 수 있는 문제입니다. 이를 통해 허가되지 않은 데이터에 접근하거나 시스템을 조작할 수 있습니다.
🇺🇸 원문 (English)
Cosmos provides users the ability self-host a home server by acting as a secure gateway to your application, as well as a server manager. Prior to 0.22.19, tokenMiddleware in src/proxy/routerGen.go can return through the Constellation tunnel bypass before removing x-cosmos-user, x-cosmos-role, x-cosmos-user-role, and x-cosmos-mfa headers and before invoking AdminOnlyWithRedirect. An attacker with a valid x-cstln-auth API key for an enrolled device who reaches Cosmos through the Constellation Nebula tunnel can supply a chosen x-cosmos-user value to a route with AuthEnabled enabled when the upstream application trusts that forward-auth header. The request can bypass Cosmos JWT, password, MFA, and AdminOnly checks, allowing user impersonation and admin-tier reads or writes exposed by the proxied application. This issue is fixed in version 0.22.19.
📍 영향받는 시스템
Cosmos versions prior to 0.22.19
⚔️ 공격 벡터
Constellation Nebula 터널을 통해 조작된 x-cosmos-user 헤더를 포함한 요청을 전송하여 인증을 우회함
🛡️ 대응 방법
Cosmos를 버전 0.22.19 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 0.22.19 미만이면 취약한 상태이며, 0.22.19 이상이면 안전합니다.
cosmos --version 2>/dev/null | grep -E '0\.[0-9]+\.[0-9]+' || echo 'version not found'
📊 CVSS Vector String
CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
💻 영향받는 소프트웨어
IBM WebSphere Application Server