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 files347
blkph0x/cve-2026-83844_pocRevision 193ed44859da
Next files →

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

lab/evidence/export_fill_touch_focus_partial.py

Python · 8,631 bytes
#!/usr/bin/env python3
"""Export the failed semantic focus gate for one old Fill close control."""

from __future__ import annotations

import hashlib
import json
from datetime import datetime, timezone

from compare_fill_pointer_route import RGB_HASH, ROOT, base_gates, read_json, sha256, trial_data
from export_fill_touch_old02_partial import marker_times
from export_fill_touch_old04_partial import MARKERS, sampled_seed_bound, visible_rgb


LABEL = "old-fill-touch-focus-01"
ACTION = "fill_touch_focus_zero"


def rgb_hash(path, rect: list[int]) -> str:
    return hashlib.sha256(visible_rgb(path, rect, 8)).hexdigest()


def main() -> None:
    case, result, preflight, batch, teardown, log = trial_data(LABEL, "old", ACTION)
    gates = base_gates(LABEL, "old", ACTION, case, result,
                       preflight, batch, teardown, log)
    clean_close = gates.pop("normal_paint_and_guest_close")
    stage = read_json(ROOT / "lab/isolation/generated" / f"{LABEL}.fill-deep-stage.json")
    fill = result.get("fill_action") or {}
    touch = read_json(case.parent / "fill-touch-input.json")
    wait = read_json(case.parent / "fill-touch-operation-wait.json")
    render = read_json(case.parent / "fill-touch-render-observation.json")
    undo = read_json(case.parent / "fill-touch-undo-close.json")
    focus = read_json(case.parent / "fill-touch-focus-close.json")
    fixture = ROOT / "lab/corpus/followup/generated/flood_two_tone_16x16.png"
    expected_input = [{"label": "flood_two_tone", "sha256": sha256(fixture),
                       "size": fixture.stat().st_size}]
    action_rows = batch.get("actions") or []
    action = action_rows[0] if len(action_rows) == 1 else {}
    cleanup = batch.get("forced_guest_cleanup") or []
    labels, times = marker_times(log)
    rect = preflight["canvas_rect"]
    before = rgb_hash(case.parent / "fill-before-click.png", rect)
    after = rgb_hash(case.parent / "fill-after-click.png", rect)
    outcome = rgb_hash(case.parent / "outcome.png", rect)
    undone = rgb_hash(case.parent / "fill-after-undo.png", rect)
    probes = render.get("probes") or []
    undo_probes = undo.get("probes") or []
    attempts = focus.get("save_focus_attempts") or []
    focus_shot = case.parent / "fill-touch-focus-close-after-request.png"
    seed = sampled_seed_bound(log)
    modified = lambda path: datetime.fromtimestamp(path.stat().st_mtime, tz=timezone.utc)
    gates.update({
        "exact_pinned_input_bytes": (
            expected_input[0]["size"] == 81
            and result.get("input_files") == expected_input
        ),
        "signed_touch_fill_route_and_output": (
            stage.get("heap_lookup") is True and stage.get("win32_dispatch") is True
            and labels == MARKERS
            and result.get("markers_after") == action.get("markers_after") == MARKERS
            and preflight.get("markers_before_click") == MARKERS[:1]
            and result.get("route_observed") is True
            and touch.get("status") == "accepted_by_api"
            and all(touch.get(f"{step}_accepted") is True and touch.get(f"{step}_error") == 0
                    for step in ("initialize", "down", "update", "up"))
            and wait.get("status") == "exit_seen"
            and wait.get("draw_complete_seen") is True
            and render.get("output_evidence") is True
            and len(probes) >= 2
            and probes[-1].get("rgb_sha256") == probes[-2].get("rgb_sha256") == after
            and before == RGB_HASH and after != RGB_HASH and outcome == after
            and fill.get("post_rgb_sha256") == after
            and fill.get("post_black_pixels") == 128
            and times["fill_deep_execute_exit"] < modified(case.parent / "fill-after-click.png")
            and seed["four_byte_span_inside_chunk"] is True
        ),
        "exact_source_restored_before_close": (
            result.get("touch_undo") == undo
            and undo.get("status") == "source_raster_restored_stable"
            and undo.get("foreground_same_pid") is True
            and undo.get("foreground_title_matches") is True
            and undo.get("outcome_matches_post_fill") is True
            and undo.get("key_sent") is True
            and len(undo_probes) >= 2
            and undo_probes[-1].get("rgb_sha256")
                == undo_probes[-2].get("rgb_sha256") == undone == RGB_HASH
            and modified(case.parent / "outcome.png")
                < modified(case.parent / "fill-after-undo.png") < modified(focus_shot)
        ),
        "save_focus_gate_failed_without_tab_or_enter": (
            focus.get("schema") == "paint-fill-touch-focus-close-v1"
            and focus.get("screenshot") == focus_shot.name
            and result.get("close", {}).get("touch_focus_close_probe") == "fill-touch-focus-close.json"
            and focus.get("exact_paint_process_count") is True
            and focus.get("foreground_same_pid") is True
            and focus.get("foreground_title_matches") is True
            and focus.get("main_window_same_pid") is True
            and len(attempts) == 3
            and [row.get("attempt") for row in attempts] == [1, 2, 3]
            and [row.get("name") for row in attempts] == ["", "", "Save"]
            and [row.get("control_type") for row in attempts]
                == ["ControlType.Button", "", "ControlType.Button"]
            and [row.get("same_pid") for row in attempts] == [True, True, False]
            and all(row.get("error") is None for row in attempts)
            and focus.get("save_focus_verified") is False
            and focus.get("tab_sent") is False
            and focus.get("dont_save_focus_attempts") == []
            and focus.get("dont_save_focus_verified") is False
            and focus.get("enter_sent") is False
            and focus.get("paint_exited_normally") is False
            and focus.get("status") == "save_focus_not_verified"
            and focus.get("error") is None
        ),
        "failed_normal_close_and_guarded_teardown": (
            clean_close is False
            and result.get("status") == batch.get("status") == "review_required"
            and result.get("error") == action.get("error")
                == "Paint remained running after normal close attempts."
            and len(result.get("close", {}).get("remaining_pids", [])) == 1
            and result.get("close", {}).get("modal_actions") == []
            and len(cleanup) == 1 and cleanup[0].get("process") == "mspaint"
            and cleanup[0].get("reason") == "normal_close_timeout"
            and action.get("timed_out") is False
            and action.get("forced_child_pid") is None
            and action.get("result_sha256") == sha256(case)
            and teardown.get("state") == "closed"
            and teardown.get("sandbox_process_count_after") == 0
        ),
    })
    if not all(gates.values()):
        raise ValueError(f"Focus close partial audit failed: {gates}")
    record = {
        "schema": "paint-fill-touch-focus-close-partial-v1",
        "trial": LABEL,
        "version": "11.2605.81.0",
        "status": "partial_focus_gate_failed_without_tab_or_enter",
        "gates": gates,
        "focus_attempt_names": [row["name"] for row in attempts],
        "focus_attempt_types": [row["control_type"] for row in attempts],
        "focus_attempt_same_pid": [row["same_pid"] for row in attempts],
        "tab_sent": False,
        "enter_sent": False,
        "normal_paint_close": False,
        "guarded_guest_teardown_zero": True,
        "private_focus_screenshot_sha256": sha256(focus_shot),
        "private_result_sha256": sha256(case),
        "private_cdb_sha256": sha256(case.parent / "cdb.log"),
        "interpretation": (
            "The Fill draw and exact source undo completed before close. The focused-element "
            "provider never returned an exact enabled same-PID Save button: it returned an "
            "unnamed same-PID button first and a named Save button with different PID last. "
            "No Tab or Enter was sent; Paint required guarded forced cleanup."
        ),
        "limits": [
            "The different PID may reflect a hosted accessibility provider; this trial does not resolve its ownership.",
            "No normal Paint close, full-loop memory bound, out-of-bounds read, or CVE fix is shown.",
        ],
    }
    output = ROOT / "lab/evidence/fill-touch-focus-close-partial.json"
    output.write_text(json.dumps(record, indent=2) + "\n", encoding="utf-8")
    print("Verified failed focus gate with no Tab or Enter; Fill route remains partial")


if __name__ == "__main__":
    main()