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_paste.ps1

PowerShell · 7,003 bytes
param(
    [Parameter(Mandatory = $true)]
    [ValidatePattern('^[a-z0-9][a-z0-9-]{0,39}$')]
    [string]$TrialLabel,
    [ValidateSet('before_third_minus1','before_third_exact','before_third_plus1','full_content_control')]
    [string]$BoundaryCaseId = 'before_third_plus1',
    [switch]$ValidateOnly
)

# Verify a signed old-build two-action UI trial. This stages input but never launches a guest.
$ErrorActionPreference = 'Stop'
$labRoot = (Resolve-Path -LiteralPath (Join-Path $PSScriptRoot '..')).Path
$boundaryDir = Join-Path $labRoot 'corpus\provenance_app11_boundary'
$boundaryManifestPath = Join-Path $boundaryDir 'generated\manifest.json'
$boundaryVerifier = Join-Path $boundaryDir 'verify_boundary_fixtures.py'
$controlPath = Join-Path $labRoot 'corpus\generated\40_official_c2pa_jpeg.jpg'
$controlHash = '75a8da33f6eaf1e16bf3b42cd78913b22b2e6a671fda217a508b1ba4230ce864'
$sdkHash = '339d8f47ea7bcc08b0c1f122a1e94d5d31860f1ad1ccf7faea1625ffd6de3904'
$profilePath = Join-Path $labRoot 'output\provenance-paste\old.provenance-paste.cdb.txt'
$profileManifestPath = "$profilePath.json"
$profileBuilder = Join-Path $PSScriptRoot 'build_provenance_paste_profile.py'
$actionIds = 'provenance_copy_control,provenance_copy_boundary'

& python $boundaryVerifier --check | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Pinned three-APP11 boundary corpus verification failed.' }
$boundaryManifest = Get-Content -LiteralPath $boundaryManifestPath -Raw | ConvertFrom-Json
if ($boundaryManifest.schema -cne 'paint-provenance-app11-boundary-v1' -or
    $boundaryManifest.source_sha256 -cne $controlHash -or
    (@($boundaryManifest.app11_sequence_indices) -join ',') -cne '1,2,3' -or
    @($boundaryManifest.cases).Count -ne 4) {
    throw 'Unexpected three-APP11 boundary manifest.'
}
$boundary = @($boundaryManifest.cases | Where-Object { $_.id -ceq $BoundaryCaseId })
if ($boundary.Count -ne 1 -or [string]$boundary[0].file -cnotmatch '^app11_boundary_[a-z0-9_]+\.jpg$' -or
    [string]$boundary[0].sha256 -cnotmatch '^[0-9a-f]{64}$' -or
    [long]$boundary[0].bytes -gt 1048576) {
    throw 'Selected boundary fixture is absent or malformed.'
}
$boundaryPath = Join-Path $boundaryDir (Join-Path 'generated' ([string]$boundary[0].file))
if (-not (Test-Path -LiteralPath $boundaryPath -PathType Leaf) -or
    (Get-Item -LiteralPath $boundaryPath).Length -ne [long]$boundary[0].bytes -or
    (Get-FileHash -LiteralPath $boundaryPath -Algorithm SHA256).Hash.ToLowerInvariant() -cne
        [string]$boundary[0].sha256) {
    throw 'Selected boundary JPEG differs from the verified corpus.'
}
if (-not (Test-Path -LiteralPath $controlPath -PathType Leaf) -or
    (Get-FileHash -LiteralPath $controlPath -Algorithm SHA256).Hash.ToLowerInvariant() -cne $controlHash) {
    throw 'Pinned valid C2PA control JPEG differs.'
}
& python $profileBuilder --output $profilePath | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Old-build UI paste debugger profile generation failed.' }
$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 'provenance-ui-copy-paste' -or
    -not [bool]$profile.auto_continue -or
    $profile.signed_sdk_sha256 -cne $sdkHash -or
    [string]$profile.modules.'provenancesdk.dll'.sha256 -cne $sdkHash -or
    @($profile.checkpoints).Count -lt 15 -or
    @($profile.repeat_labels).Count -lt 9) {
    throw 'Old-build debugger profile has unexpected signed modules or markers.'
}
if ($ValidateOnly) {
    Write-Output "Verified valid control, $BoundaryCaseId JPEG, and repeated-breakpoint profile; no guest staged."
    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 -ActionTrial -ActionIds $actionIds `
    -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.'
}
$followupDest = Join-Path $labRoot 'isolation\input\old\followup'
Copy-Item -LiteralPath $profilePath -Destination (Join-Path $followupDest 'old.provenance-paste.cdb.txt') -Force
Copy-Item -LiteralPath $profileManifestPath -Destination (Join-Path $followupDest 'old.provenance-paste.cdb.txt.json') -Force
$controlFile = 'provenance_copy_control.jpg'
$boundaryFile = 'provenance_copy_boundary.jpg'
Copy-Item -LiteralPath $controlPath -Destination (Join-Path $followupDest $controlFile) -Force
Copy-Item -LiteralPath $boundaryPath -Destination (Join-Path $followupDest $boundaryFile) -Force
$pasteManifest = [ordered]@{
    schema = 'paint-provenance-paste-fixtures-v1'
    cases = @(
        [ordered]@{ id='provenance_copy_control'; source_case_id='40_official_c2pa_jpeg';
                    file=$controlFile; sha256=$controlHash; bytes=(Get-Item -LiteralPath $controlPath).Length },
        [ordered]@{ id='provenance_copy_boundary'; source_case_id=$BoundaryCaseId;
                    file=$boundaryFile; sha256=[string]$boundary[0].sha256; bytes=[long]$boundary[0].bytes }
    )
}
$pasteManifestPath = Join-Path $followupDest 'provenance_paste_manifest.json'
$pasteManifest | ConvertTo-Json -Depth 6 | Set-Content -LiteralPath $pasteManifestPath -Encoding UTF8
foreach ($case in $pasteManifest.cases) {
    $staged = Join-Path $followupDest $case.file
    if ((Get-FileHash -LiteralPath $staged -Algorithm SHA256).Hash.ToLowerInvariant() -cne $case.sha256) {
        throw "Staged paste fixture differs: $($case.id)"
    }
}
[xml]$config = Get-Content -LiteralPath $wsbPath -Raw
$command = [string]$config.Configuration.LogonCommand.Command
if ($command -notlike '*guest_action_entry.ps1*' -or
    $command -notlike "*-ActionIds $actionIds*") {
    throw 'Guest command does not select the two distinct paste actions.'
}
$sidecar = [ordered]@{
    schema = 'paint-provenance-paste-stage-v1'
    build = 'old'; trial_label = $TrialLabel
    selected_actions = @('provenance_copy_control','provenance_copy_boundary')
    boundary_case_id = $BoundaryCaseId
    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()
    paste_manifest_sha256 = (Get-FileHash -LiteralPath $pasteManifestPath -Algorithm SHA256).Hash.ToLowerInvariant()
    boundary_manifest_sha256 = (Get-FileHash -LiteralPath $boundaryManifestPath -Algorithm SHA256).Hash.ToLowerInvariant()
}
$sidecar | ConvertTo-Json -Depth 5 | Set-Content -LiteralPath (
    Join-Path $labRoot "isolation\generated\$TrialLabel.provenance-paste-stage.json") -Encoding UTF8
Write-Output $wsbPath