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/test_build_cold_reopen_trace.py

Python · 4,147 bytes
#!/usr/bin/env python3
"""Integrity and phase-marker checks for the offline cold/reopen profile."""

from __future__ import annotations

import tempfile
import unittest
from pathlib import Path

from build_cold_reopen_trace import F29_SHA256, VALID_SHA256, build


class ColdReopenProfileTests(unittest.TestCase):
    def test_unknown_order_rejected(self) -> None:
        with tempfile.TemporaryDirectory() as directory:
            with self.assertRaises(ValueError):
                build("new", Path(directory) / "bad.txt", "unknown")

    def test_signed_profiles_and_phase_split(self) -> None:
        with tempfile.TemporaryDirectory() as directory:
            for profile in ("old", "new"):
                for order in ("f29-valid", "valid-f29"):
                    path = Path(directory) / f"{profile}-{order}.cdb.txt"
                    manifest = build(profile, path, order)
                    script = path.read_text(encoding="ascii")
                    self.assertEqual(manifest["schema"], "paint-ab-cold-reopen-profile-v2")
                    self.assertEqual(manifest["order"], order)
                    self.assertEqual(manifest["fixtures"]["f29"]["sha256"], F29_SHA256)
                    self.assertEqual(manifest["fixtures"]["valid_c2pa"]["sha256"], VALID_SHA256)
                    self.assertEqual(script.count("PAINT_TRACE_HIT=coldreopen_startup;"), 1)
                    self.assertNotIn("echo HIT >", script)
                    self.assertEqual(manifest["startup_hit_source"], "cdb_log")
                    self.assertEqual(script.count("echo ARMED >"), 1)
                    breakpoints = [line for line in script.splitlines()
                                   if line.startswith("bu ")]
                    self.assertEqual(len(breakpoints), len(manifest["checkpoints"]))
                    self.assertEqual(sum(line.startswith("bu /1 ")
                                         for line in breakpoints), 1)
                    self.assertEqual(len(breakpoints),
                                     22 if profile == "old" else 45)
                    self.assertEqual(script.count("PAINT_TRACE_HIT=image_decoder;"), 1)
                    self.assertIn("bu ImageProcessing+0x1570 ", script)
                    labels = {f"{point['path']}_{point['label']}"
                              for point in manifest["checkpoints"]}
                    self.assertIn("cold_min_mode_zero_call", labels)
                    self.assertIn("flow_handoff_success_route", labels)
                    self.assertIn("flow_handoff_error_route", labels)
                    self.assertIn("state_helper_getter", labels)
                    self.assertIn("state_bitmap_destructor", labels)
                    if profile == "new":
                        self.assertIn("prefetch_state_lookup_path_equal", labels)
                        self.assertIn("cache_cached_image_route", labels)
                        self.assertIn("cache_cached_failure_route", labels)
                        self.assertIn("provenance_bridge_result", labels)
                    else:
                        self.assertIn("provenance_sdk_init_result", labels)
                    self.assertIn("sxd epr", script)
                    self.assertTrue(manifest["repeat_for_reopen"])
                    self.assertTrue(manifest["repeat_all_after_startup"])
                    self.assertFalse(manifest["late_modules_armed"])
                    self.assertEqual(set(manifest["modules"]),
                                     {"mspaint.exe", "ImageProcessing.dll",
                                      "ProvenanceHelper.dll"})

    def test_deep_late_modules_are_explicit_opt_in(self) -> None:
        with tempfile.TemporaryDirectory() as directory:
            path = Path(directory) / "new-deep.txt"
            manifest = build("new", path, "f29-valid",
                             include_late_modules=True)
            self.assertTrue(manifest["late_modules_armed"])
            self.assertEqual(len(manifest["checkpoints"]), 62)
            self.assertIn("c2pa_c.dll", manifest["modules"])


if __name__ == "__main__":
    unittest.main()