Windows kubectl cp 임의 경로 파일 쓰기 수정
medium공격자가 소스 컨테이너를 제어하면 악의적인 아카이브 경로가 지정된 대상에서 벗어나 로컬 사용자의 시스템 권한으로 허용되는 모든 위치에 파일을 쓸 수 있었습니다. 업그레이드 후에는 해당 경로가 대상에서 벗어날 수 없습니다.
원문 보기
A path traversal vulnerability exists in the `kubectl cp` command when it is run on Windows. `kubectl cp` copies files between containers and the user machine. To copy files *from* a container, Kubernetes runs `tar` inside the container to create a tar archive, copies it over the network, and `kubectl` unpacks it on the user's machine. If the `tar` binary in the container is malicious, it could run any code and output unexpected, malicious results. An attacker who controls the contents of a container could use this to write files to arbitrary paths on the user's machine when `kubectl cp` is called, limited only by the system permissions of the local user. This issue only affects clients on Windows platforms. You are affected if you run the `kubectl` client on Windows and use `kubectl cp` to copy files *from* a container whose contents you do not fully control. Prior to upgrading, this vulnerability can be mitigated by only copying files from containers you trust, or by avoiding `kubectl cp` from untrusted containers on Windows.github.com/kubernetes/kubernetes/issues/141294
kubectl cp path traversal on Windows allows arbitrary file writesgithub.com/kubernetes/kubernetes/issues/141294