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 files6
blkph0x/cve-2026-83844_pocRevision 193ed44859da

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

lab/corpus/fill_dispatch/build_geometry_fixtures.py

Python · 3,690 bytes
#!/usr/bin/env python3
"""Build exact 257x129 odd-width BMP orientation controls for Fill.

Both files decode to the same two-tone RGB raster. The 33,153-pixel area is
far below a 32-bit overflow boundary; this is a stride/map layout probe.
"""

from __future__ import annotations

import argparse
import hashlib
import io
import json
import struct
from pathlib import Path

from PIL import Image

HERE = Path(__file__).resolve().parent
SOURCE = HERE.parent / "followup/generated/flood_two_tone_16x16.png"
SOURCE_SHA256 = "d6a2e13c7bfef74881bedd957d5220866158bd6838db5f238623b0b2e3f6d9d7"
OUTPUT = HERE / "generated"
WIDTH, HEIGHT = 257, 129
SPLIT = 128


def digest(data: bytes) -> str:
    return hashlib.sha256(data).hexdigest()


def bmp(rows: list[list[tuple[int, int, int]]], top_down: bool) -> bytes:
    width, height = len(rows[0]), len(rows)
    pixels = b"".join(
        bytes((b, g, r, 255)) for row in (rows if top_down else list(reversed(rows)))
        for r, g, b in row
    )
    file_header = struct.pack("<2sIHHI", b"BM", 54 + len(pixels), 0, 0, 54)
    info_header = struct.pack(
        "<IiiHHIIiiII", 40, width, -height if top_down else height,
        1, 32, 0, len(pixels), 2835, 2835, 0, 0,
    )
    return file_header + info_header + pixels


def build() -> dict[str, bytes]:
    raw = SOURCE.read_bytes()
    if digest(raw) != SOURCE_SHA256:
        raise ValueError("Pinned source PNG changed")
    with Image.open(io.BytesIO(raw)) as source:
        source.load()
        rgb = source.convert("RGB")
        if rgb.size != (16, 16):
            raise ValueError("Unexpected source dimensions")
        left, right = rgb.getpixel((3, 8)), rgb.getpixel((12, 8))
        if left != (80, 120, 160) or right != (81, 120, 160):
            raise ValueError("Unexpected source colors")
    rows = [[left if x < SPLIT else right for x in range(WIDTH)] for _ in range(HEIGHT)]
    expected = bytes(channel for row in rows for pixel in row for channel in pixel)
    files = {
        "fill_bottom_up_257x129.bmp": bmp(rows, False),
        "fill_top_down_257x129.bmp": bmp(rows, True),
    }
    for name, data in files.items():
        with Image.open(io.BytesIO(data)) as image:
            image.load()
            if image.size != (WIDTH, HEIGHT) or image.convert("RGB").tobytes() != expected:
                raise ValueError(f"Independent BMP decode differs: {name}")
    manifest = {
        "schema": "paint-ab-fill-geometry-fixtures-v1",
        "source_sha256": SOURCE_SHA256,
        "width": WIDTH,
        "height": HEIGHT,
        "split_column": SPLIT,
        "decoded_rgb_sha256": digest(expected),
        "runtime_status": "not_tested",
        "cases": [
            {"file": name, "sha256": digest(data), "bytes": len(data),
             "signed_bmp_height": -HEIGHT if "top_down" in name else HEIGHT}
            for name, data in files.items()
        ],
    }
    files["geometry_manifest.json"] = (json.dumps(manifest, indent=2) + "\n").encode()
    return files


def main() -> None:
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument("--check", action="store_true")
    args = parser.parse_args()
    files = build()
    if args.check:
        for name, data in files.items():
            if not (OUTPUT / name).is_file() or (OUTPUT / name).read_bytes() != data:
                raise SystemExit(f"Missing or mismatched: {name}")
    else:
        OUTPUT.mkdir(parents=True, exist_ok=True)
        for name, data in files.items():
            (OUTPUT / name).write_bytes(data)
    print("Verified" if args.check else "Generated", "two 257x129 BMP orientation controls")


if __name__ == "__main__":
    main()