🇰🇷 한글 설명
Joyent Smart Data Center의 docker API에서 사용자 입력값을 제대로 검증하지 않아 발생하는 취약점입니다. 저권한 코드 실행이 가능한 공격자가 임의의 파일을 업로드하여 root 권한으로 시스템에서 임의 코드를 실행할 수 있습니다.
💡 쉬운 설명
Docker API가 업로드된 파일을 확인하지 않아서 악의적인 파일을 올릴 수 있습니다. 악의적인 파일을 통해 공격자가 전체 시스템을 완전히 장악할 수 있습니다.
🇺🇸 원문 (English)
This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Joyent Smart Data Center prior to
[email protected] (e469cf49-4de3-4658-8419-ab42837916ad). An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability. The specific flaw exists within the docker API. The process does not properly validate user-supplied data which can allow for the upload of arbitrary files. An attacker can leverage this vulnerability to execute arbitrary code under the context of root. Was ZDI-CAN-3853.
📍 영향받는 시스템
Joyent Smart Data Center agentsshar < 1.0.0-release-20160901-20160901T051624Z
⚔️ 공격 벡터
저권한 사용자가 docker API의 파일 업로드 기능을 이용해 검증되지 않은 파일을 시스템에 업로드
🛡️ 대응 방법
agentsshar를 1.0.0-release-20160901-20160901T051624Z 이상의 버전으로 즉시 업그레이드
🔧 검증 코드
출력된 버전이 1.0.0-release-20160901-20160901T051624Z 이상이면 안전, 그 이하이거나 'not installed'가 출력되면 영향받음
cat /opt/smartdc/agentsshar/package.json 2>/dev/null | grep -oP '"version"\s*:\s*"\K[^"]+' || echo 'not installed'