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

PowerShell · 9,196 bytes
param(
    [Parameter(Mandatory = $true)]
    [ValidateSet('marker_assertions_sameparse_04')]
    [string]$CaseId,
    [Parameter(Mandatory = $true)]
    [ValidatePattern('^[a-z0-9][a-z0-9-]{0,39}$')][string]$TrialLabel,
    [switch]$ValidateOnly
)

# Host-only staging. No Sandbox, Paint, or CDB process is launched here.
$ErrorActionPreference = 'Stop'
$labRoot = (Resolve-Path -LiteralPath (Join-Path $PSScriptRoot '..')).Path
$corpusBuilder = Join-Path $labRoot 'corpus\provenance_bfdb_marker\build_fixtures.py'
$corpusVerifier = Join-Path $labRoot 'corpus\provenance_bfdb_marker\verify_fixtures.py'
$traceBuilder = Join-Path $PSScriptRoot 'build_bfdb_marker_four_trace.py'
$cdbSmoke = Join-Path $PSScriptRoot 'smoke_bfdb_marker_four_cdb.py'
$smokeReceipt = Join-Path $labRoot 'output\bfdb-marker-four\cdb-command-smoke.json'
$profile = Join-Path $labRoot 'output\bfdb-marker-four\old.auto.cdb.txt'
$profileMeta = "$profile.json"
$wrapper = Join-Path $PSScriptRoot 'guest_bfdb_marker_four_entry.ps1'
$focusExporter = Join-Path $PSScriptRoot 'export_pinned_bfdb_focus_entry.py'
$pinnedFocus = Join-Path $labRoot 'output\bfdb-marker-four\guest_focus_entry.pinned.ps1'
$expectedFocusHash = 'ced4e5f81d5e96142f94964e1ce1a21fe5a6f4ccc6de444fff324baa6ee52e27'
$pinnedFocusRevision = '77565a872222aac7b34e40fdf85a203f78cbbb69'
$focusScript = Join-Path $PSScriptRoot 'guest_focus.ps1'
$gflagsSource = 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\gflags.exe'
$gflagsHash = '3b4501db349dcd49214c5e4fc57a886458dc013dcee498b2722146fc8d451f45'
$caseFile = 'assertions-sameparse-04.jpg'
$fixture = Join-Path $labRoot "output\provenance-bfdb-marker\$caseFile"
$caseTimeout = 260

foreach ($path in @($corpusBuilder,$corpusVerifier,$traceBuilder,$cdbSmoke,$wrapper,
                    $focusExporter,$focusScript,$gflagsSource)) {
    if (-not (Test-Path -LiteralPath $path -PathType Leaf)) {
        throw "Required four-marker input missing: $path"
    }
}
& python $focusExporter --validate-only | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Immutable tracked Focus entry validation failed.' }
$wrapperText = Get-Content -LiteralPath $wrapper -Raw
if ($wrapperText -notmatch [regex]::Escape($expectedFocusHash)) {
    throw 'Guest wrapper does not pin the tracked Focus entry.'
}
& python $corpusBuilder --check | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Four-marker corpus differs from pinned manifest.' }
& python $corpusVerifier | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Four-marker structural/raster verification failed.' }
& python $traceBuilder --output $profile | Out-Null
if ($LASTEXITCODE -ne 0 -or -not (Test-Path -LiteralPath $profileMeta -PathType Leaf)) {
    throw 'Signed four-marker profile generation failed.'
}
& python $cdbSmoke --output $smokeReceipt | Out-Null
if ($LASTEXITCODE -ne 0 -or -not (Test-Path -LiteralPath $smokeReceipt -PathType Leaf)) {
    throw 'Benign four-marker CDB branch smoke failed.'
}
$smoke = Get-Content -LiteralPath $smokeReceipt -Raw | ConvertFrom-Json
if ($smoke.schema -cne 'paint-bfdb-marker-four-cdb-smoke-v1' -or
    $smoke.result -cne 'all_branches_emitted_without_syntax_error' -or
    @($smoke.checks).Count -ne 4 -or
    @($smoke.checks | Where-Object { $_.emitted_branch_count -ne 4 -or $_.syntax_errors -ne 0 }).Count -ne 0) {
    throw 'Benign four-marker CDB branch smoke receipt differs.'
}
$meta = Get-Content -LiteralPath $profileMeta -Raw | ConvertFrom-Json
$fixtureHash = [string]$meta.fixture_sha256.$CaseId
if ($meta.schema -cne 'paint-bfdb-marker-four-profile-v1' -or
    $meta.version -cne '11.2605.81.0' -or $meta.profile -cne 'old' -or
    $meta.heap_mode -cne 'Normal' -or
    $meta.marker_four.only_case_id -cne $CaseId -or
    @($meta.marker_four.marker_hex).Count -ne 4 -or
    $meta.marker_four.target_time_heap_snapshots -ne 4 -or
    -not $fixtureHash -or
    (Get-FileHash -LiteralPath $fixture -Algorithm SHA256).Hash.ToLowerInvariant() -cne $fixtureHash -or
    (Get-FileHash -LiteralPath $gflagsSource -Algorithm SHA256).Hash.ToLowerInvariant() -cne $gflagsHash) {
    throw 'Four-marker profile, fixture, or GFlags pin differs.'
}
if ($ValidateOnly) {
    Write-Output "Verified signed old four-marker $CaseId, normal heap tool, profile, and benign CDB grammar; 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.'
}
& python $focusExporter --output $pinnedFocus | Out-Null
if ($LASTEXITCODE -ne 0 -or
    (Get-FileHash -LiteralPath $pinnedFocus -Algorithm SHA256).Hash.ToLowerInvariant() -cne $expectedFocusHash) {
    throw 'Immutable tracked Focus entry export failed.'
}

