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 files14
blkph0x/cve-2026-83844_pocRevision 193ed44859da
- ↑..Parent directory
- generated/
- ACTION_PROTOCOL.md
- build_action_fixtures.py
- build_action_traces.py
- build_fill_traces.py
- build_prefetch_path_fixtures.py
- build_selection_traces.py
- guest_action.ps1
- guest_action_entry.ps1
- guest_fill_action.ps1
- inspect_paint_controls.ps1
- set_cf_dib.ps1
- validate_c2pa_boundaries.py
- verify_action_fixtures.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lab/corpus/followup/set_cf_dib.ps1
PowerShell · 3,990 bytesparam(
[string]$DibPath = 'C:\PaintLab\Input\followup\dib_clipboard_16x16.dib',
[string]$ManifestPath = 'C:\PaintLab\Input\followup\manifest.json',
[string]$GuestMarker = 'C:\PaintLab\guest.marker'
)
# Run only in the disposable Paint lab guest. This sets the guest's clipboard
# to exactly one CF_DIB format; it does not use host clipboard redirection.
$ErrorActionPreference = 'Stop'
if (-not (Test-Path -LiteralPath $GuestMarker -PathType Leaf) -or
(Get-Content -LiteralPath $GuestMarker -Raw).Trim() -ne 'PaintABLab-Sandbox-v1') {
throw 'The isolated Paint lab marker is absent or invalid.'
}
if ([Threading.Thread]::CurrentThread.GetApartmentState() -ne [Threading.ApartmentState]::STA) {
throw 'Run this script with Windows PowerShell -STA.'
}
$record = (Get-Content -LiteralPath $ManifestPath -Raw | ConvertFrom-Json).cases |
Where-Object { $_.id -eq 'dib_clipboard_cf_dib' } |
Select-Object -First 1
if (-not $record) { throw 'CF_DIB fixture is absent from the manifest.' }
$bytes = [IO.File]::ReadAllBytes($DibPath)
$sha = [Security.Cryptography.SHA256]::Create()
try { $actualHash = [BitConverter]::ToString($sha.ComputeHash($bytes)).Replace('-', '').ToLowerInvariant() }
finally { $sha.Dispose() }
if ($bytes.Length -ne [int]$record.size -or $actualHash -ne [string]$record.sha256) {
throw 'CF_DIB fixture size/hash does not match the manifest.'
}
Add-Type -AssemblyName System.Windows.Forms
Add-Type @'
using System;
using System.Runtime.InteropServices;
public static class PaintLabClipboardNative {
[DllImport("user32.dll", SetLastError=true)] public static extern bool OpenClipboard(IntPtr owner);
[DllImport("user32.dll", SetLastError=true)] public static extern bool EmptyClipboard();
[DllImport("user32.dll", SetLastError=true)] public static extern IntPtr SetClipboardData(uint format, IntPtr data);
[DllImport("user32.dll", SetLastError=true)] public static extern bool CloseClipboard();
[DllImport("kernel32.dll", SetLastError=true)] public static extern IntPtr GlobalAlloc(uint flags, UIntPtr bytes);
[DllImport("kernel32.dll", SetLastError=true)] public static extern IntPtr GlobalLock(IntPtr data);
[DllImport("kernel32.dll", SetLastError=true)] public static extern bool GlobalUnlock(IntPtr data);
[DllImport("kernel32.dll", SetLastError=true)] public static extern IntPtr GlobalFree(IntPtr data);
}
'@
$owner = New-Object System.Windows.Forms.Form
$memory = [IntPtr]::Zero
$clipboardOpen = $false
try {
$handle = $owner.Handle # creates a real, hidden owner window
if ($handle -eq [IntPtr]::Zero) { throw 'Could not create clipboard owner window.' }
$memory = [PaintLabClipboardNative]::GlobalAlloc(2, [UIntPtr]::new([uint64]$bytes.Length))
if ($memory -eq [IntPtr]::Zero) { throw 'GlobalAlloc failed.' }
$address = [PaintLabClipboardNative]::GlobalLock($memory)
if ($address -eq [IntPtr]::Zero) { throw 'GlobalLock failed.' }
try { [Runtime.InteropServices.Marshal]::Copy($bytes, 0, $address, $bytes.Length) }
finally { [PaintLabClipboardNative]::GlobalUnlock($memory) | Out-Null }
for ($attempt = 0; $attempt -lt 20; $attempt++) {
if ([PaintLabClipboardNative]::OpenClipboard($handle)) { $clipboardOpen = $true; break }
Start-Sleep -Milliseconds 100
}
if (-not $clipboardOpen) { throw 'OpenClipboard failed after 20 attempts.' }
if (-not [PaintLabClipboardNative]::EmptyClipboard()) { throw 'EmptyClipboard failed.' }
if ([PaintLabClipboardNative]::SetClipboardData(8, $memory) -eq [IntPtr]::Zero) {
throw 'SetClipboardData(CF_DIB) failed.'
}
$memory = [IntPtr]::Zero # Windows now owns the movable memory
Write-Output "Guest CF_DIB staged: size=$($bytes.Length) SHA-256=$actualHash"
} finally {
if ($clipboardOpen) { [PaintLabClipboardNative]::CloseClipboard() | Out-Null }
if ($memory -ne [IntPtr]::Zero) { [PaintLabClipboardNative]::GlobalFree($memory) | Out-Null }
$owner.Dispose()
}