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

PowerShell · 8,733 bytes
param(
    [Parameter(Mandatory = $true)]
    [ValidatePattern('^[a-z0-9][a-z0-9-]{0,39}$')]
    [string]$TrialLabel,
    [string]$CaseIds = 'outer_xlbox_exact,outer_xlbox_plus1,outer_xlbox_2pow32,outer_xlbox_max_minus1',
    [switch]$ValidateOnly
)

# Offline verification and stage-only wrapper. It never launches a guest or Paint.
$ErrorActionPreference = 'Stop'
$labRoot = (Resolve-Path -LiteralPath (Join-Path $PSScriptRoot '..')).Path
$controlId = '40_official_c2pa_jpeg'
$corpusDir = Join-Path $labRoot 'corpus\provenance_outer_frontier'
$builder = Join-Path $corpusDir 'build_outer_frontier.py'
$manifestPath = Join-Path $corpusDir 'generated\manifest.json'
$profilePath = Join-Path $labRoot 'output\provenance-outer-frontier\old.auto.cdb.txt'
$profileManifestPath = "$profilePath.json"
$expectedSdkHash = '339d8f47ea7bcc08b0c1f122a1e94d5d31860f1ad1ccf7faea1625ffd6de3904'
$expectedSourceHash = '75a8da33f6eaf1e16bf3b42cd78913b22b2e6a671fda217a508b1ba4230ce864'
$expectedRasterHash = '7f25d7f8c55e7191e3bf1488268d8c5d92fc6766398903229a612e7fe7e7de6b'
$expectedCases = [ordered]@{
    outer_xlbox_min16 = @{ xlbox = '0x0000000000000010'; sha256 = '911c7122e6cccd60c75ee1b7bd0ae3c54f3695caf98315531160dd0b173deb4d' }
    outer_xlbox_exact = @{ xlbox = '0x000000000000C7B6'; sha256 = '91adf549b43b69b6c53ae9d4375d58325a9252110d4f26346f0f87b118621d6d' }
    outer_xlbox_plus1 = @{ xlbox = '0x000000000000C7B7'; sha256 = '131f3b706393e45dfc161034dcbdc85a35d1c35dd97cfb6bafbcdde44b95bd74' }
    outer_xlbox_2pow32 = @{ xlbox = '0x0000000100000000'; sha256 = '0504c642ab5b65b244705df60ed8d0998b103ab5ab5f896ef3e3348aabca9387' }
    outer_xlbox_2pow32_plus1 = @{ xlbox = '0x0000000100000001'; sha256 = 'bf0b84be0b01b999819720a6143cc6e0a276757e64ecc345e20301c54a56cee7' }
    outer_xlbox_max_minus1 = @{ xlbox = '0xFFFFFFFFFFFFFFFE'; sha256 = 'b717c4ca10de9f41b59681d60913a373925df963a86173a856ad294989b78870' }
    outer_xlbox_max = @{ xlbox = '0xFFFFFFFFFFFFFFFF'; sha256 = '529e7418bdce6e699944b952f0ae495ca4b7691a82cfce31c430a5e9268e7440' }
}

if ($CaseIds -notmatch '^[a-z0-9_]+(,[a-z0-9_]+)*$') {
    throw 'CaseIds must be comma-separated safe case IDs.'
}
$selected = @($CaseIds.Split(','))
if ($selected.Count -eq 0 -or $selected.Count -gt $expectedCases.Count -or
    $selected.Count -ne @($selected | Select-Object -Unique).Count -or
    @($selected | Where-Object { -not $expectedCases.Contains($_) }).Count -gt 0) {
    throw 'CaseIds must be unique IDs from the seven pinned outer-XLBox fixtures.'
}
$focusCaseIds = (@($controlId) + $selected) -join ','

& python $builder --check | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Pinned outer-XLBox corpus verification failed.' }
$corpus = Get-Content -LiteralPath $manifestPath -Raw | ConvertFrom-Json
if ($corpus.schema -cne 'paint-provenance-outer-xlbox-frontier-v1' -or
    $corpus.source_sha256 -cne $expectedSourceHash -or
    $corpus.fixed_c2pa_marker_shifted_to -cne '0x38' -or
    @($corpus.cases).Count -ne $expectedCases.Count) {
    throw 'Unexpected outer-XLBox frontier manifest.'
}
foreach ($case in $corpus.cases) {
    $caseId = [string]$case.id
    if (-not $expectedCases.Contains($caseId) -or
        [string]$case.file -cne "$caseId.jpg" -or
        [string]$case.xlbox -cne $expectedCases[$caseId].xlbox -or
        [string]$case.sha256 -cne $expectedCases[$caseId].sha256 -or
        [long]$case.bytes -ne 140305 -or
        [long]$case.app11_length -ne 51136 -or
        [long]$case.physically_present_outer_bytes -ne 51126 -or
        [string]$case.raster_sha256 -cne $expectedRasterHash -or
        (@($case.raster_size) -join ',') -cne '2048,1365') {
        throw "Unexpected outer-XLBox frontier case: $caseId"
    }
    $path = Join-Path $corpusDir (Join-Path 'generated' $case.file)
    if (-not (Test-Path -LiteralPath $path -PathType Leaf) -or
        (Get-Item -LiteralPath $path).Length -ne 140305 -or
        (Get-FileHash -LiteralPath $path -Algorithm SHA256).Hash.ToLowerInvariant() -cne
            [string]$case.sha256) {
        throw "Pinned outer-XLBox fixture differs: $caseId"
    }
}
$controlPath = Join-Path $labRoot 'corpus\generated\40_official_c2pa_jpeg.jpg'
if ((Get-FileHash -LiteralPath $controlPath -Algorithm SHA256).Hash.ToLowerInvariant() -cne
    $expectedSourceHash) {
    throw 'Pinned positive control digest mismatch.'
}

