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
@@ -1,20 +1,8 @@
|
||||
// iio.tiff.trunc · ImageIO · decodeStripChunky · CVE-2026-112632
|
||||
// 原语: 信息泄露 · 进程内 · tier 2
|
||||
// Primitive: info leak · in-process · tier 2
|
||||
//
|
||||
// [zh] TIFF 截断条带 → 未初始化堆进像素
|
||||
// TIFFReadEncodedStrip 的返回值未被检查。读取失败时,未初始化的 malloc 条带缓冲被散写进输出图像,故解码所得像素即为进程堆中的残留内容。
|
||||
//
|
||||
// [en] TIFF truncated strip → uninitialised heap into pixels
|
||||
// The return value of TIFFReadEncodedStrip is never checked. On read failure the uninitialised malloc'd
|
||||
// strip buffer is scattered into the output image, so the decoded pixels are whatever was left on
|
||||
// the process heap.
|
||||
// ── 判别 / oracle ──
|
||||
// 判别方法:对同一文件连续解码三次并比对输出指纹。若条带区域每次不同,即证明取到的是未初始化堆。27.2 将其零填充并输出 \"strip %d is zero-filled\"。
|
||||
|
||||
// TIFF truncated strip → uninitialised heap into pixels
|
||||
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)] }
|
||||
@@ -35,7 +23,7 @@ enum B {
|
||||
static func ascii(_ s: String) -> [UInt8] { Array(s.utf8) }
|
||||
}
|
||||
|
||||
// ── 种子构造 / seed construction — verbatim from Cinder27 Sources (TIFFPayload) ──
|
||||
// ── seed construction (from Cinder27 Sources: TIFFPayload) ──
|
||||
enum TIFFPayload {
|
||||
struct Entry {
|
||||
let tag: UInt16
|
||||
|
||||
Reference in new issue
Block a user