Exploit database

GH-14fb583d3d1bd2da10251bb1a37b93d6

gitchw/ghostlock-cve-2026-43499

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

170 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/examine_cred_like.py

Python · 2,986 bytes
import sys
sys.path.insert(0, 'pylibs')
import struct
from capstone import Cs, CS_ARCH_ARM, CS_MODE_ARM

with open('kernel_raw.bin', 'rb') as f:
    data = f.read()
BASE = 0xC0008000
md = Cs(CS_ARCH_ARM, CS_MODE_ARM)

# Examine cred-like structure at 0xc1b173e8
print("=== Structure at 0xc1b173e8 (cred candidate) ===")
for off in range(0, 0x60, 4):
    val = struct.unpack('<I', data[0xc1b173e8-BASE+off:0xc1b173e8-BASE+off+4])[0]
    labels = {0:'usage',4:'uid',8:'gid',0xc:'suid',0x10:'sgid',0x14:'euid',
              0x18:'egid',0x1c:'fsuid',0x20:'fsgid',0x24:'securebits',
              0x28:'cap_inh',0x2c:'cap_inh+4',0x30:'cap_prm',0x34:'cap_prm+4',
              0x38:'cap_eff',0x3c:'cap_eff+4'}
    label = labels.get(off, '')
    print(f"  +0x{off:02x}: 0x{val:08x} {label}")

# Check what references 0xc1b115ac (the BSS pointer to this cred)
print("\n=== References to BSS 0xc1b115ac ===")
target = 0xc1b115ac
target_lo = target & 0xffff
target_hi = (target >> 16) & 0xffff
for i in range(0, len(data) - 8, 4):
    inst1 = struct.unpack('<I', data[i:i+4])[0]
    inst2 = struct.unpack('<I', data[i+4:i+8])[0]
    if (inst1 & 0x0ff00000) == 0x03000000:
        val = ((inst1 >> 16) & 0xf) | (inst1 & 0xf00) | ((inst1 & 0xf0000) >> 4)
        if val == target_lo and (inst2 & 0x0ff00000) == 0x03400000:
            val2 = ((inst2 >> 16) & 0xf) | (inst2 & 0xf00) | ((inst2 & 0xf0000) >> 4)
            if val2 == target_hi:
                addr = BASE + i
                print(f"  Code ref at 0x{addr:08x}")
                code = data[max(0,i-12):i+20]
                start = max(BASE, addr-12)
                for ins in md.disasm(code, start):
                    print(f'    0x{ins.address:08x}: {ins.mnemonic}\t{ins.op_str}')

# Also check 0xc1b11acc -> 0xc1b323b0
print("\n=== Structure at 0xc1b323b0 ===")
for off in range(0, 0x40, 4):
    val = struct.unpack('<I', data[0xc1b323b0-BASE+off:0xc1b323b0-BASE+off+4])[0]
    print(f"  +0x{off:02x}: 0x{val:08x}")

# Check references to 0xc1b11acc
target = 0xc1b11acc
target_lo = target & 0xffff
target_hi = (target >> 16) & 0xffff
for i in range(0, len(data) - 8, 4):
    inst1 = struct.unpack('<I', data[i:i+4])[0]
    inst2 = struct.unpack('<I', data[i+4:i+8])[0]
    if (inst1 & 0x0ff00000) == 0x03000000:
        val = ((inst1 >> 16) & 0xf) | (inst1 & 0xf00) | ((inst1 & 0xf0000) >> 4)
        if val == target_lo and (inst2 & 0x0ff00000) == 0x03400000:
            val2 = ((inst2 >> 16) & 0xf) | (inst2 & 0xf00) | ((inst2 & 0xf0000) >> 4)
            if val2 == target_hi:
                addr = BASE + i
                print(f"  Code ref to 0xc1b11acc at 0x{addr:08x}")

# Let's also look at what's around 0xc1b115ac in BSS
print("\n=== BSS around 0xc1b115ac ===")
for off in range(-0x20, 0x30, 4):
    addr = 0xc1b115ac + off
    val = struct.unpack('<I', data[addr-BASE:addr-BASE+4])[0]
    tag = ""
    if 0xc1b00000 <= val < 0xc1c00000: tag = " <bss>"
    print(f"  0x{addr:08x} ({off:+d}): 0x{val:08x}{tag}")