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 files6
blkph0x/cve-2026-83844_pocRevision 193ed44859da
- ↑..Parent directory
- ROUTE_PROTOCOL.md
- guest_route.ps1
- guest_route_entry.ps1
- inventory.py
- prepare_route_trial.ps1
- route-contract.json
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lab/routes/prepare_route_trial.ps1
PowerShell · 4,525 bytesparam(
[Parameter(Mandatory = $true)]
[ValidateSet('old', 'new')]
[string]$Build,
[Parameter(Mandatory = $true)]
[ValidateSet('association_edit', 'explorer_edit_in_paint', 'protocol_empty', 'com_activation')]
[string]$Route,
[string]$CaseId = '00_valid_png',
[switch]$TraceExisting,
[Parameter(Mandatory = $true)]
[ValidatePattern('^[a-z0-9][a-z0-9-]{0,39}$')]
[string]$TrialLabel
)
# Host staging only; never installs or launches Paint. One Sandbox guest at a
# time because prepare-sandbox shares the read-only input directory per build.
$ErrorActionPreference = 'Stop'
$active = @(Get-Process WindowsSandbox,WindowsSandboxClient -ErrorAction SilentlyContinue)
if ($active.Count -ne 0) { throw 'A Windows Sandbox guest/client is still open; finish its guarded teardown first.' }
if ($TraceExisting -and $Route -notin @('association_edit', 'explorer_edit_in_paint')) {
throw 'Existing-PID CDB trace requires a file-supplying shell route.'
}
$labRoot = (Resolve-Path -LiteralPath (Join-Path $PSScriptRoot '..')).Path
$workRoot = (Resolve-Path -LiteralPath (Join-Path $labRoot '..')).Path
$contractPath = Join-Path $PSScriptRoot 'route-contract.json'
$contract = Get-Content -LiteralPath $contractPath -Raw | ConvertFrom-Json
$versions = @{ old = '11.2605.81.0'; new = '11.2609.401.0' }
$expected = $contract.builds.PSObject.Properties[$versions[$Build]].Value
if ($contract.schema -ne 'paint-route-contract-v1' -or -not $contract.registration_fields_equal) {
throw 'Route contract schema/registration check failed.'
}
$signedManifest = Join-Path $workRoot "packages\$($versions[$Build])\x64\AppxManifest.xml"
$manifestHash = (Get-FileHash -LiteralPath $signedManifest -Algorithm SHA256).Hash.ToLowerInvariant()
if ($manifestHash -ne $expected.manifest_sha256) { throw 'Local signed manifest differs from route contract.' }
$corpusManifestPath = Join-Path $labRoot 'corpus\generated\manifest.json'
$corpus = Get-Content -LiteralPath $corpusManifestPath -Raw | ConvertFrom-Json
if ($corpus.schema -ne 'paint-ab-corpus-v1') { throw 'Unexpected frozen corpus schema.' }
if ($Route -in @('association_edit', 'explorer_edit_in_paint')) {
$matches = @($corpus.cases | Where-Object { $_.id -eq $CaseId })
if ($matches.Count -ne 1 -or $matches[0].file -notmatch '^[A-Za-z0-9_-]+\.(png|bmp|jpg)$') {
throw 'Selected route fixture is not a pinned PNG, BMP, or JPEG.'
}
$fixture = Join-Path (Join-Path $labRoot 'corpus\generated') $matches[0].file
$fixtureHash = (Get-FileHash -LiteralPath $fixture -Algorithm SHA256).Hash.ToLowerInvariant()
if ($fixtureHash -ne [string]$matches[0].sha256) { throw 'Selected fixture hash mismatch.' }
}
$prepare = Join-Path $labRoot 'isolation\prepare-sandbox.ps1'
& $prepare -Build $Build -Networking Enable -VGpu Disable -CorpusMode None -TrialLabel $TrialLabel | Out-Null
$inputRouteDir = Join-Path $labRoot "isolation\input\$Build\routes"
New-Item -ItemType Directory -Force -Path $inputRouteDir | Out-Null
foreach ($name in @('guest_route.ps1', 'guest_route_entry.ps1', 'route-contract.json')) {
Copy-Item -LiteralPath (Join-Path $PSScriptRoot $name) -Destination (Join-Path $inputRouteDir $name) -Force
}
$configPath = Join-Path $labRoot "isolation\generated\$TrialLabel.wsb"
[xml]$config = Get-Content -LiteralPath $configPath -Raw
$commandNode = $config.SelectSingleNode('/Configuration/LogonCommand/Command')
if (-not $commandNode) { throw 'Prepared Sandbox configuration has no logon command.' }
$traceArg = if ($TraceExisting) { ' -TraceExisting' } else { '' }
$commandNode.InnerText = "powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\PaintLab\Input\routes\guest_route_entry.ps1 -Build $Build -Route $Route -CaseId $CaseId$traceArg"
$config.Save($configPath)
$preflightPath = Join-Path $labRoot "isolation\generated\$TrialLabel.preflight.json"
$preflight = Get-Content -LiteralPath $preflightPath -Raw | ConvertFrom-Json
$preflight | Add-Member -NotePropertyName Route -NotePropertyValue $Route -Force
$preflight | Add-Member -NotePropertyName CaseId -NotePropertyValue $CaseId -Force
$preflight | Add-Member -NotePropertyName TraceExisting -NotePropertyValue ([bool]$TraceExisting) -Force
$preflight | Add-Member -NotePropertyName RouteContractSha256 `
-NotePropertyValue (Get-FileHash -LiteralPath $contractPath -Algorithm SHA256).Hash.ToLowerInvariant() -Force
$preflight | ConvertTo-Json -Depth 6 | Set-Content -LiteralPath $preflightPath -Encoding UTF8
Write-Output $configPath