Exploit databaseDownload repository ZIP
GH-945bd5267b0d1b94c3f74faf5cda7e5a
blkph0x/cve-2026-83844_poc
Sources for CVE-2026-83844
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files579
blkph0x/cve-2026-83844_pocRevision 193ed44859da
- ↑..Parent directory
- afl_emf_gdiplus/
- capture/
- generated/
- BFDB_ALLOCATOR_REUSE_PROTOCOL.md
- BFDB_AUTHORING_MEDIA_STATIC.md
- BFDB_AUTHORING_PROTOCOL.md
- BFDB_BOUNDED_MARKER_PLACEMENT_PROTOCOL.md
- BFDB_BYTE_PROVENANCE_PROTOCOL.md
- BFDB_CACHE_PROTOCOL.md
- BFDB_CLOCK_ONLY_CONTROL_PROTOCOL.md
- BFDB_CROSSSLOT_PROTOCOL.md
- BFDB_FAST_FIRST_OPEN_PROTOCOL.md
- BFDB_FOUR_WPR_PROTOCOL.md
- BFDB_GEOMETRY_GUEST_PROTOCOL.md
- BFDB_LFH_CHECKPOINT_PROTOCOL.md
- BFDB_MARKER_ACCEPTANCE.md
- BFDB_MARKER_FIRSTOPEN_SEMANTIC_GATE.md
- BFDB_MARKER_FOUR_FIRSTOPEN_PROTOCOL.md
- BFDB_MARKER_FOUR_PROTOCOL.md
- BFDB_MARKER_ROUTE_CONTROL.md
- BFDB_MARKER_SEMANTIC_GATE.md
- BFDB_NORMAL_EXTENT_PROTOCOL.md
- BFDB_NORMAL_HEAP_PROTOCOL.md
- BFDB_NORMAL_RECORD_PROTOCOL.md
- BFDB_OUTPUT_GATES_PROTOCOL.md
- BFDB_POSTOPEN_PROTOCOL.md
- BFDB_SDK_RESOLUTION_SCAN.md
- BFDB_SINK_GATE_PROTOCOL.md
- BFDB_VALIDATION_LIFETIME_PROTOCOL.md
- BFDB_WPR_HEAP_PROTOCOL.md
- BRUSH_DISPATCH_PROTOCOL.md
- COLD_ATTACH_REPAIR_PLAN.md
- EMF_BFDB_FUZZ_ANALYSIS.md
- EMF_BFDB_FUZZ_BATCH_PROTOCOL.md
- EMF_BFDB_FUZZ_CAMPAIGN.md
- EMF_BFDB_SEQUENCE_PROTOCOL.md
- EMF_BFDB_WARM_PAGEHEAP_PROTOCOL.md
- EMF_CLIPBOARD_VALID_PROTOCOL.md
- EMF_VALID_ACCEPTANCE_PROTOCOL.md
- FILL_LOOP_CENSUS_PROTOCOL.md
- FILL_MOUSE_EVENT_PROTOCOL.md
- FILL_TOUCH_INPUT_PROTOCOL.md
- FILL_WIN32_DISPATCH_PROTOCOL.md
- PROVENANCE_APP11_POSTSEEK_PROTOCOL.md
- PROVENANCE_APP11_READER_SCAN_PROTOCOL.md
- PROVENANCE_APP11_SPLIT_NEW_LABEL_GUARD_PROTOCOL.md
- PROVENANCE_BATCH_E_SUBSET_PROTOCOL.md
- PROVENANCE_COPY_REOPEN_PROTOCOL.md
- PROVENANCE_E_CHILD_DECISION_PROTOCOL.md
- PROVENANCE_FIELD_ID_CONSUMER_PROTOCOL.md
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lab/trace/verify_provenance_child_size_write_window_static.py
Python · 6,103 bytes#!/usr/bin/env python3
"""Verify selected old-SDK JUMBF size-to-write instructions in signed bytes.
This pins the direct superbox window and the common writer's size/copy gates.
It does not prove alias absence, virtual-call behavior, or runtime reachability.
The licensed DLL is supplied locally and is never redistributed.
"""
from __future__ import annotations
import argparse
import hashlib
import struct
from pathlib import Path
from typing import Callable
import pefile
SHA256 = "339d8f47ea7bcc08b0c1f122a1e94d5d31860f1ad1ccf7faea1625ffd6de3904"
# RVA -> complete instruction bytes in signed old x64 provenancesdk.dll.
ANCHORS: dict[int, str] = {
0x4B30: "e9cbb50400", # vector-resize thunk
0x50156: "483bfb", # allocation length vs INT64_MAX
0x501C3: "e818a6fbff", # zero-fill new vector bytes
0x52543: "48898700010000", # fresh superbox cache begin = null
0x5254A: "48898708010000", # fresh superbox cache end = null
0x52551: "48898710010000", # fresh superbox cache capacity = null
0x55B0: "e90bdc1600", # dirty-propagation thunk
0x6EA0: "e96bdf1600", # common writer's type/label diagnostic thunk
0x16FFEF: "e8bc55e9ff", # append calls dirty propagation
0x1731C4: "c6411801", # mark current object dirty
0x1731D0: "c6401801", # mark ancestor dirty
0x173F13: "e89816e9ff", # insert calls dirty propagation
0x174127: "e88414e9ff", # replace calls dirty propagation
0x17432E: "e86d2be9ff", # diagnostic before writer GetBoxSize
0x17433A: "e8b13fe9ff", # writer GetBoxSize
0x1749AF: "498b06", # writer object vtable
0x1749B5: "488b4010", # payload-provider slot +0x10
0x1749C6: "4c2bc2", # provider end - begin
0x1749C9: "493bf8", # destination remaining vs payload count
0x1749CC: "0f8375010000", # successful fit edge
0x174B4D: "e87e0f0300", # imported memcpy thunk
0x1759FF: "807f1800", # superbox dirty test
0x175A0D: "e8de28e9ff", # description size
0x175A28: "488b0b", # child pointer from vector entry
0x175A2B: "e8c028e9ff", # child size in first pass
0x175A30: "4803f0", # unchecked 64-bit sum
0x175A43: "4c8d8424c0000000", # stack diagnostic context for resize
0x175A4B: "488bd6", # summed size as resize count
0x175A4E: "498bce", # parent+0x100 vector as resize receiver
0x175A51: "e8daf0e8ff", # resize parent cache vector
0x175A75: "ff15a5950e00", # virtual description Serialize
0x175A7B: "488d4f28", # no status test before description GetSize
0x175A7F: "e86c28e9ff", # recompute description size
0x175A8C: "e85f28e9ff", # recompute again before remaining subtraction
0x175AB0: "488b0b", # child pointer in second pass
0x175ABC: "488b4008", # child Serialize slot +0x08
0x175AC0: "ff155a950e00", # virtual child Serialize
0x175AC6: "488b0b", # no status test before child GetSize
0x175AC9: "e82228e9ff", # recompute child size
0x175ACE: "4803e8", # advance output pointer
0x175AD4: "e81728e9ff", # recompute again
0x175AD9: "482bf0", # subtract remaining
0x175AE5: "c6471800", # clear parent dirty byte
0x175E6C: "488b4010", # GetBoxSize uses same provider slot
0x175E7A: "482b08", # GetBoxSize provider end - begin
0x175E7D: "488d4108", # short box adds 8-byte header
}
# Direct E8/E9 edges only. Virtual CFG calls are pinned above by instruction bytes.
EDGES: dict[int, tuple[int, int]] = {
0x4B30: (0xE9, 0x50100),
0x501C3: (0xE8, 0xA7E0),
0x55B0: (0xE9, 0x1731C0),
0x6EA0: (0xE9, 0x174E10),
0x16FFEF: (0xE8, 0x55B0),
0x173F13: (0xE8, 0x55B0),
0x174127: (0xE8, 0x55B0),
0x17432E: (0xE8, 0x6EA0),
0x17433A: (0xE8, 0x82F0),
0x174B4D: (0xE8, 0x1A5AD0),
0x175A0D: (0xE8, 0x82F0),
0x175A2B: (0xE8, 0x82F0),
0x175A51: (0xE8, 0x4B30),
0x175A7F: (0xE8, 0x82F0),
0x175A8C: (0xE8, 0x82F0),
0x175AC9: (0xE8, 0x82F0),
0x175AD4: (0xE8, 0x82F0),
}
def relative_target(rva: int, instruction: bytes, opcode: int) -> int:
if len(instruction) != 5 or instruction[0] != opcode:
raise ValueError(f"relative opcode mismatch at RVA 0x{rva:x}")
return rva + 5 + struct.unpack_from("<i", instruction, 1)[0]
def verify_sites(read_rva: Callable[[int, int], bytes]) -> tuple[int, int]:
for rva, hex_bytes in ANCHORS.items():
expected = bytes.fromhex(hex_bytes)
if read_rva(rva, len(expected)) != expected:
raise ValueError(f"instruction mismatch at RVA 0x{rva:x}")
for rva, (opcode, expected_target) in EDGES.items():
actual = relative_target(rva, read_rva(rva, 5), opcode)
if actual != expected_target:
raise ValueError(f"branch mismatch at RVA 0x{rva:x}")
return len(ANCHORS), len(EDGES)
def main() -> int:
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--dll", type=Path, required=True, help="local signed old x64 provenancesdk.dll")
args = parser.parse_args()
data = args.dll.read_bytes()
if hashlib.sha256(data).hexdigest() != SHA256:
parser.error("DLL SHA-256 differs from the pinned old x64 build")
pe = pefile.PE(data=data, fast_load=True)
if pe.OPTIONAL_HEADER.Magic != 0x20B or pe.FILE_HEADER.Machine != 0x8664:
parser.error("expected a PE32+ x64 module")
section = next((s for s in pe.sections if s.Name.rstrip(b"\0") == b".text"), None)
if section is None:
parser.error("signed module has no .text section")
lo = section.VirtualAddress
hi = lo + section.Misc_VirtualSize
def read_rva(rva: int, size: int) -> bytes:
if not (lo <= rva and rva + size <= hi):
raise ValueError(f"RVA 0x{rva:x} falls outside .text")
return pe.get_data(rva, size)
instructions, branches = verify_sites(read_rva)
print(f"Pinned size-to-write window verified: {instructions} instructions, {branches} direct branches.")
return 0
if __name__ == "__main__":
raise SystemExit(main())