Exploit database

GH-14fb583d3d1bd2da10251bb1a37b93d6

gitchw/ghostlock-cve-2026-43499

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

164 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files678
gitchw/ghostlock-cve-2026-43499Revision 96acd93156f6
Next files →

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

analysis/check_css_frame.py

Python · 2,041 bytes
#!/usr/bin/env python3
"""Get exact frame of core_sys_select and check all high stack accesses."""
from capstone import Cs, CS_ARCH_ARM, CS_MODE_ARM
import re

KERNEL = r"F:\phone\ow251\全量包\kernel_raw.bin"
BASE = 0xC0008000

with open(KERNEL, "rb") as f:
    data = f.read()

md = Cs(CS_ARCH_ARM, CS_MODE_ARM)

# core_sys_select prologue
print("=== core_sys_select prologue ===")
off = 0xc031d980 - BASE
for i, insn in enumerate(md.disasm(data[off:off+32], 0xc031d980)):
    print(f"  0x{insn.address:08x}: {insn.mnemonic:10s} {insn.op_str}")
    if i > 10:
        break

# Find epilogue
print("\n=== core_sys_select epilogue ===")
off = 0xc031d980 - BASE
for insn in md.disasm(data[off:off+0x2000], 0xc031d980):
    if insn.mnonym if hasattr(insn, 'mnonym') else insn.mnemonic == 'add' and 'sp, sp, #' in insn.op_str:
        print(f"  0x{insn.address:08x}: {insn.mnemonic:10s} {insn.op_str}")
    if insn.mnemonic == 'pop' and 'pc' in insn.op_str:
        print(f"  0x{insn.address:08x}: {insn.mnemonic:10s} {insn.op_str}")
        break

# All stack accesses >= 0x300
print("\n=== core_sys_select all sp accesses >= 0x300 ===")
off = 0xc031d980 - BASE
for insn in md.disasm(data[off:off+0x2000], 0xc031d980):
    m = re.search(r'\[sp, #(0x[0-9a-f]+|\d+)\]', insn.op_str)
    if m:
        val = int(m.group(1), 0)
        if val >= 0x300:
            print(f"  0x{insn.address:08x}: {insn.mnemonic:10s} {insn.op_str}")
    if insn.mnemonic == 'pop' and 'pc' in insn.op_str:
        break

# Also check add rX, sp, #>=0x300
print("\n=== core_sys_select 'add rX, sp, #>=0x300' ===")
off = 0xc031d980 - BASE
for insn in md.disasm(data[off:off+0x2000], 0xc031d980):
    if insn.mnemonic == 'add' and 'sp' in insn.op_str and '#' in insn.op_str:
        m = re.search(r'#(0x[0-9a-f]+|\d+)', insn.op_str)
        if m:
            val = int(m.group(1), 0)
            if val >= 0x300:
                print(f"  0x{insn.address:08x}: {insn.mnemonic:10s} {insn.op_str}")
    if insn.mnemonic == 'pop' and 'pc' in insn.op_str:
        break