From 68e33e2c1d8aca6a9a8192166c82c10657e92e71 Mon Sep 17 00:00:00 2001 From: tr4m0ryp Date: Mon, 6 Apr 2026 02:09:40 +0200 Subject: [PATCH] chore: Add bounty/ to gitignore and remove from tracking Bug bounty reports contain sensitive vulnerability details that should not be in a public repository. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitignore | 3 ++ bounty/exploit_tests/log.md | 82 ------------------------------------- bounty/overview.md | 51 ----------------------- 3 files changed, 3 insertions(+), 133 deletions(-) delete mode 100644 bounty/exploit_tests/log.md delete mode 100644 bounty/overview.md diff --git a/.gitignore b/.gitignore index 598235f..f9f0e60 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,9 @@ secrets.* notes/ tasks/ +# Bug bounty reports (sensitive, not for public repo) +bounty/ + # Python (if any helper scripts) __pycache__/ *.pyc diff --git a/bounty/exploit_tests/log.md b/bounty/exploit_tests/log.md deleted file mode 100644 index 06de0e2..0000000 --- a/bounty/exploit_tests/log.md +++ /dev/null @@ -1,82 +0,0 @@ -# Exploit Test Log - -## Test 2026-04-05 22:00 -- USB Activation Protocol -- **Device:** iPad8,10 iOS 26.3 -- **State before:** Unactivated -- **Exploit:** HandleActivationInfoRequest with crafted records (plain, FDR-LOCAL signed, host-key signed, escrow bag) -- **Result:** Failed -- **Error:** "Invalid activation nonce" (Code -1) for all variants -- **State after:** Unactivated -- **Notes:** Nonce check happens before certificate validation. FDR-LOCAL keys produce valid signatures but nonce is checked first. - -## Test 2026-04-05 22:15 -- Factory Activation Commands -- **Device:** iPad8,10 iOS 26.3 -- **State before:** Unactivated -- **Exploit:** CreateTunnel1FactoryActivationInfoRequest, CreateFactoryActivationInfoRequest, FactoryActivateRequest -- **Result:** Failed -- **Error:** "Received unknown command" -- commands REMOVED on 26.3 -- **State after:** Unactivated -- **Notes:** Apple stripped factory activation entirely from iOS 26.2+ - -## Test 2026-04-05 22:30 -- AFC File Manipulation -- **Device:** iPad8,10 iOS 26.3 -- **State before:** Unactivated -- **Exploit:** Write SkipSetup, SetupDone, crafted downloads.28.sqlitedb, BLDatabaseManager.sqlite, EPUB payload -- **Result:** Failed -- **Error:** Files written successfully but ignored after reboot / not processed by daemons -- **State after:** Unactivated -- **Notes:** bookassetd exploit (Hana Kim bl_sbx) not processed on 26.3 (patched). SkipSetup ignored because activation check precedes setup skip. - -## Test 2026-04-05 22:45 -- Lockdownd Flag Manipulation -- **Device:** iPad8,10 iOS 26.3 -- **State before:** Unactivated -- **Exploit:** Set 25 flags: allow-hactivation, DisableHactivation, IsProtoDevice, FactoryDevice, BuddySetupComplete, SetupState=Finished, etc. -- **Result:** Failed -- **Error:** All flags set and persistent, but mobileactivationd reads SEP state not lockdownd flags -- **State after:** Unactivated -- **Notes:** Hactivation flags only read by restored_external during DFU restore. Not by running mobileactivationd. - -## Test 2026-04-05 23:00 -- Recovery Mode NVRAM -- **Device:** iPad8,10 iOS 26.3 -- **State before:** Unactivated -- **Exploit:** setenv activation-override=true, skip-setup=true, boot-args skip-activation=1 in recovery mode -- **Result:** Failed -- **Error:** Env vars accepted but don't survive boot on A12+ (SEP controls activation) -- **State after:** Unactivated -- **Notes:** Recovery mode env vars are volatile on A12+. - -## Test 2026-04-05 23:15 -- Boot Timing Race -- **Device:** iPad8,10 iOS 26.3 -- **State before:** Unactivated -- **Exploit:** 200 rapid-fire activation record submissions during boot, with FDR-LOCAL signed records -- **Result:** Failed -- **Error:** All rejected with nonce error, no timing window found -- **State after:** Unactivated -- **Notes:** mobileactivationd initializes nonce check atomically before accepting commands. - -## Test 2026-04-05 23:30 -- Personalization Nonce Roll -- **Device:** iPad8,10 iOS 26.3 -- **State before:** Unactivated -- **Exploit:** Roll personalization nonce via mobile_image_mounter, use as activation nonce -- **Result:** Failed -- **Error:** Personalization nonce is different crypto domain from activation nonce -- **State after:** Unactivated -- **Notes:** Image mounter nonce and activation nonce are independent. - -## Test 2026-04-06 01:05 -- WiFi Captive Portal + JS Execution -- **Device:** iPad8,10 iOS 26.3 -- **State before:** Unactivated -- **Exploit:** DNS interception -> HTTP captive portal -> JavaScript execution in WebSheet -- **Result:** Partial -- JS executes, HTTPS blocked by cert pinning -- **Error:** iPad connects to albert.apple.com:443 but rejects our self-signed cert -- **State after:** Unactivated -- **Notes:** Confirmed JavaScript runs in WebSheet on activation-locked device. Navigation API available. Local services (lockdownd) not accessible from JS. CVE-2026-20643 SOP bypass doesn't work cross-host. - -## Test 2026-04-06 01:37 -- WebSheet Profile Installation -- **Device:** iPad8,10 iOS 26.3 -- **State before:** Unactivated -- **Exploit:** Serve .mobileconfig via data: URI, blob URL, iframe, XHR in WebSheet JS -- **Result:** Failed -- **Error:** Profile link shows "fout bij laden pagina" (page loading error). data: URI redirect fires but no installation dialog. -- **State after:** Unactivated -- **Notes:** WebSheet on activation lock screen cannot install configuration profiles despite profiled-access entitlement. diff --git a/bounty/overview.md b/bounty/overview.md deleted file mode 100644 index be84f3b..0000000 --- a/bounty/overview.md +++ /dev/null @@ -1,51 +0,0 @@ -# Bug Bounty Registry - -## Summary -- Total findings: 2 -- Confirmed bugs: 1 -- Likely bugs: 1 -- Estimated total payout: $12,500 - $35,000 -- Submitted: 0 -- Last updated: 2026-04-06 - -## Findings - -### #01: FDR-LOCAL Private Key Exposure in Firmware -- **File:** bounty/01-fdr-local-key-exposure.md -- **Severity:** High -- **Verified:** CONFIRMED BUG -- **Estimated payout:** $10,000 - $25,000 -- **Submitted:** No -- **Apple response:** -- -- **Key evidence:** RSA-2048 and ECDSA P-256 private keys identical across all IPSW ramdisks, extractable with `strings` command. Keys used by AMFDRCryptoCreateLocalSigned* functions. Self-signed cert with fdr-dev@group.apple.com (dev artifact in production). SHA1 signature (deprecated). -- **Risk of "by design" rejection:** Medium -- Apple may argue LOCAL keys are intended for offline restore. Counter: identical static keys across entire fleet = single point of compromise. - -### #02: Sensitive Services on Activation-Locked Device -- **File:** bounty/02-sensitive-services-locked-device.md -- **Severity:** Medium-High -- **Verified:** LIKELY BUG -- **Estimated payout:** $2,500 - $10,000 -- **Submitted:** No -- **Apple response:** -- -- **Key evidence:** pcapd (network capture), diagnostics_relay (unauthenticated reboot), AFC (read/write personal media), syslog streaming, crash log access, recovery mode entry with nonce exposure -- all without pairing or authentication on activation-locked device. Hactivation factory flags settable and persistent via lockdownd. -- **Risk of "by design" rejection:** Medium -- AFC read access may be intentional for setup. pcapd and diagnostics reboot are harder to justify. - -## Exploit Test Results - -### Latest Test Cycle: 2026-04-06 -- Device: iPad8,10 iOS 26.3 -- USB activation attempts: ALL FAILED (activation nonce barrier) -- WiFi captive portal: JS execution achieved, HTTPS cert pinning blocks MITM -- AFC manipulation: Files written, daemons don't process on 26.3 -- Recovery mode: Env vars don't affect SEP activation -- Status: **No bypass achieved** - -## Pending Research - -- [ ] Extract mobileactivationd from iOS 26.1 IPSW and diff against 26.3 -- [ ] Analyze CVE-2026-28859 (WebKit sandbox escape) for exploitation -- [ ] Deep RE of libFDR nonce generation code path -- [ ] Fuzz mobileactivationd with crafted plist structures -- [ ] Analyze AppleKeyStoreTestUserClient in kernel for IOKit access -- [ ] Test all captive portal profile installation methods -- [ ] Research HTTP (non-HTTPS) activation endpoints