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

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

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

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

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
GhostLock-for-OnePlus15T — (CVE-2026-43499) 부트로더가 잠금 해제되지 않은 원플러스 15T용 커널 익스플로잇 프로그램. | Kitploit
도구/GitHubGitHub/cuteaplane/ghostlock-for-oneplus15t
Android SecurityPrivilege EscalationVulnerability AnalysisExploitationMobile SecurityPayload DevelopmentBinary Exploitation
GitHubcuteaplane/ghostlock-for-oneplus15t

GhostLock-for-OnePlus15T

(CVE-2026-43499) 부트로더가 잠금 해제되지 않은 원플러스 15T용 커널 익스플로잇 프로그램.

저장소 보기
12127일 전아직 검토되지 않음

인기

모두 보기 →

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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

GhostLock — OnePlus 15T

中文

잠금 해제된 부트로더(locked bootloader) OnePlus 15T 기기를 대상으로 하는 커널 익스플로잇. CVE-2026-43499를 사용하여 부트로더를 잠금 해제하거나 boot.img를 수정하지 않고 루트 권한을 획득합니다.

승인된 보안 연구 및 교육 목적으로만 사용하십시오.

원본 GhostLock-for-OnePlus 저장소에서 수정되었으며, OnePlus 15T(PLZ110 / SM8850 / Snapdragon 8 Elite)의 물리 메모리 레이아웃과 CPU 타이밍에 맞게 조정되었습니다.


목차

  • 취약점 개요
  • 지원 기기
  • 사전 요구 사항
  • 빌드
  • 사용법
  • 실행 모드
  • 기술적 세부 사항
  • 파일 구조
  • 새 기기 추가
  • FAQ

취약점 개요

항목세부 정보
CVECVE-2026-43499
유형Futex PI(우선순위 상속) Use-After-Free
영향 범위Linux 커널 2.6.39 ~ 7.1
수정 버전Mainline 7.1(커밋 3bfdc63936dd)
Android 상태GKI 6.12.x 여전히 취약

근본 원인

pselect6 시스템 콜은 fd_set을 커널 스택에 복사합니다. futex PI 대기자(waiter) 메커니즘과 결합되면, 해제된 스택 프레임이 rt_mutex_waiter 구조체로 재할당될 수 있습니다. PI 체인 순회 중 RB-트리 리밸런싱이 제어된 데이터를 임의의 커널 주소에 기록합니다.

공격 체인

root@kitploit:~
futex PI UAF (CVE-2026-43499)
  ├─ Forge rt_mutex_waiter object
  ├─ Control kernel stack via pselect/select fd_set layout
  ├─ Trigger rt_mutex PI operation for arbitrary write
  ├─ Write 1: selinux_state.enforcing = 0
  └─ Write 2: cred → init_cred (uid=0, full capabilities)

지원 기기

기기코드네임SoC커널펌웨어상태
OnePlus 15TPLZ110SM8850 (Snapdragon 8 Elite)6.12.38-android16-5-g844001fb8721-ab14552068-4kColorOS 16.0.9.400✅ 검증됨

Ace 6T 및 OnePlus 15는 원본 저장소를 참조하십시오.


사전 요구 사항

ksud (KernelSU에 필요)

GhostLock은 권한 상승을 처리합니다. KernelSU 설치에는 ksud(KMI별 kernelsu.ko 번들 포함)가 필요합니다:

출처비고
ReSukiSU APK (권장)ReSukiSU 설치 — APK에 libksud.so 번들 포함
CI 릴리스에서 다운로드 ()

ksud가 없어도 익스플로잇은 uid=0 루트 셸을 획득하지만, KernelSU는 설치되지 않으며 su는 유지되지 않습니다.


빌드

사전 요구 사항

  • Android NDK (r25 이상)
  • ANDROID_NDK_HOME 또는 ANDROID_NDK_ROOT 설정

빌드

root@kitploit:~
# Default (API 35)
make

# Specify API level
make API=34

# Specify NDK path
NDK=/path/to/android-ndk make

빌드 산출물

ghostlock — 정적으로 링크된 ARM64 ELF 실행 파일.


사용법

1회성 설정

root@kitploit:~
# 1. Enable ADB TCP mode
adb tcpip 5555

# 2. Push ADB key (required for bootstrap mode)
adb push ~/.android/adbkey /data/local/tmp/a/adbkey

# 3. Push the exploit
adb push ghostlock /data/local/tmp/a/e
adb shell chmod 755 /data/local/tmp/a/e

첫 성공 이후에는 resetprop가 자동으로 persist.adb.tcp.port=5555를 설정하므로, 이후 재부팅 시 완전 자동 실행이 가능합니다.


실행 모드

전체 익스플로잇 (ADB 셸 컨텍스트)

