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_normal_extent_trace.py

Python · 3,449 bytes
#!/usr/bin/env python3
"""Build an opt-in old-x64 normal-heap source-block extent probe.

The profile preserves the NormalRecord route and adds scoped !heap diagnostics
at the original media pointer before/after strlen. It does not launch Paint.
"""

from __future__ import annotations

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

from build_bfdb_authoring_trace import PINS, POINTS
from build_bfdb_normal_heap_trace import FOLLOWUP_PINS, FOLLOWUP_POINTS, verified_modules
from build_bfdb_normal_record_trace import RECORD_PINS, RECORD_POINTS
from generate_cdb import Checkpoint, VERSION, render


START_CAPTURE = (
    ".echo PAINT_BFDB_X_START_BEGIN; !heap -x @rcx; "
    ".echo PAINT_BFDB_X_START_END; "
    ".echo PAINT_BFDB_P_A_BEGIN; !heap -p -a @rcx; "
    ".echo PAINT_BFDB_P_A_END"
)


def extent_points() -> list[Checkpoint]:
    points = [*POINTS["old"], *FOLLOWUP_POINTS[:3], *RECORD_POINTS]
    changed: list[Checkpoint] = []
    for point in points:
        if (point.module, point.rva) == ("provenancesdk.dll", 0x8FE0D):
            point = replace(point, capture=START_CAPTURE)
        changed.append(point)
    return changed


def build(output: Path) -> dict[str, object]:
    points = extent_points()
    pins = {**PINS["old"], **FOLLOWUP_PINS, **RECORD_PINS}
    checkpoint_keys = {(point.module, point.rva) for point in points}
    crt_thunks = {("provenancesdk.dll", 0x1A5AD0),
                  ("provenancesdk.dll", 0x1A5B82)}
    if len(checkpoint_keys) != len(points) or set(pins) != checkpoint_keys | crt_thunks:
        raise ValueError("NormalExtent requires exactly one opcode pin per checkpoint and CRT thunk")
    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-normal-extent-trace-v1",
        "profile": "old", "version": VERSION["old"],
        "heap_mode": "Normal", "trace_mode": "NormalExtent",
        "auto_continue": True,
        "route": "ms-paint://backgroundRemoval?isTemporaryPath=false&file=<guest JPEG>",
        "modules": modules,
        "checkpoints": [asdict(point) | {"rva": f"0x{point.rva:X}"} for point in points],
        "pinned_crt_imports": {"strlen": "0x256C20", "memcpy": "0x2566C8"},
        "limits": [
            "!heap -x reports a containing NT/segment-heap block, not necessarily requested bytes.",
            "!heap -p -a is diagnostic only because normal heap has PageHeap off.",
            "Unparsed or ambiguous heap output must yield unknown, never an OOB claim.",
            "Raw addresses, heap rows and memory bytes remain in ignored guest logs.",
        ],
    }
    output.with_suffix(output.suffix + ".json").write_text(
        json.dumps(manifest, indent=2) + "\n", encoding="utf-8"
    )
    return manifest


def main() -> None:
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument("--output", required=True, type=Path)
    args = parser.parse_args()
    manifest = build(args.output)
    print(f"Prepared {len(manifest['checkpoints'])} old normal-extent checkpoints; no guest launched")


if __name__ == "__main__":
    main()