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/verify_cf_dib.ps1

PowerShell · 3,312 bytes
param(
    [string]$ManifestPath = 'C:\PaintLab\Input\followup\manifest.json',
    [string]$GuestMarker = 'C:\PaintLab\guest.marker'
)

# Read-only guest clipboard verification. Run after the setter exits and
# before attaching the debugger, so a paste-route claim has delivery evidence.
$ErrorActionPreference = 'Stop'
if ($env:USERNAME -ne 'WDAGUtilityAccount' -or
    -not (Test-Path -LiteralPath $GuestMarker -PathType Leaf) -or
    (Get-Content -LiteralPath $GuestMarker -Raw).Trim() -ne 'PaintABLab-Sandbox-v1') {
    throw 'Guest guard failed for CF_DIB readback.'
}
$record = @((Get-Content -LiteralPath $ManifestPath -Raw | ConvertFrom-Json).cases |
    Where-Object { $_.id -eq 'dib_clipboard_cf_dib' })
if ($record.Count -ne 1) { throw 'Pinned CF_DIB case is absent or duplicated.' }

Add-Type @'
using System;
using System.Runtime.InteropServices;
public static class PaintLabClipboardReadback {
    [DllImport("user32.dll", SetLastError=true)] public static extern bool OpenClipboard(IntPtr owner);
    [DllImport("user32.dll", SetLastError=true)] public static extern bool CloseClipboard();
    [DllImport("user32.dll", SetLastError=true)] public static extern bool IsClipboardFormatAvailable(uint format);
    [DllImport("user32.dll", SetLastError=true)] public static extern IntPtr GetClipboardData(uint format);
    [DllImport("kernel32.dll", SetLastError=true)] public static extern UIntPtr GlobalSize(IntPtr data);
    [DllImport("kernel32.dll", SetLastError=true)] public static extern IntPtr GlobalLock(IntPtr data);
    [DllImport("kernel32.dll", SetLastError=true)] public static extern bool GlobalUnlock(IntPtr data);
}
'@

$opened = $false
for ($attempt = 0; $attempt -lt 20; $attempt++) {
    if ([PaintLabClipboardReadback]::OpenClipboard([IntPtr]::Zero)) { $opened = $true; break }
    Start-Sleep -Milliseconds 100
}
if (-not $opened) { throw 'OpenClipboard failed after 20 attempts.' }
try {
    if (-not [PaintLabClipboardReadback]::IsClipboardFormatAvailable(8)) {
        throw 'CF_DIB format 8 is not available after setter exit.'
    }
    $handle = [PaintLabClipboardReadback]::GetClipboardData(8)
    if ($handle -eq [IntPtr]::Zero) { throw 'GetClipboardData(8) returned null.' }
    $rawSize = [PaintLabClipboardReadback]::GlobalSize($handle)
    $allocationSize = [int]$rawSize.ToUInt64()
    $size = [int]$record[0].size
    if ($allocationSize -lt $size) { throw "CF_DIB GlobalSize is shorter than pinned payload: $allocationSize" }
    $address = [PaintLabClipboardReadback]::GlobalLock($handle)
    if ($address -eq [IntPtr]::Zero) { throw 'GlobalLock(CF_DIB) failed.' }
    try {
        $bytes = New-Object byte[] $size
        [Runtime.InteropServices.Marshal]::Copy($address, $bytes, 0, $size)
    } finally { [PaintLabClipboardReadback]::GlobalUnlock($handle) | Out-Null }
    $sha = [Security.Cryptography.SHA256]::Create()
    try { $actualHash = [BitConverter]::ToString($sha.ComputeHash($bytes)).Replace('-', '').ToLowerInvariant() }
    finally { $sha.Dispose() }
    if ($actualHash -ne [string]$record[0].sha256) { throw 'CF_DIB readback hash differs from pinned bytes.' }
    Write-Output "Guest CF_DIB readback: format=8 size=$size SHA-256=$actualHash allocation=$allocationSize"
} finally {
    [PaintLabClipboardReadback]::CloseClipboard() | Out-Null
}