root@kitploit:~
/data/local/tmp/a/e
  • perf 사용 가능, 정밀한 자식 task_struct 누출
  • 2단계: W1 SELinux 비활성화 → W2 권한 상승 → KernelSU 로드

부트스트랩 모드 (앱 컨텍스트, seccomp 제한)

root@kitploit:~
/data/local/tmp/a/e --bootstrap
  1. Write 1 → SELinux 비활성화
  2. 해제된 권한으로 setprop를 사용해 ADB TCP 5555 활성화
  3. 내장 Mini ADB 클라이언트가 127.0.0.1:5555에 연결
  4. 사전에 푸시된 키로 RSA 인증
  5. ADB 셸을 통한 전체 익스플로잇 실행 (seccomp 없음)

Write 1 전용

root@kitploit:~
/data/local/tmp/a/e --write1
  • 최대 20회 시도
  • 디버깅 또는 임시 SELinux 비활성화에 유용

기술적 세부 사항

1. 런타임 커널 매칭

src/devices/offsets.h 조회 테이블에 저장된 오프셋으로, uname -r을 키로 사용합니다. 프로그램은 시작 시 자동으로 매칭하며, 알 수 없는 커널은 거부합니다.

root@kitploit:~
static const struct kernel_offsets known_offsets[] = {
  OFFSETS_ENTRY("6.12.38-android16-5-...-ab14275539-4k", ...),
  OFFSETS_ENTRY("6.12.38-android16-5-...-ab14552068-4k", ...),
  OFFSETS_ENTRY("6.12.23-android16-5-...-ab14541642-4k", ...),
  { .uname_r = NULL }  /* sentinel */
};

오프셋 소스

BTF 검증 구조체

2. KASLR 우회

SLIDE 모드 — boot_id 누출

커널 포인터가 제한된 경우(kptr_restrict), 커널 주소로 덮어쓴 boot_id를 통해 베이스 주소를 누출합니다:

root@kitploit:~
Read /proc/sys/kernel/random/boot_id
  └─ UUID contains nfulnl_logger address
      └─ KASLR slide = leaked_addr - image_offset
          └─ kaslr_base

FOPS/CFI 모드 — fops 테이블 누출

ashmem 기기에 접근 가능한 경우, configfs 읽기/쓰기 프리미티브를 사용해 ashmem fops 테이블에서 함수 포인터를 읽고 KASLR 오프셋을 계산합니다.

3. 커널 힙 스프레이

order-3(32KB) 페이지에 커널 객체를 위조합니다:

  • 가짜 file_operations — ashmem miscdevice fops 포인터 하이재킹
  • 가짜 rt_mutex_waiter — PI 체인 대기자 노드 시뮬레이션
  • 가짜 task_struct — PI 순회 중 작업 참조
  • 가짜 rt_mutex(락) — 올바른 waiter/owner 정보

SKB(소켓 버퍼) + KernelSnitch로 구현:

  • KernelSnitch — futex 해시 충돌로 mm_struct 주소 누출
  • SKB 스프레이 — sendmsg로 커널 힙 채우기

4. 물리 메모리 R/W (파이프)

KASLR 베이스를 획득한 후, 파이프 버퍼를 사용해 물리 메모리 수준의 접근을 수행합니다:

root@kitploit:~
1. Locate pipe buffer in physmap
2. Forge pipe_buffer ops table pointing to known pipe_buf_ops
3. Hijack pipe_buffer.page to target physical address
4. Arbitrary physical read/write via normal pipe operations

지원: pipe_read64, pipe_write64, pipe_phys_read_data, pipe_phys_write_data

5. 2단계 쓰기

Write 1 — SELinux 비활성화

root@kitploit:~
Target: selinux_state.enforcing (offset 0x00)
Method: child-node PI write → forge waiter __rb_parent_color
        pointing to selinux_enforcing - 8
        rb-tree rebalance writes 0x00

Write 2 — 루트 권한 상승

root@kitploit:~
Target: child process cred pointer
Method: 1. fork child → perf_find_task() locate task_struct
        2. calculate cred field offset
        3. child-node PI write → cred = init_cred (uid=0, full caps)
        4. clear seccomp (TIF_SECCOMP + seccomp struct zeroed)

cred 덮어쓰기 후 capability 읽기 검증을 수행합니다.

6. 내장 Mini ADB 클라이언트

src/core/miniadb.c — 부트스트랩 모드용 경량 ADB 프로토콜 클라이언트:

root@kitploit:~
1. TCP connect 127.0.0.1:5555
2. A_CNXN → connection request
3. A_AUTH → RSA token challenge
4. dlopen("libcrypto.so") → PEM_read_bio_RSAPrivateKey → RSA_sign
5. A_AUTH (AUTH_SIGNATURE) → signed response
6. A_CNXN → connection established
7. A_OPEN "shell:/data/local/tmp/a/e" → full exploit

SHA-1 및 SHA-256 서명 알고리즘을 지원합니다.


