🇰🇷 한글 설명
cbis_manager Podman 컨테이너의 /api/plugins 엔드포인트에서 HTTP 헤더(X-FILENAME, X-PAGE, X-FIELD)의 불충분한 검증으로 인해 원격 명령어 실행 취약점이 존재합니다. 공격자는 악의적인 헤더 값을 subprocess.Popen에 직접 주입하여 root 권한으로 임의 명령어를 실행할 수 있습니다.
💡 쉬운 설명
cbis_manager 웹 서비스가 사용자 입력(특정 HTTP 헤더)을 안전하게 검증하지 않아 공격자가 원격으로 명령어를 실행할 수 있습니다. 서비스가 최고 권한(root)으로 실행되므로 공격자도 같은 권한으로 시스템을 제어할 수 있습니다.
🇺🇸 원문 (English)
The cbis_manager Podman container is vulnerable to remote command execution via the /api/plugins endpoint. Improper sanitization of the HTTP Headers X-FILENAME, X-PAGE, and X-FIELD allows for command injection. These headers are directly utilized within the subprocess.Popen Python function without adequate validation, enabling a remote attacker to execute arbitrary commands on the underlying system by crafting malicious header values within an HTTP request to the affected endpoint.
The web service executes with root privileges within the container environment, the demonstrated remote code execution permits an attacker to acquire elevated privileges for the command execution.
Restricting access to the management network with an external firewall can partially mitigate this risk.
📍 영향받는 시스템
cbis_manager Podman 컨테이너 (정확한 버전 범위 미지정)
⚔️ 공격 벡터
HTTP 요청의 X-FILENAME, X-PAGE, X-FIELD 헤더에 OS 명령어 주입 후 /api/plugins 엔드포인트 호출
🛡️ 대응 방법
HTTP 헤더 입력 검증/필터링 구현, 관리 네트워크 외부 방화벽 제한, 컨테이너 실행 권한을 non-root으로 변경
🔧 검증 코드
실행 중인 cbis_manager 컨테이너의 이미지 및 상태가 표시되면 해당 버전의 패치 여부를 확인하고 필요 시 최신 이미지로 재배포합니다.
podman ps -a --format "{{.Image}} {{.Status}}" | grep cbis