if (-not (Test-Path -LiteralPath $profilePath -PathType Leaf) -or
    -not (Test-Path -LiteralPath $profileManifestPath -PathType Leaf)) {
    throw 'Separately generated old outer-frontier CDB profile is missing.'
}
$profile = Get-Content -LiteralPath $profileManifestPath -Raw | ConvertFrom-Json
if ($profile.profile -cne 'old' -or $profile.version -cne '11.2605.81.0' -or
    $profile.diagnostic_mode -cne 'outer-xlbox-frontier' -or
    -not [bool]$profile.auto_continue -or
    $profile.exception_continuation -cne 'unhandled' -or
    $profile.signed_sdk_sha256 -cne $expectedSdkHash -or
    [string]$profile.modules.'provenancesdk.dll'.sha256 -cne $expectedSdkHash -or
    @($profile.checkpoints).Count -lt 20) {
    throw 'Debugger profile is not the pinned old-build outer-frontier diagnostic.'
}
if ($ValidateOnly) {
    Write-Output "Verified old Paint control, $($selected.Count) selected outer-XLBox fixtures, and debugger profile; staging skipped."
    return
}

if (@(Get-Process -Name WindowsSandbox,WindowsSandboxClient -ErrorAction SilentlyContinue).Count -ne 0) {
    throw 'A guest is active; do not replace mapped input.'
}
$wsbPath = (& (Join-Path $labRoot 'isolation\prepare-sandbox.ps1') `
    -Build old -CorpusMode None -FocusedTrace -FocusCases $focusCaseIds `
    -Networking Enable -VGpu Disable -TrialLabel $TrialLabel | Select-Object -Last 1)
if (-not (Test-Path -LiteralPath $wsbPath -PathType Leaf)) {
    throw 'Shared preparer did not create a guest configuration.'
}
$inputDir = Join-Path $labRoot 'isolation\input\old'
$traceDest = Join-Path $inputDir 'trace'
$followupDest = Join-Path $inputDir 'followup'
Copy-Item -LiteralPath $profilePath -Destination (Join-Path $traceDest 'old.auto.cdb.txt') -Force
Copy-Item -LiteralPath $profileManifestPath -Destination (Join-Path $traceDest 'old.auto.cdb.txt.json') -Force
$followupManifestPath = Join-Path $followupDest 'manifest.json'
$followup = Get-Content -LiteralPath $followupManifestPath -Raw | ConvertFrom-Json
if ($followup.schema -cne 'paint-action-fixtures-v1' -or
    @($followup.cases | Where-Object { $selected -contains $_.id }).Count -ne 0) {
    throw 'Unexpected or duplicate staged follow-up manifest.'
}
foreach ($caseId in $selected) {
    $case = @($corpus.cases | Where-Object { $_.id -ceq $caseId })
    if ($case.Count -ne 1) { throw "Outer-frontier manifest case missing: $caseId" }
    $target = Join-Path $corpusDir (Join-Path 'generated' $case[0].file)
    $staged = Join-Path $followupDest $case[0].file
    Copy-Item -LiteralPath $target -Destination $staged -Force
    if ((Get-FileHash -LiteralPath $staged -Algorithm SHA256).Hash.ToLowerInvariant() -cne
        [string]$case[0].sha256) {
        throw "Staged outer-frontier fixture digest mismatch: $caseId"
    }
    $followup.cases += [pscustomobject]@{
        id = $caseId; file = $case[0].file; sha256 = $case[0].sha256;
        size = $case[0].bytes; format = 'JPEG'; raster_valid_control = $true
    }
}
$followup | ConvertTo-Json -Depth 10 |
    Set-Content -LiteralPath $followupManifestPath -Encoding UTF8
[xml]$config = Get-Content -LiteralPath $wsbPath -Raw
$command = [string]$config.Configuration.LogonCommand.Command
if ($command -notlike '*guest_focus_entry.ps1*' -or
    $command -notlike "*-CaseIds $focusCaseIds*") {
    throw 'Guest command does not select control followed by the chosen frontier cases.'
}
$sidecar = [ordered]@{
    schema = 'paint-provenance-outer-xlbox-stage-v1'
    build = 'old'; trial_label = $TrialLabel
    selected_cases = @($controlId) + $selected
    diagnostic_mode = 'outer-xlbox-frontier'
    networking = 'Enable'
    wsb_sha256 = (Get-FileHash -LiteralPath $wsbPath -Algorithm SHA256).Hash.ToLowerInvariant()
    profile_sha256 = (Get-FileHash -LiteralPath $profilePath -Algorithm SHA256).Hash.ToLowerInvariant()
    profile_manifest_sha256 = (Get-FileHash -LiteralPath $profileManifestPath -Algorithm SHA256).Hash.ToLowerInvariant()
    corpus_manifest_sha256 = (Get-FileHash -LiteralPath $manifestPath -Algorithm SHA256).Hash.ToLowerInvariant()
    staged_followup_manifest_sha256 = (Get-FileHash -LiteralPath $followupManifestPath -Algorithm SHA256).Hash.ToLowerInvariant()
}
$sidecar | ConvertTo-Json -Depth 5 | Set-Content -LiteralPath (
    Join-Path $labRoot "isolation\generated\$TrialLabel.provenance-outer-xlbox-stage.json") -Encoding UTF8
Write-Output $wsbPath