$wsb = (& (Join-Path $labRoot 'isolation\prepare-sandbox.ps1') `
    -Build old -CorpusMode None -FocusedTrace -DebuggerHeapExtensions `
    -FocusCases $CaseId -FocusCaseTimeoutSeconds $caseTimeout `
    -Networking Enable -VGpu Disable -TrialLabel $TrialLabel | Select-Object -Last 1)
if (-not (Test-Path -LiteralPath $wsb -PathType Leaf)) {
    throw 'Shared preparer did not create a guest configuration.'
}
$inputRoot = Join-Path $labRoot 'isolation\input\old'
$traceDest = Join-Path $inputRoot 'trace'
$followupDest = Join-Path $inputRoot 'followup'
$gflagsDest = Join-Path $inputRoot 'debugger\gflags.exe'
$stagedFocus = Join-Path $traceDest 'guest_focus_entry.ps1'
Copy-Item -LiteralPath $pinnedFocus -Destination $stagedFocus -Force
if ((Get-FileHash -LiteralPath $stagedFocus -Algorithm SHA256).Hash.ToLowerInvariant() -cne $expectedFocusHash) {
    throw 'Staged Focus entry differs from immutable tracked blob.'
}
Copy-Item -LiteralPath $profile -Destination (Join-Path $traceDest 'old.auto.cdb.txt') -Force
Copy-Item -LiteralPath $profileMeta -Destination (Join-Path $traceDest 'old.auto.cdb.txt.json') -Force
Copy-Item -LiteralPath $wrapper -Destination (Join-Path $traceDest 'guest_bfdb_marker_four_entry.ps1') -Force
Copy-Item -LiteralPath $gflagsSource -Destination $gflagsDest -Force
if ((Get-FileHash -LiteralPath $gflagsDest -Algorithm SHA256).Hash.ToLowerInvariant() -cne $gflagsHash) {
    throw 'Staged GFlags differs.'
}
$followupManifest = Join-Path $followupDest 'manifest.json'
$followup = Get-Content -LiteralPath $followupManifest -Raw | ConvertFrom-Json
$ids = @($CaseId)
if ($followup.schema -cne 'paint-action-fixtures-v1' -or
    @($followup.cases | Where-Object { $_.id -in $ids }).Count -ne 0) {
    throw 'Existing staged fixture IDs conflict with four-marker trial.'
}
foreach ($id in $ids) {
    $source = $fixture
    $expected = $fixtureHash
    $name = [IO.Path]::GetFileName($source)
    $dest = Join-Path $followupDest $name
    Copy-Item -LiteralPath $source -Destination $dest -Force
    if ((Get-FileHash -LiteralPath $dest -Algorithm SHA256).Hash.ToLowerInvariant() -cne $expected) {
        throw "Staged fixture differs: $id"
    }
    $followup.cases += [pscustomobject]@{
        id = $id; file = $name; sha256 = $expected
        size = [long](Get-Item -LiteralPath $dest).Length
        format = 'JPEG'; raster_valid_control = $true
    }
}
$followup | ConvertTo-Json -Depth 10 | Set-Content -LiteralPath $followupManifest -Encoding UTF8
[xml]$config = Get-Content -LiteralPath $wsb -Raw
if ([string]$config.Configuration.LogonCommand.Command -notlike "*-CaseIds $CaseId*") {
    throw 'Focused guest command did not select the pinned fixture.'
}
$config.Configuration.LogonCommand.Command =
    "powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\PaintLab\Input\trace\guest_bfdb_marker_four_entry.ps1 -CaseId $CaseId -PerCaseTimeoutSeconds $caseTimeout"
$config.Save($wsb)
[xml]$check = Get-Content -LiteralPath $wsb -Raw
if ([string]$check.Configuration.LogonCommand.Command -notlike "*-CaseId $CaseId*") {
    throw 'Four-marker guest wrapper command was not installed.'
}
$stage = [ordered]@{
    schema = 'paint-bfdb-marker-four-stage-v1'
    build = 'old'; version = '11.2605.81.0'; trial_label = $TrialLabel
    case_id = $CaseId; sequence_pairs = $null
    per_case_timeout_seconds = $caseTimeout
    fixture_sha256 = $fixtureHash
    profile_sha256 = (Get-FileHash -LiteralPath $profile -Algorithm SHA256).Hash.ToLowerInvariant()
    profile_manifest_sha256 = (Get-FileHash -LiteralPath $profileMeta -Algorithm SHA256).Hash.ToLowerInvariant()
    cdb_syntax_smoke_sha256 = (Get-FileHash -LiteralPath $smokeReceipt -Algorithm SHA256).Hash.ToLowerInvariant()
    guest_wrapper_sha256 = (Get-FileHash -LiteralPath $wrapper -Algorithm SHA256).Hash.ToLowerInvariant()
    guest_focus_entry_sha256 = $expectedFocusHash
    guest_focus_entry_revision = $pinnedFocusRevision
    guest_focus_sha256 = (Get-FileHash -LiteralPath $focusScript -Algorithm SHA256).Hash.ToLowerInvariant()
    staged_manifest_sha256 = (Get-FileHash -LiteralPath $followupManifest -Algorithm SHA256).Hash.ToLowerInvariant()
    gflags_sha256 = $gflagsHash
    wsb_sha256 = (Get-FileHash -LiteralPath $wsb -Algorithm SHA256).Hash.ToLowerInvariant()
}
$stagePath = Join-Path $labRoot "isolation\generated\$TrialLabel.bfdb-marker-four-stage.json"
$stage | ConvertTo-Json -Depth 5 | Set-Content -LiteralPath $stagePath -Encoding UTF8
Write-Output $wsb