🇰🇷 한글 설명
Coder의 특정 API 엔드포인트에서 인증되지 않은 상태로 서버 측 요청 위조(SSRF)가 발생할 수 있는 취약점입니다. 공격자는 조작된 PKCS#7 서명을 제출하여 Coder 서버가 내부 또는 외부의 임의 호스트로 HTTP GET 요청을 보내도록 강제할 수 있습니다. 비록 응답 본문은 반환되지 않으나, 에러 메시지를 통해 대상의 도달 가능 여부를 파악할 수 있는 semi-blind 방식의 공격이 가능합니다.
💡 쉬운 설명
해커가 Coder 서버를 속여서 서버 내부의 다른 컴퓨터나 네트워크에 몰래 접속을 시도하게 만드는 보안 약점입니다. 서버가 직접 요청을 보내는 것처럼 보이기 때문에 내부 네트워크 정보가 유출될 위험이 있습니다.
🇺🇸 원문 (English)
Coder allows organizations to provision remote development environments via Terraform. Versions prior tp 2.24.5, 2.29.13, 2.30.8, 2.31.12, 2.32.2, and 2.33.3 are vulnerable to unauthenticated semi-blind Server-Side Request Forgery (SSRF) via the Azure instance identity endpoint (`POST /api/v2/workspaceagents/azure-instance-identity`). An external attacker can force the Coder server to issue HTTP GET requests to arbitrary internal or external hosts by submitting a crafted PKCS#7 signature. The server does not return the target's response body, but error messages in the API response reveal whether the target is reachable and what type of failure occurred. Versions 2.24.5, 2.29.13, 2.30.8, 2.31.12, 2.32.2, and 2.33.3 patch the issue. As a workaround, if the Azure identity-auth mechanism is not being used then restrict access to the corresponding endpoint (`/api/v2/workspaceagents/azure-instance-identity`) using ingress firewall and/or proxy ACLs.
📍 영향받는 시스템
Coder versions prior to 2.24.5, 2.29.13, 2.30.8, 2.31.12, 2.32.2, and 2.33.3
⚔️ 공격 벡터
조작된 PKCS#7 서명을 포함한 POST 요청을 /api/v2/workspaceagents/azure-instance-identity 엔드포인트로 전송
🛡️ 대응 방법
취약점이 해결된 버전(2.24.5, 2.29.13, 2.30.8, 2.31.12, 2.32.2, 2.33.3 이상)으로 업데이트하거나, 해당 엔드포인트에 대한 접근을 방화벽 또는 프록시 ACL로 제한
🔧 검증 코드
출력된 버전 번호가 패치된 버전(2.24.5, 2.29.13, 2.30.8, 2.31.12, 2.32.2, 2.33.3) 중 하나와 같거나 그보다 높은지 확인하십시오.
coder --version 2>/dev/null | grep -E '2'