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/review_bfdb_marker_semantic_signed.py
Python · 15,089 bytes#!/usr/bin/env python3
"""Bind a signed one-open semantic trace and reduce it without raw data."""
from __future__ import annotations
import argparse
import hashlib
import json
import re
from pathlib import Path
from typing import Any
from build_bfdb_marker_four_trace import CASE_ID, fixture_hash
from build_bfdb_marker_semantic_trace import OUTPUT, POINTS, pinned_points
from build_bfdb_marker_route_control import checked_inputs
from export_bfdb_allocator_reuse import HIT, MODULE_SHA, require
from export_pinned_bfdb_focus_entry import (
REVISION as FOCUS_REVISION, SHA256 as FOCUS_SHA256, pinned_bytes,
)
from generate_cdb import ROOT, VERSION, sha256
from review_bfdb_marker_semantic import classify, parse
LAB = ROOT / "lab"
STAGE_SCHEMA = "paint-bfdb-marker-semantic-stage-v1"
PROFILE_SCHEMA = "paint-bfdb-marker-semantic-profile-v1"
REVIEW_SCHEMA = "paint-bfdb-marker-semantic-signed-review-v1"
ROUTE = {"image_image_open", "image_decoder", "flow_handoff_success_route",
"validation_helper_call", "validation_sdk_entry"}
MODULE_SET_SHA256 = hashlib.sha256(
json.dumps(MODULE_SHA, sort_keys=True, separators=(",", ":")).encode("ascii")
).hexdigest()
def read(path: Path) -> dict[str, Any]:
return json.loads(path.read_text(encoding="utf-8-sig"))
def one_case(value: Any, case_id: str) -> bool:
return value == case_id or value == [case_id]
def review(stage_path: Path, profile_path: Path = OUTPUT) -> dict[str, Any]:
stage_path = stage_path.resolve()
stage = read(stage_path)
case_id = stage.get("case_id")
_, fixture_hashes = checked_inputs()
pinned_points()
require(stage.get("schema") == STAGE_SCHEMA and case_id == CASE_ID and
stage.get("build") == "old" and
stage.get("version") == VERSION["old"] and
stage.get("sequence_pairs") is None and
stage.get("per_case_timeout_seconds") == 260 and
stage.get("trial_label") == stage_path.name.removesuffix(
".bfdb-marker-semantic-stage.json") and
stage.get("fixture_sha256") == fixture_hash() == fixture_hashes[case_id] and
stage.get("cdb_syntax_smoke_sha256") == sha256(
LAB / "output/bfdb-marker-semantic/cdb-command-smoke.json") and
stage.get("guest_focus_entry_sha256") == FOCUS_SHA256 and
stage.get("guest_focus_entry_revision") == FOCUS_REVISION and
stage.get("guest_wrapper_sha256") == sha256(
LAB / "trace/guest_bfdb_marker_semantic_entry.ps1") and
stage.get("guest_focus_sha256") == sha256(
LAB / "trace/guest_focus.ps1") and
hashlib.sha256(pinned_bytes()).hexdigest() == FOCUS_SHA256,
"Semantic stage or immutable Focus pin differs")
meta_path = Path(str(profile_path) + ".json")
meta = read(meta_path)
require(meta.get("schema") == PROFILE_SCHEMA and
meta.get("profile") == "old" and
meta.get("version") == VERSION["old"] and
meta.get("heap_mode") == "Normal" and
meta.get("auto_continue") is True and
meta.get("repeat_for_sequence") is False and
meta.get("semantic_gate", {}).get("only_case_id") == CASE_ID and
meta.get("semantic_gate", {}).get("max_hits_per_checkpoint") == 32 and
meta.get("semantic_gate", {}).get("pinned_instruction_bytes") ==
{f"provenancesdk.dll+0x{rva:X}": value for rva, value in POINTS.items()} and
meta.get("fixture_sha256") == {CASE_ID: fixture_hash()} and
len(meta.get("checkpoints", [])) == 7 and
{row["path"] + "_" + row["label"] for row in meta["checkpoints"][:5]} == ROUTE and
{row["label"] for row in meta["checkpoints"][5:]} ==
{"selected_bfdb_branch", "parser_result_test"} and
{name: row.get("sha256") for name, row in meta.get("modules", {}).items()}
== MODULE_SHA and
sha256(profile_path) == stage.get("profile_sha256") and
sha256(meta_path) == stage.get("profile_manifest_sha256"),
"Signed semantic profile differs")
script = profile_path.read_text(encoding="ascii")
require("!heap" not in script and "+0x175D45" not in script and
script.count("bu /1 ") == 5 and
script.count("bu300 provenancesdk+0x8FCA3 ") == 1 and
script.count("bu301 provenancesdk+0x93678 ") == 1,
"Semantic profile includes unexpected hot or heap checkpoints")
for name, row in meta["modules"].items():
require(sha256(ROOT / row["package_path"]) == MODULE_SHA[name],
f"Signed module changed: {name}")
label = stage["trial_label"]
require(sha256(LAB / "isolation/generated" / f"{label}.wsb") ==
stage.get("wsb_sha256"), "Semantic guest configuration changed")
trial = LAB / "results" / label
batch_paths = list(trial.glob("focus-batch-old-*.json"))
shutdown_paths = list(trial.glob("focus-shutdown-old-*.json"))
require(len(batch_paths) == len(shutdown_paths) == 1,
"Semantic batch/shutdown receipts missing or ambiguous")
batch, shutdown = read(batch_paths[0]), read(shutdown_paths[0])
teardown_path = trial / "teardown-result.json"
teardown = read(teardown_path)
bootstrap_path = trial / "bootstrap-result.json"
bootstrap = read(bootstrap_path)
require(batch.get("schema") == "paint-ab-focus-batch-v1" and
batch.get("build") == "old" and
one_case(batch.get("selected_cases"), case_id) and
batch.get("sequence_pairs") is None and
batch.get("error") is None and len(batch.get("cases", [])) == 1 and
shutdown.get("exit_code") == 0 and
teardown.get("schema") == "paint-ab-guest-shutdown-cleanup-v1" and
teardown.get("trial_label") == label and
teardown.get("state") == "closed" and
teardown.get("guest_host_exited") is True and
teardown.get("sandbox_process_count_after") == 0 and
bootstrap.get("stage") == "complete" and
bootstrap.get("installed_paint", {}).get("version") == VERSION["old"] and
bootstrap.get("installed_paint", {}).get("exe_sha256") == MODULE_SHA["mspaint.exe"],
"Semantic guest bootstrap or teardown differs")
preflight_path = trial / "bfdb-marker-semantic/heap-preflight.json"
preflight = read(preflight_path)
listing = preflight_path.with_name("gflags-list.txt")
require(preflight.get("schema") == "paint-bfdb-marker-semantic-guest-preflight-v1" and
preflight.get("status") == "normal_heap_verified" and
preflight.get("case_id") == case_id and
preflight.get("profile_sha256") == stage["profile_sha256"] and
preflight.get("profile_manifest_sha256") == stage["profile_manifest_sha256"] and
preflight.get("fixture_sha256") == fixture_hashes[case_id] and
preflight.get("gflags_sha256") == stage.get("gflags_sha256") and
sha256(listing) == preflight.get("gflags_listing_sha256") and
not re.search(r"(?i)\bmspaint\.exe\b", listing.read_text(errors="replace")),
"Semantic normal-heap preflight differs")
summary = batch["cases"][0]
require(summary.get("case_id") == case_id and
summary.get("second_case_id") is None and
summary.get("error") is None,
"Semantic focused case identity differs")
logs = list((trial / "focus/old" / case_id).glob("*/cdb.log"))
require(len(logs) == 1, "Semantic debugger log missing or ambiguous")
log_path = logs[0]
log = log_path.read_text(encoding="utf-8-sig", errors="replace")
hits = [x.group(1) for x in HIT.finditer(log)]
require(set(hits) <= ROUTE and
"Breakpoint condition did not evaluate to a boolean:" not in log and
not re.search(r"(?i)first chance.*access violation", log) and
not re.search(r"(?m)^\s*\^ (?:Extra character error|Syntax error)", log),
"Semantic debugger emitted unknown route marker or fault")
artifacts = {
"stage": sha256(stage_path), "batch": sha256(batch_paths[0]),
"bootstrap": sha256(bootstrap_path), "preflight": sha256(preflight_path),
"debugger_log": sha256(log_path), "teardown": sha256(teardown_path),
}
environment = {
"profile_sha256": stage["profile_sha256"],
"profile_manifest_sha256": stage["profile_manifest_sha256"],
"guest_wrapper_sha256": stage["guest_wrapper_sha256"],
"guest_focus_entry_sha256": stage["guest_focus_entry_sha256"],
"signed_module_set_sha256": MODULE_SET_SHA256,
}
result_paths = list((trial / "focus/old" / case_id).glob("*/result.json"))
if (batch.get("status") == "review_required" and
summary.get("status") == "missing_result" and
summary.get("timed_out") is True and
summary.get("child_exited_verified") is False and
not result_paths):
return {
"schema": REVIEW_SCHEMA, "case_id": case_id,
"trial_label": label, "outcome": "semantic_trace_timed_out_no_parser_conclusion",
"signed_old_bootstrap_and_closed_guest": True,
"normal_heap_preflight": True,
"environment": environment,
"emitted_route_labels": hits,
"artifact_sha256": artifacts,
"limits": ["A timeout has no completed Focus result or parser conclusion.",
"The bounded semantic checkpoints cannot be interpreted without a complete result."],
}
require(batch.get("status") == "complete" and
summary.get("status") == "complete" and
summary.get("timed_out") is False and
summary.get("child_exited_verified") is True and
summary.get("process_exit_code") == 0 and
len(result_paths) == 1,
"Semantic focused trial neither cleanly complete nor bounded timeout")
result_path = result_paths[0]
require(sha256(result_path) == summary.get("result_sha256"),
"Semantic focused result hash differs")
result = read(result_path)
pid = result.get("blank_pid")
before, after = result.get("markers_before_open", []), result.get("markers_after_open", [])
rows = result.get("marker_pid_records", [])
require(result.get("schema") == "paint-ab-focused-cdb-v1" and
result.get("build") == "old" and result.get("status") == "complete" and
result.get("case_id") == case_id and result.get("second_case_id") is None and
result.get("trace_script_sha256") == stage["profile_sha256"] and
result.get("trace_manifest_sha256") == stage["profile_manifest_sha256"] and
result.get("fixture", {}).get("sha256") == fixture_hashes[case_id] and
result.get("fixture_manifest_sha256") == stage.get("staged_manifest_sha256") and
result.get("installed_package", {}).get("version") == VERSION["old"] and
result.get("installed_exe_sha256") == MODULE_SHA["mspaint.exe"] and
result.get("file_open_filename_value_verified") is True and
type(pid) is int and pid > 0 and
result.get("cdb_initial_pid") == pid and
result.get("file_open_launch_pid") == pid and
summary.get("blank_pid") == pid and
summary.get("file_open_launch_pid") == pid and
[row.get("marker") for row in rows] == before + after == hits and
all(row.get("pid") == pid for row in rows) and
summary.get("post_open_markers") == after and
{"image_image_open", "image_decoder", "flow_handoff_success_route"} <= set(after) and
after.count("image_image_open") == 1 and
result.get("error") is None,
"Semantic signed same-PID focused result differs")
installed = result.get("installed_module_checks", [])
loaded = result.get("loaded_module_checks", [])
loaded_map = {row.get("module"): row.get("sha256") for row in loaded}
require({row.get("module"): row.get("sha256") for row in installed} == MODULE_SHA and
len(loaded_map) == len(loaded) and bool(loaded_map) and
set(loaded_map) <= set(MODULE_SHA) and
all(MODULE_SHA[name] == digest for name, digest in loaded_map.items()) and
all(row.get("matches_signed_package") is True for row in loaded),
"Semantic installed/loaded modules differ")
cleanup, health = result.get("cleanup", {}), result.get("post_close_health", {})
require(cleanup.get("initial_pids") == [pid] and
pid in cleanup.get("close_requested_pids", []) and
not cleanup.get("forced_pids") and
not cleanup.get("remaining_pids") and
not health.get("remaining_pids") and
not health.get("wer_events") and
health.get("new_dump_count") == 0 and health.get("error") is None,
"Semantic Paint close or post-close health differs")
artifacts["result"] = sha256(result_path)
semantic_events = parse(log)
sdk_hits = list(re.finditer(r"(?m)^PAINT_TRACE_HIT=validation_sdk_entry\s*$", log))
handoff_hits = list(re.finditer(r"(?m)^PAINT_TRACE_HIT=flow_handoff_success_route\s*$", log))
semantic_starts = list(re.finditer(
r"(?m)^PAINT_SEMANTIC_(?:BRANCH|STATUS)_BEGIN\s*$", log))
require(len(sdk_hits) == len(handoff_hits) == 1 and
len(semantic_starts) == len(semantic_events) and
all(sdk_hits[0].end() < hit.start() < handoff_hits[0].start()
for hit in semantic_starts) and
all(event.pid == pid and event.tid > 0 and
event.superbox > 0 and event.record > 0
for event in semantic_events),
"Semantic checkpoint escaped the signed same-PID SDK-to-handoff route")
semantic = classify(semantic_events)
return {
"schema": REVIEW_SCHEMA, "case_id": case_id,
"trial_label": label, "outcome": semantic["outcome"],
"signed_old_same_pid_normal_close": True,
"environment": environment,
"emitted_route_labels": hits,
"semantic": semantic,
"artifact_sha256": artifacts,
"limits": ["Branch and zero parse status do not prove vector insertion or retention.",
"No generic set_payload or heap breakpoint was armed.",
"No raw addresses, PIDs, thread IDs, labels, or memory bytes are published."],
}
if __name__ == "__main__":
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--stage", type=Path, required=True)
parser.add_argument("--profile", type=Path, default=OUTPUT)
parser.add_argument("--output", type=Path, required=True)
args = parser.parse_args()
result = review(args.stage, args.profile)
args.output.parent.mkdir(parents=True, exist_ok=True)
args.output.write_text(json.dumps(result, indent=2) + "\n", encoding="utf-8")
print(result["outcome"])