파일 구조

root@kitploit:~
ghostlock-oneplus/
├── Makefile                        # Build configuration (NDK cross-compile)
├── README.md                       # Documentation
├── src/
│   ├── core/                       # Core exploit code
│   │   ├── main.c                  # Entry point: two-stage write + root shell
│   │   ├── fops.c                  # FOPS/CFI mode: pselect route, PI write, KASLR leak
│   │   ├── util.c                  # Utilities: heap spray, KASLR, kernel R/W primitives
│   │   ├── slide.c                 # SLIDE mode: boot_id KASLR leak + pselect route
│   │   ├── pipe.c                  # Pipe buffer physical memory R/W (physrw)
│   │   ├── root.c                  # Cred overwrite, seccomp clear, root child mgmt
│   │   ├── miniadb.c              # Built-in ADB client (TCP + RSA auth)
│   │   ├── common.h               # Global macros, structs, declarations, constants
│   │   ├── target.h               # Target memory layout / struct offsets / KASLR params
│   │   ├── offset.h               # Compile-time target config bridge (#include TARGET_CONFIG_H)
│   │   └── kernelsnitch/          # KernelSnitch — mm_struct address leak
│   │       ├── kernelsnitch.h     # Core algorithm: futex hash collision + brute-force
│   │       ├── futex_hash.h       # Futex hash function
│   │       ├── timeutils.h        # CPU timestamp measurement (RDTSC)
│   │       └── utils.h            # Helper macros (pr_info / SYSCHK / ASSERT etc.)
│   └── devices/                   # Device offset tables
│       ├── offsets.h              # Aggregate all device offsets (lookup table + sentinel)
│       ├── ace6t/offsets.h        # OnePlus Ace 6T offsets (2 kernel versions)
│       └── op15/offsets.h         # OnePlus 15 offsets (1 kernel version)
└── tools/                         # Offset extraction toolchain
    ├── extract_target.py          # Extract kallsyms global symbol offsets (28 items)
    └── extract_btf.py             # Extract BTF struct field offsets (57 items)

핵심 모듈 개요


새 기기 추가

이 저장소는 수정되었습니다. 자세한 내용은 원본 저장소를 참조하십시오.


FAQ

Q: 실행 시 출력이 없나요?

ADB 셸에서 실행 중인지 확인하세요. 앱 컨텍스트에서는 --bootstrap가 필요합니다.

Q: "no offsets for this kernel"?

현재 커널 버전이 아직 지원되지 않습니다. 새 기기 추가에 따라 오프셋을 추출하고 다시 빌드하세요.

Q: Write 1이 계속 실패하나요?

  • 올바른 CPU 코어에 고정되었는지 확인하세요 (CORE 매크로)
  • PSELECT_ENTER_DELAY_USEC 타이밍을 조정하세요
  • 간섭하는 프로세스가 있는지 확인하세요

Q: Write 2의 perf가 0을 반환하나요?

  • seccomp가 perf_event_open을 차단하는지 확인하세요 (앱 컨텍스트에서는 --bootstrap 사용)
  • KASLR 우회가 성공했는지 확인하세요 (kaslr_base 유효성)

Q: KernelSU가 로드되지 않나요?

  • ksud가 존재하고 실행 가능한지 확인하세요
  • 네트워크 정책 파일 무결성을 확인하세요 (load_policy 수정)

라이선스

승인된 보안 연구 및 교육 목적으로만 사용하십시오.

도구 다운로드
ReSukiSU CI
ksud-aarch64-linux-android.zip
유형개수추출 방법
kallsyms 전역 심볼28tools/extract_target.py
BTF 구조체 필드57tools/extract_btf.py
파생 값9자동 계산
고정 상수12하드코딩
구조체필드용도
task_struct17프로세스 디스크립터, cred, seccomp
rt_mutex_waiter6UAF 위조 대상
cred4자격 증명, capabilities
seccomp3seccomp 필터 상태
pipe_inode_info11파이프 버퍼 연산
file_operations13가짜 fops 테이블
mm_struct1메모리 디스크립터 소유자
모듈파일담당
진입점main.cCLI 파싱, W1/W2 디스패치, 부트스트랩 흐름
PI 경로fops.c / slide.cpselect/select 스택 레이아웃, futex PI 체인 조작
KASLRutil.c / fops.c / slide.c이중 모드 우회: boot_id 누출 + fops 테이블 누출
힙 스프레이util.corder-3 페이지 할당, SKB 스프레이, 위조 객체 레이아웃
물리 R/Wpipe.c파이프 버퍼 하이재킹, 임의 물리 메모리 접근
권한 상승root.ccred 덮어쓰기, capability 검증, seccomp 제거
ADBminiadb.c경량 ADB 프로토콜 클라이언트, RSA 인증
누출 엔진kernelsnitch/mm_struct 위치 탐색을 위한 futex 해시 충돌