Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
xzk8s — Dockerfile 및 Kubernetes 매니페스트: CVE-2024-3094 재현용 | Kitploit
도구/GitHubGitHub/r0binak/xzk8s
Container SecurityVulnerability AnalysisExploitationPenetration TestingCloud SecuritySupply Chain Security
GitHubr0binak/xzk8s

xzk8s

Dockerfile 및 Kubernetes 매니페스트: CVE-2024-3094 재현용

저장소 보기
14342년 전아직 검토되지 않음

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

xzk8s

Docker Pulls xzk8s

CVE-2024-3094 재현을 위한 Dockerfile 및 Kubernetes 매니페스트

이미지 빌드

취약한 xz 유틸리티의 debian 버전을 기본 이미지로 사용합니다. 또한 라이브러리를 패치해야 합니다. 패치된 liblzma 라이브러리 버전은 xzbot 저장소에서 가져왔습니다.

root@kitploit:~
FROM debian:experimental-20240311@sha256:16cc2b09c44d991d36f63153f13a7c98fb7da6bd2ba9d7cc0f48baacb7484970
# use debian with a vulnerable version of xz utils as the base image
RUN apt-get update && apt-get install -y openssh-server
RUN mkdir /var/run/sshd
RUN echo 'root:root123' | chpasswd
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config

EXPOSE 22

COPY liblzma.so.5.6.0.patch /root/
# in order to exploit the vulnerability you must use a patched library because 
# the exploit author originally hardcoded his public key
# in the patched library this key has been swapped out

ENV LD_PRELOAD=/root/liblzma.so.5.6.0.patch

# load the patched library via LD_PRELOAD

CMD ["/usr/sbin/sshd", "-D"]

익스플로잇 데모

먼저, 이전 단계에서 만든 이미지로 간단한 Pod를 배포해야 합니다:

root@kitploit:~
apiVersion: v1
kind: Pod
metadata:
  name: cve-2024-3094
  labels:
    app: cve-2024-3094
spec:
  containers:
  - name: cve-2024-3094
    image: r0binak/xzk8s:v1
    ports:
    - containerPort: 22

그런 다음, 포트를 포워딩합니다:

root@kitploit:~
kubectl port-forward backdoor-cve-2024-3094 2222:22

xzbot 익스플로잇을 사용해 보겠습니다:

마지막으로, 컨테이너 내부로 들어가 익스플로잇 결과를 확인해 보겠습니다:

참조

  • https://github.com/amlweems/xzbot/
  • https://www.openwall.com/lists/oss-security/2024/03/29/4
  • https://gist.github.com/smx-smx/a6112d54777845d389bd7126d6e9f504
  • https://gist.github.com/q3k/af3d93b6a1f399de28fe194add452d01
  • https://gist.github.com/keeganryan/a6c22e1045e67c17e88a606dfdf95ae4
도구 다운로드