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 files579
blkph0x/cve-2026-83844_pocRevision 193ed44859da
- ↑..Parent directory
- afl_emf_gdiplus/
- capture/
- generated/
- BFDB_ALLOCATOR_REUSE_PROTOCOL.md
- BFDB_AUTHORING_MEDIA_STATIC.md
- BFDB_AUTHORING_PROTOCOL.md
- BFDB_BOUNDED_MARKER_PLACEMENT_PROTOCOL.md
- BFDB_BYTE_PROVENANCE_PROTOCOL.md
- BFDB_CACHE_PROTOCOL.md
- BFDB_CLOCK_ONLY_CONTROL_PROTOCOL.md
- BFDB_CROSSSLOT_PROTOCOL.md
- BFDB_FAST_FIRST_OPEN_PROTOCOL.md
- BFDB_FOUR_WPR_PROTOCOL.md
- BFDB_GEOMETRY_GUEST_PROTOCOL.md
- BFDB_LFH_CHECKPOINT_PROTOCOL.md
- BFDB_MARKER_ACCEPTANCE.md
- BFDB_MARKER_FIRSTOPEN_SEMANTIC_GATE.md
- BFDB_MARKER_FOUR_FIRSTOPEN_PROTOCOL.md
- BFDB_MARKER_FOUR_PROTOCOL.md
- BFDB_MARKER_ROUTE_CONTROL.md
- BFDB_MARKER_SEMANTIC_GATE.md
- BFDB_NORMAL_EXTENT_PROTOCOL.md
- BFDB_NORMAL_HEAP_PROTOCOL.md
- BFDB_NORMAL_RECORD_PROTOCOL.md
- BFDB_OUTPUT_GATES_PROTOCOL.md
- BFDB_POSTOPEN_PROTOCOL.md
- BFDB_SDK_RESOLUTION_SCAN.md
- BFDB_SINK_GATE_PROTOCOL.md
- BFDB_VALIDATION_LIFETIME_PROTOCOL.md
- BFDB_WPR_HEAP_PROTOCOL.md
- BRUSH_DISPATCH_PROTOCOL.md
- COLD_ATTACH_REPAIR_PLAN.md
- EMF_BFDB_FUZZ_ANALYSIS.md
- EMF_BFDB_FUZZ_BATCH_PROTOCOL.md
- EMF_BFDB_FUZZ_CAMPAIGN.md
- EMF_BFDB_SEQUENCE_PROTOCOL.md
- EMF_BFDB_WARM_PAGEHEAP_PROTOCOL.md
- EMF_CLIPBOARD_VALID_PROTOCOL.md
- EMF_VALID_ACCEPTANCE_PROTOCOL.md
- FILL_LOOP_CENSUS_PROTOCOL.md
- FILL_MOUSE_EVENT_PROTOCOL.md
- FILL_TOUCH_INPUT_PROTOCOL.md
- FILL_WIN32_DISPATCH_PROTOCOL.md
- PROVENANCE_APP11_POSTSEEK_PROTOCOL.md
- PROVENANCE_APP11_READER_SCAN_PROTOCOL.md
- PROVENANCE_APP11_SPLIT_NEW_LABEL_GUARD_PROTOCOL.md
- PROVENANCE_BATCH_E_SUBSET_PROTOCOL.md
- PROVENANCE_COPY_REOPEN_PROTOCOL.md
- PROVENANCE_E_CHILD_DECISION_PROTOCOL.md
- PROVENANCE_FIELD_ID_CONSUMER_PROTOCOL.md
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lab/trace/stage_bfdb_cache_trial.ps1
PowerShell · 9,078 bytesparam(
[Parameter(Mandatory = $true)][ValidateSet('control','trigger')][string]$CaseId,
[Parameter(Mandatory = $true)]
[ValidatePattern('^[a-z0-9][a-z0-9-]{0,39}$')][string]$TrialLabel,
[ValidatePattern('^[a-z0-9][a-z0-9-]{0,39}$')][string]$ControlTrialLabel = '',
[switch]$ValidateOnly
)
# Host stage only. It never launches Windows Sandbox or Paint. Trigger staging
# requires a closed, same-profile control with a reviewable reparse/cache route.
$ErrorActionPreference = 'Stop'
$labRoot = (Resolve-Path -LiteralPath (Join-Path $PSScriptRoot '..')).Path
$fixtures = @{
control = @{ file='control.jpg'; sha256='75a8da33f6eaf1e16bf3b42cd78913b22b2e6a671fda217a508b1ba4230ce864' }
trigger = @{ file='trigger-0120-01.jpg'; sha256='82e1ad0b1be3183b0a6075ce53a44a888f149765f24cd2a681b0656b348a8f9a' }
}
$selected = $fixtures[$CaseId]
$fixture = Join-Path $labRoot "output\provenance-bfdb\$($selected.file)"
$fixtureBuilder = Join-Path $labRoot 'corpus\provenance_bfdb\build_fixtures.py'
$fixtureVerifier = Join-Path $labRoot 'corpus\provenance_bfdb\verify_fixtures.py'
$builder = Join-Path $PSScriptRoot 'build_bfdb_cache_trace.py'
$reviewer = Join-Path $PSScriptRoot 'review_bfdb_cache_trial.py'
$guest = Join-Path $labRoot 'output\bfdb-cache\guest_bfdb_postopen_entry.ps1'
$profile = Join-Path $labRoot 'output\bfdb-cache\old.cdb.txt'
$gflags = 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\gflags.exe'
$gflagsHash = '3b4501db349dcd49214c5e4fc57a886458dc013dcee498b2722146fc8d451f45'
$plmdebug = Join-Path $labRoot 'isolation\dependencies\debugger\plmdebug.exe'
$plmdebugHash = 'df595e3ab812fabe89dca86fa8526a4ef91c670a71a42c0f2a380c4cd8a65dac'
if ($CaseId -eq 'control' -and $ControlTrialLabel) { throw 'Control cannot name a prior control.' }
if ($CaseId -eq 'trigger' -and (-not $ControlTrialLabel -or $ControlTrialLabel -ceq $TrialLabel)) {
throw 'Trigger requires a distinct completed valid-control label.'
}
foreach ($path in @($fixtureBuilder,$fixtureVerifier,$builder,$gflags,$plmdebug)) {
if (-not (Test-Path -LiteralPath $path -PathType Leaf)) { throw "Pinned prerequisite missing: $path" }
}
if ($CaseId -eq 'trigger' -and -not (Test-Path -LiteralPath $reviewer -PathType Leaf)) {
throw "Pinned cache reviewer missing: $reviewer"
}
& python $fixtureBuilder | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Licensed fixture build failed.' }
& python $fixtureBuilder --check | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Licensed fixture check failed.' }
& python $fixtureVerifier | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Independent licensed fixture verification failed.' }
if (-not (Test-Path -LiteralPath $fixture -PathType Leaf) -or
(Get-FileHash -LiteralPath $fixture -Algorithm SHA256).Hash.ToLowerInvariant() -cne $selected.sha256 -or
(Get-FileHash -LiteralPath $gflags -Algorithm SHA256).Hash.ToLowerInvariant() -cne $gflagsHash -or
(Get-FileHash -LiteralPath $plmdebug -Algorithm SHA256).Hash.ToLowerInvariant() -cne $plmdebugHash) {
throw 'Fixture or debugger digest differs.'
}
& python $builder --output $profile --guest-output $guest | Out-Null
if ($LASTEXITCODE -ne 0 -or
-not (Test-Path -LiteralPath $profile -PathType Leaf) -or
-not (Test-Path -LiteralPath "$profile.json" -PathType Leaf) -or
-not (Test-Path -LiteralPath $guest -PathType Leaf)) {
throw 'Signed old cache CDB profile and guest entry build failed.'
}
$manifest = Get-Content -LiteralPath "$profile.json" -Raw | ConvertFrom-Json
if ($manifest.schema -cne 'paint-bfdb-cache-gates-v1' -or
$manifest.profile -cne 'old' -or $manifest.version -cne '11.2605.81.0' -or
-not [bool]$manifest.one_shot_breakpoints -or
-not [bool]$manifest.cache_bounded_repeated_breakpoints -or
[int]$manifest.cache_hit_cap_per_gate -ne 16 -or
@($manifest.gates).Count -ne 41) {
throw 'Signed old cache profile identity differs.'
}
$profileHash = (Get-FileHash -LiteralPath $profile -Algorithm SHA256).Hash.ToLowerInvariant()
$manifestHash = (Get-FileHash -LiteralPath "$profile.json" -Algorithm SHA256).Hash.ToLowerInvariant()
$guestHash = (Get-FileHash -LiteralPath $guest -Algorithm SHA256).Hash.ToLowerInvariant()
$controlResultHash = $null
if ($CaseId -eq 'trigger') {
$controlStagePath = Join-Path $labRoot "isolation\generated\$ControlTrialLabel.bfdb-cache-stage.json"
$controlRoot = Join-Path $labRoot "results\$ControlTrialLabel\bfdb-cache\old\control"
$controlResults = @(Get-ChildItem -LiteralPath $controlRoot -Recurse -Filter result.json -File -ErrorAction SilentlyContinue)
$teardown = Join-Path $labRoot "results\$ControlTrialLabel\teardown-result.json"
if ($controlResults.Count -ne 1 -or
-not (Test-Path -LiteralPath $controlStagePath -PathType Leaf) -or
-not (Test-Path -LiteralPath $teardown -PathType Leaf)) {
throw 'One completed, closed old control is required before trigger staging.'
}
$priorStage = Get-Content -LiteralPath $controlStagePath -Raw | ConvertFrom-Json
if ($priorStage.schema -cne 'paint-bfdb-cache-stage-v1' -or
$priorStage.case_id -cne 'control' -or
$priorStage.profile_sha256 -cne $profileHash -or
$priorStage.profile_manifest_sha256 -cne $manifestHash -or
$priorStage.guest_entry_sha256 -cne $guestHash) {
throw 'Prior control profile or guest entry differs from current trace.'
}
& python $reviewer --stage $controlStagePath --result $controlResults[0].FullName `
--teardown $teardown --check-control | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Prior control failed Save-time parent-cache route review.' }
$controlResultHash = (Get-FileHash -LiteralPath $controlResults[0].FullName -Algorithm SHA256).Hash.ToLowerInvariant()
}
if ($ValidateOnly) {
Write-Output "Verified old/$CaseId signed cache input and control gate; no guest staged."
return
}
if (@(Get-Process -Name WindowsSandbox,WindowsSandboxClient -ErrorAction SilentlyContinue).Count -ne 0) {
throw 'A Windows Sandbox is active; shared mapped input cannot be replaced.'
}
$wsb = (& (Join-Path $labRoot 'isolation\prepare-sandbox.ps1') `
-Build old -CorpusMode None -FocusedTrace -DebuggerHeapExtensions `
-Networking Enable -VGpu Disable `
-TrialLabel $TrialLabel | Select-Object -Last 1)
if (-not (Test-Path -LiteralPath $wsb -PathType Leaf)) { throw 'Base isolated guest config was not produced.' }
$inputRoot = Join-Path $labRoot 'isolation\input\old'
$traceDest = Join-Path $inputRoot 'trace'
$fixtureDest = Join-Path $inputRoot 'bfdb_postopen'
$debuggerDest = Join-Path $inputRoot 'debugger'
New-Item -ItemType Directory -Force -Path $traceDest,$fixtureDest,$debuggerDest | Out-Null
$copies = @(
@{ source=$guest; dest=(Join-Path $traceDest 'guest_bfdb_postopen_entry.ps1') },
@{ source=$profile; dest=(Join-Path $traceDest 'bfdb-postopen.cdb.txt') },
@{ source="$profile.json"; dest=(Join-Path $traceDest 'bfdb-postopen.cdb.txt.json') },
@{ source=$fixture; dest=(Join-Path $fixtureDest $selected.file) },
@{ source=$gflags; dest=(Join-Path $debuggerDest 'gflags.exe') }
)
foreach ($copy in $copies) {
Copy-Item -LiteralPath $copy.source -Destination $copy.dest -Force
if ((Get-FileHash -LiteralPath $copy.source -Algorithm SHA256).Hash.ToLowerInvariant() -cne
(Get-FileHash -LiteralPath $copy.dest -Algorithm SHA256).Hash.ToLowerInvariant()) {
throw 'Mapped input copy differs from verified source.'
}
}
[xml]$config = Get-Content -LiteralPath $wsb -Raw
$command = $config.SelectSingleNode('/Configuration/LogonCommand/Command')
if (-not $command -or $command.InnerText -notlike '*guest_focus_entry.ps1*') {
throw 'Base focused guest command differs.'
}
$command.InnerText = 'powershell.exe -NoProfile -ExecutionPolicy Bypass -File ' +
'C:\PaintLab\Input\trace\guest_bfdb_postopen_entry.ps1 ' +
"-Build old -CaseId $CaseId"
$config.Save($wsb)
[xml]$check = Get-Content -LiteralPath $wsb -Raw
if ([string]$check.Configuration.LogonCommand.Command -cne $command.InnerText) {
throw 'Post-open guest command readback differs.'
}
$stage = [ordered]@{
schema='paint-bfdb-cache-stage-v1'; status='staged_not_run'
build='old'; case_id=$CaseId; trial_label=$TrialLabel
control_trial_label=$ControlTrialLabel; control_result_sha256=$controlResultHash
fixture_sha256=$selected.sha256; profile_sha256=$profileHash
profile_manifest_sha256=$manifestHash; guest_entry_sha256=$guestHash
modules=[ordered]@{
'mspaint.exe'=[string]$manifest.modules.'mspaint.exe'.sha256
'ProvenanceHelper.dll'=[string]$manifest.modules.'ProvenanceHelper.dll'.sha256
'provenancesdk.dll'=[string]$manifest.modules.'provenancesdk.dll'.sha256
'AIStore.dll'=[string]$manifest.modules.'AIStore.dll'.sha256
}
wsb_sha256=(Get-FileHash -LiteralPath $wsb -Algorithm SHA256).Hash.ToLowerInvariant()
}
$stage | ConvertTo-Json -Depth 6 | Set-Content -LiteralPath (
Join-Path $labRoot "isolation\generated\$TrialLabel.bfdb-cache-stage.json") -Encoding UTF8
Write-Output $wsb