Exploit database

GH-945bd5267b0d1b94c3f74faf5cda7e5a

blkph0x/cve-2026-83844_poc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-83844

5 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files579
blkph0x/cve-2026-83844_pocRevision 193ed44859da
Next files →

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

lab/trace/build_bfdb_crossslot_trace.py

Python · 3,998 bytes
#!/usr/bin/env python3
"""Prepare signed old-x64 LBox24 source/extent probes without running Paint.

Normal heap measures the actual segment/LFH allocation. Full PageHeap is a
separate diagnostic guard trial; its allocator layout cannot be conflated with
the normal-heap result. Raw source bytes stay in ignored CDB logs.
"""

from __future__ import annotations

import argparse
import json
from dataclasses import asdict, replace
from pathlib import Path

from build_bfdb_authoring_trace import PINS
from build_bfdb_normal_extent_trace import extent_points
from build_bfdb_normal_heap_trace import FOLLOWUP_PINS, verified_modules
from build_bfdb_normal_record_trace import RECORD_PINS
from generate_cdb import VERSION, render


def build(output: Path, *, heap_mode: str) -> dict[str, object]:
    if heap_mode not in ("Normal", "PageHeap"):
        raise ValueError("Heap mode must be Normal or PageHeap")
    allocation = ("!heap -x @rcx" if heap_mode == "Normal"
                  else "!heap -p -a @rcx; !vprot @rcx")
    neighbor_allocation = ("!heap -x @rcx+0xf" if heap_mode == "Normal"
                           else "!vprot @rcx+0xf")
    capture = (".echo PAINT_BFDB_CROSSSLOT_SOURCE_BEGIN; db @rcx-1 L10; "
               ".echo PAINT_BFDB_CROSSSLOT_SOURCE_END; "
               ".echo PAINT_BFDB_CROSSSLOT_NEIGHBOR_BYTE_BEGIN; db @rcx+0xf L1; "
               ".echo PAINT_BFDB_CROSSSLOT_NEIGHBOR_BYTE_END; "
               ".echo PAINT_BFDB_CROSSSLOT_EXTENT_BEGIN; "
               f"{allocation}; "
               ".echo PAINT_BFDB_CROSSSLOT_EXTENT_END; "
               ".echo PAINT_BFDB_CROSSSLOT_NEIGHBOR_EXTENT_BEGIN; "
               f"{neighbor_allocation}; "
               ".echo PAINT_BFDB_CROSSSLOT_NEIGHBOR_EXTENT_END")
    points = [replace(point, capture=capture)
              if (point.module, point.rva) == ("provenancesdk.dll", 0x8FE0D)
              else point for point in extent_points()]
    pins = {**PINS["old"], **FOLLOWUP_PINS, **RECORD_PINS}
    if len({(point.module, point.rva) for point in points}) != len(points):
        raise ValueError("Crossslot checkpoints overlap")
    modules = verified_modules(points, pins)
    script = render("old", points, auto_continue=True,
                    ignore_winui_rpc=True, continue_process_exit=True,
                    skip_breakpoint_listing=True, prewarm_pid=True)
    output.parent.mkdir(parents=True, exist_ok=True)
    output.write_text(script, encoding="ascii")
    manifest: dict[str, object] = {
        "schema": "paint-bfdb-crossslot-trace-v1",
        "profile": "old", "version": VERSION["old"],
        "heap_mode": heap_mode,
        "trace_mode": "CrossslotNormal" if heap_mode == "Normal" else "CrossslotGuard",
        "auto_continue": True,
        "modules": modules,
        "checkpoints": [asdict(point) | {"rva": f"0x{point.rva:X}"} for point in points],
        "pinned_crt_imports": {"strlen": "0x256C20", "memcpy": "0x2566C8"},
        "limits": [
            "This file is debugger input; a breakpoint hit requires signed guest evidence.",
            "Normal-heap block extent and diagnostic full-PageHeap fault are separate rows.",
            "A strlen read past a 16-byte block does not itself prove copied neighbor data.",
            "A copied neighbor byte is not a Paint-visible information disclosure.",
            "Raw addresses and source bytes remain in ignored private guest logs.",
        ],
    }
    output.with_suffix(output.suffix + ".json").write_text(
        json.dumps(manifest, indent=2) + "\n", encoding="utf-8")
    return manifest


if __name__ == "__main__":
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument("--heap-mode", choices=("Normal", "PageHeap"), required=True)
    parser.add_argument("--output", type=Path, required=True)
    args = parser.parse_args()
    result = build(args.output, heap_mode=args.heap_mode)
    print(f"Prepared {len(result['checkpoints'])} signed crossslot checkpoints; no guest launched")