v2.0 — 31 C POC twins + harness fixes
- 31 C POC files, one per CVE folder: full seed construction + trigger + main(), self-contained, no app dependency. All compile clean with clang -O2 -Wall (zero warnings) on macOS arm64; each has a recorded oracle on this host. - CMGetDMVersionLevelFromRPU ABI pinned by disassembly: macOS export is (CFDataRef), the Swift POC drives the 4-arg iOS surface — this is the mechanism behind the cm.rpu death oracle on the simulator build. - Harness fixes: glyphCount guard, MachOInspector size guard, ModTools clamp, DeviceModel iPhone19,7, GPTPayload clamps, Gate patch display. - POC comments rewritten English-only (31 swift + arc.rr + 5 py). - README (en/zh): C twin column, .c anatomy section, compile/run examples, C oracle verification status. - Dead if-let binding removed from Identity summary; v2.0 build 3.
This commit is contained in:
1 parent
1ea76ab005
commit
7949c7ce9f
79 files changed
+4109
-892
No files matched your search
@@ -0,0 +1,39 @@
|
||||
// sb.stash · SpringBoard · SBHomeScreenService stashed layout · CVE-2026-112646
|
||||
// Stashed layout name validation probe
|
||||
// C twin of the Swift POC: looks up SBHomeScreenService in this process, checks for
|
||||
// the 27.2 validation selector, and stats the container's IconState.plist.
|
||||
// Build: clang -O2 -o cve-2026-112646 CVE-2026-112646.c -lobjc
|
||||
// Run: ./cve-2026-112646
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <objc/runtime.h>
|
||||
|
||||
int main(void) {
|
||||
// class lookup: SpringBoard's own classes are only registered inside SpringBoard
|
||||
Class cls = objc_getClass("SBHomeScreenService");
|
||||
printf("SBHomeScreenService in this process: %s\n", cls ? "yes" : "no");
|
||||
|
||||
SEL validator = sel_registerName("_validationErrorForStashedLayoutName:");
|
||||
if (cls && class_respondsToSelector(cls, validator)) {
|
||||
printf(" validation method present (27.2 fixed)\n");
|
||||
} else {
|
||||
printf(" validation method absent (27.0 unfixed)\n");
|
||||
}
|
||||
|
||||
// container probe: IconState.plist only exists inside SpringBoard's container
|
||||
const char *home = getenv("HOME");
|
||||
char path[1024];
|
||||
snprintf(path, sizeof path, "%s/Library/SpringBoard/IconState.plist", home ? home : "/tmp");
|
||||
struct stat st;
|
||||
if (stat(path, &st) == 0) {
|
||||
printf("IconState.plist in this container: present (%lld B)\n", (long long)st.st_size);
|
||||
} else {
|
||||
printf("IconState.plist in this container: absent\n");
|
||||
}
|
||||
printf("CVE-2026-112646 · stashed-layout surface is SpringBoard-only; other processes\n"
|
||||
"reach it only through the XPC surface the 27.0 build left unvalidated\n");
|
||||
return 0;
|
||||
}
|
||||
@@ -1,21 +1,8 @@
|
||||
// sb.stash · SpringBoard · SBHomeScreenService · CVE-2026-112646
|
||||
// 原语: OOB 写 · 系统进程 · tier 3
|
||||
// Primitive: OOB write · system process · tier 3
|
||||
//
|
||||
// [zh] SpringBoard 布局名 stash 校验
|
||||
// 27.2 新增 +[SBHomeScreenService _validationErrorForStashedLayoutName:]:拒绝空串、限制长度 ≤ 64、施加字符集白名单,作用于
|
||||
// stash/restore 的 XPC 接口。27.0 的该接口不含此层校验。
|
||||
//
|
||||
// [en] SpringBoard stashed layout name validation
|
||||
// iOS 27.2 adds +[SBHomeScreenService _validationErrorForStashedLayoutName:]: reject empty, cap length
|
||||
// at 64, apply a character-set allowlist, on the stash/restore XPC interface. The 27.0 interface
|
||||
// has no such layer.
|
||||
// ── 判别 / oracle ──
|
||||
// 应用侧只能看 SpringBoard 服务是否可达、类是否在进程里。真正的入口是 XPC,需要越过沙盒。
|
||||
|
||||
// SpringBoard stashed layout name validation
|
||||
import Foundation
|
||||
|
||||
// ── byte helpers — verbatim from Cinder27 Sources/Kit.swift ──
|
||||
// ── byte helpers (from Cinder27 Sources/Kit.swift) ──
|
||||
enum B {
|
||||
static func be16(_ v: UInt16) -> [UInt8] { [UInt8(v >> 8 & 0xff), UInt8(v & 0xff)] }
|
||||
static func le16(_ v: UInt16) -> [UInt8] { [UInt8(v & 0xff), UInt8(v >> 8 & 0xff)] }
|
||||
@@ -37,4 +24,3 @@ enum B {
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user