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 files5
blkph0x/cve-2026-83844_pocRevision 193ed44859da
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lab/corpus/provenance_missing_fields/test_fixtures.py
Python · 1,849 bytes#!/usr/bin/env python3
"""Fail-closed checks for the offline missing-field corpus."""
from __future__ import annotations
import shutil
import tempfile
import unittest
from pathlib import Path
import build_fixtures
import verify_fixtures
class MissingFieldFixtureTests(unittest.TestCase):
def test_generated_bytes_match_builder_and_independent_verifier(self) -> None:
for name, expected in build_fixtures.expected_files():
self.assertEqual((build_fixtures.OUT / name).read_bytes(), expected)
verify_fixtures.verify()
def copied_output(self, target: Path) -> None:
for file in verify_fixtures.OUT.glob("*.jpg"):
shutil.copy2(file, target / file.name)
shutil.copy2(verify_fixtures.OUT / "manifest.json", target / "manifest.json")
def test_one_changed_media_byte_is_rejected(self) -> None:
with tempfile.TemporaryDirectory() as directory:
output = Path(directory)
self.copied_output(output)
path = output / "06_label_off_id_on.jpg"
changed = bytearray(path.read_bytes())
changed[0x68] ^= 1
path.write_bytes(changed)
with self.assertRaisesRegex(ValueError, "fixture differs"):
verify_fixtures.verify(output)
def test_changed_manifest_is_rejected(self) -> None:
with tempfile.TemporaryDirectory() as directory:
output = Path(directory)
self.copied_output(output)
path = output / "manifest.json"
path.write_bytes(path.read_bytes().replace(
b'"paint_outcome": "not_tested"',
b'"paint_outcome": "complete"', 1))
with self.assertRaisesRegex(ValueError, "Manifest identity"):
verify_fixtures.verify(output)
if __name__ == "__main__":
unittest.main()