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/recover_emf_bfdb_fuzz_trial.ps1
PowerShell · 12,382 bytesparam(
[Parameter(Mandatory = $true)]
[ValidatePattern('^[a-z0-9][a-z0-9-]{0,23}$')]
[string]$CampaignId,
[Parameter(Mandatory = $true)]
[ValidatePattern('^[a-z0-9][a-z0-9-]{0,39}$')]
[string]$TrialLabel,
[string]$AcceptedRoot = '',
[switch]$Commit
)
# Recover a completed guest whose host controller stopped before recording its
# review. This never launches or closes a Sandbox and never reruns Paint.
$ErrorActionPreference = 'Stop'
$labRoot = (Resolve-Path -LiteralPath (Join-Path $PSScriptRoot '..')).Path
$fuzzRoot = Join-Path $labRoot 'output\emf-bfdb-fuzz'
$campaignRoot = Join-Path $fuzzRoot "campaigns\$CampaignId"
$planPath = Join-Path $campaignRoot 'plan.json'
$progressPath = Join-Path $campaignRoot 'progress.json'
$stageDir = Join-Path $labRoot 'isolation\generated'
$stagePath = Join-Path $stageDir "$TrialLabel.emf-bfdb-fuzz-stage.json"
$wsbPath = Join-Path $stageDir "$TrialLabel.wsb"
$trialRoot = Join-Path $labRoot "results\$TrialLabel"
$reviewScript = Join-Path $PSScriptRoot 'review_emf_bfdb_fuzz_batch.py'
$stageScript = Join-Path $PSScriptRoot 'stage_emf_bfdb_fuzz_batch.ps1'
$reviewPath = Join-Path $campaignRoot "review-$TrialLabel.json"
$freshReviewPath = Join-Path $campaignRoot "review-$TrialLabel.recovery-check.json"
$inventoryPath = Join-Path $campaignRoot "inventory-$TrialLabel.json"
$freshInventoryPath = Join-Path $campaignRoot "inventory-$TrialLabel.recovery-check.json"
$eventPath = Join-Path $campaignRoot 'events.jsonl'
function Read-Json([string]$Path) {
if (-not (Test-Path -LiteralPath $Path -PathType Leaf)) {
throw "Required JSON is missing: $Path"
}
Get-Content -LiteralPath $Path -Raw | ConvertFrom-Json
}
function File-Hash([string]$Path) {
if (-not (Test-Path -LiteralPath $Path -PathType Leaf)) {
throw "Required file is missing: $Path"
}
(Get-FileHash -LiteralPath $Path -Algorithm SHA256).Hash.ToLowerInvariant()
}
function Require([bool]$Condition, [string]$Message) {
if (-not $Condition) { throw $Message }
}
function Index-RawEvidence([string]$OutputPath) {
$rows = @(
Get-ChildItem -LiteralPath $trialRoot -Recurse -File -ErrorAction Stop |
Sort-Object FullName | ForEach-Object {
$relative = $_.FullName.Substring($trialRoot.Length).TrimStart('\', '/')
[ordered]@{
relative_path = $relative.Replace('\', '/')
bytes = [long]$_.Length
sha256 = (Get-FileHash -LiteralPath $_.FullName `
-Algorithm SHA256).Hash.ToLowerInvariant()
}
}
)
[ordered]@{
schema = 'paint-emf-bfdb-fuzz-private-file-index-v1'
trial_label = $TrialLabel
file_count = $rows.Count
files = $rows
} | ConvertTo-Json -Depth 14 | Set-Content -LiteralPath $OutputPath `
-Encoding UTF8
}
Require ((Test-Path -LiteralPath $campaignRoot -PathType Container) -and
(Test-Path -LiteralPath $trialRoot -PathType Container)) `
'Campaign or trial output directory is absent.'
$activeGuests = @(Get-Process -Name WindowsSandbox,WindowsSandboxClient `
-ErrorAction SilentlyContinue)
Require ($activeGuests.Count -eq 0) `
'A Sandbox process is active; recovery must wait for guest teardown.'
$activeControllers = @(Get-CimInstance Win32_Process |
Where-Object {
$_.Name -eq 'powershell.exe' -and $_.CommandLine -like
'*run_emf_bfdb_fuzz_campaign.ps1*'
})
Require ($activeControllers.Count -eq 0) `
'A campaign controller is active; recovery must not race with it.'
$plan = Read-Json $planPath
$progress = Read-Json $progressPath
$progressHashBefore = File-Hash $progressPath
Require ($plan.schema -ceq 'paint-emf-bfdb-fuzz-campaign-plan-v1' -and
$progress.schema -ceq 'paint-emf-bfdb-fuzz-campaign-progress-v1' -and
$plan.campaign_id -ceq $CampaignId -and
$progress.campaign_id -ceq $CampaignId -and
[string]$progress.plan_digest -cmatch '^[0-9a-f]{64}$' -and
$progress.status -ceq 'running') `
'Campaign plan or progress identity differs.'
$progressRows = @($progress.trials | Where-Object {
$_.trial_label -ceq $TrialLabel
})
Require ($progressRows.Count -eq 1) 'Trial is not unique in progress.'
$row = $progressRows[0]
Require ($row.state -in @('launched', 'shutdown_observed', 'closed') -and
$null -eq $row.review_status -and $null -eq $row.review_sha256 -and
$null -eq $row.inventory_sha256) `
'Trial is already reviewed or is not an interrupted post-launch trial.'
$batches = @($plan.batches | Where-Object {
[int]$_.index -eq [int]$row.batch_index
})
Require ($batches.Count -eq 1) 'Trial batch is not unique in the plan.'
$batch = $batches[0]
$plannedTrials = @($batch.trials | Where-Object {
$_.trial_label -ceq $TrialLabel -and $_.build -ceq $row.build
})
Require ($plannedTrials.Count -eq 1 -and
@($batch.case_ids).Count -ge 1 -and
[string]$batch.case_ids[0] -ceq 'emf_baseline') `
'Trial/build/order differs from the plan.'
$acceptedManifest = $null
if ($AcceptedRoot) {
$acceptedDir = (Resolve-Path -LiteralPath $AcceptedRoot).Path
Require ((Split-Path -Parent $acceptedDir) -ieq
(Resolve-Path -LiteralPath $fuzzRoot).Path -and
(Split-Path -Leaf $acceptedDir) -cmatch
'^(accepted|afl-accepted(?:-[a-z0-9-]+)?)$' -and
-not ((Get-Item -LiteralPath $acceptedDir).Attributes -band
[IO.FileAttributes]::ReparsePoint)) `
'AcceptedRoot is not a direct non-link accepted corpus.'
$acceptedManifest = Join-Path $acceptedDir 'manifest.json'
Require ((File-Hash $acceptedManifest) -ceq
$plan.accepted_manifest_sha256) `
'Accepted manifest hash differs from plan.'
} else {
$matches = @(
Get-ChildItem -LiteralPath $fuzzRoot -Directory |
Where-Object {
$_.Name -cmatch '^(accepted|afl-accepted(?:-[a-z0-9-]+)?)$' -and
-not ($_.Attributes -band [IO.FileAttributes]::ReparsePoint) -and
(Test-Path -LiteralPath (Join-Path $_.FullName 'manifest.json') `
-PathType Leaf) -and
((File-Hash (Join-Path $_.FullName 'manifest.json')) -ceq
$plan.accepted_manifest_sha256)
}
)
Require ($matches.Count -eq 1) `
'Could not resolve one accepted corpus matching the campaign plan.'
$acceptedDir = $matches[0].FullName
$acceptedManifest = Join-Path $acceptedDir 'manifest.json'
}
$manifest = Read-Json $acceptedManifest
Require ($manifest.schema -ceq 'paint-emf-bfdb-fuzz-accepted-v1' -and
@($manifest.cases).Count -eq [int]$plan.accepted_case_count -and
@($manifest.cases | Where-Object { $_.id -ceq 'emf_baseline' }).Count -eq 1) `
'Accepted corpus schema or count differs.'
$stage = Read-Json $stagePath
Require ($stage.schema -ceq 'paint-emf-bfdb-fuzz-stage-v1' -and
$stage.trial_label -ceq $TrialLabel -and
$stage.build -ceq $row.build -and
$stage.accepted_manifest_sha256 -ceq $plan.accepted_manifest_sha256 -and
(@($stage.case_ids) -join ',') -ceq (@($batch.case_ids) -join ',') -and
(File-Hash $wsbPath) -ceq $stage.wsb_sha256) `
'Staged guest or WSB differs from campaign plan.'
foreach ($id in @($batch.case_ids)) {
$fixture = @($manifest.cases | Where-Object { $_.id -ceq $id })
Require ($fixture.Count -eq 1 -and
$stage.fixture_sha256.$id -ceq $fixture[0].sha256) `
"Staged fixture hash differs for $id."
}
& $stageScript -Build $row.build -CaseIds (@($batch.mutation_ids) -join ',') `
-TrialLabel $TrialLabel -AcceptedRoot $acceptedDir -ValidateOnly | Out-Null
Require ($LASTEXITCODE -eq 0 -or $null -eq $LASTEXITCODE) `
'Stage preflight rejected source inputs.'
$shutdowns = @(Get-ChildItem -LiteralPath $trialRoot `
-Filter "focus-shutdown-$($row.build)-*.json" -File)
Require ($shutdowns.Count -eq 1) 'Expected one guest shutdown record.'
$shutdown = Read-Json $shutdowns[0].FullName
$teardown = Read-Json (Join-Path $trialRoot 'teardown-result.json')
Require ($shutdown.method -ceq 'normal shutdown /s /t 20; no /f' -and
[int]$shutdown.exit_code -eq 0 -and
$teardown.schema -ceq 'paint-ab-guest-shutdown-cleanup-v1' -and
$teardown.trial_label -ceq $TrialLabel -and
$teardown.guest_host_exited -eq $true -and
$teardown.state -ceq 'closed' -and
[int]$teardown.sandbox_process_count_after -eq 0) `
'Normal guest shutdown or guarded teardown differs.'
& python $reviewScript --build $row.build --trial-label $TrialLabel `
--output $freshReviewPath | Out-Null
Require ($LASTEXITCODE -eq 0) 'Strict offline reviewer failed.'
$review = Read-Json $freshReviewPath
Require ($review.schema -ceq 'paint-emf-bfdb-fuzz-batch-review-v1' -and
$review.trial_label -ceq $TrialLabel -and
$review.build -ceq $row.build -and
$review.accepted_manifest_sha256 -ceq $plan.accepted_manifest_sha256 -and
@($review.rows).Count -eq @($batch.case_ids).Count -and
(@($review.rows | ForEach-Object { $_.id }) -join ',') -ceq
(@($batch.case_ids) -join ',') -and
$review.rows[0].status -ceq 'verified' -and
$review.status -in @('verified', 'review_required')) `
'Strict review does not verify the plan, baseline, or row count.'
if (Test-Path -LiteralPath $reviewPath -PathType Leaf) {
Require ((File-Hash $reviewPath) -ceq (File-Hash $freshReviewPath)) `
'Existing original review differs from fresh strict review.'
}
Index-RawEvidence $freshInventoryPath
if (Test-Path -LiteralPath $inventoryPath -PathType Leaf) {
Require ((File-Hash $inventoryPath) -ceq
(File-Hash $freshInventoryPath)) `
'Existing original raw inventory differs from recomputed inventory.'
}
Require ((File-Hash $progressPath) -ceq $progressHashBefore) `
'Campaign progress changed during recovery validation.'
$outcome = [ordered]@{
schema = 'paint-emf-bfdb-fuzz-recovery-v1'
campaign_id = $CampaignId
trial_label = $TrialLabel
build = $row.build
case_count = @($batch.case_ids).Count
review_status = $review.status
review_sha256 = File-Hash $freshReviewPath
inventory_sha256 = File-Hash $freshInventoryPath
guest_closed = $true
committed = $false
}
if ($Commit) {
if (-not (Test-Path -LiteralPath $reviewPath -PathType Leaf)) {
Copy-Item -LiteralPath $freshReviewPath -Destination $reviewPath
}
if (-not (Test-Path -LiteralPath $inventoryPath -PathType Leaf)) {
Copy-Item -LiteralPath $freshInventoryPath -Destination $inventoryPath
}
Require ((File-Hash $reviewPath) -ceq $outcome.review_sha256 -and
(File-Hash $inventoryPath) -ceq $outcome.inventory_sha256) `
'Original review or inventory did not retain the reviewed hashes.'
$row.review_status = [string]$review.status
$row.review_sha256 = $outcome.review_sha256
$row.inventory_sha256 = $outcome.inventory_sha256
$row.state = if ($review.status -ceq 'verified') {
'reviewed'
} else {
'review_required'
}
$row.detail = "recovered_rows=$(@($batch.case_ids).Count)"
$row.updated_utc = (Get-Date).ToUniversalTime().ToString('o')
$progress.updated_utc = $row.updated_utc
$tempPath = Join-Path $campaignRoot "progress.$TrialLabel.recovery.tmp"
$backupPath = Join-Path $campaignRoot "progress.$TrialLabel.before-recovery.json"
Require (-not (Test-Path -LiteralPath $tempPath) -and
-not (Test-Path -LiteralPath $backupPath)) `
'Recovery temporary or backup file already exists.'
$progress | ConvertTo-Json -Depth 14 |
Set-Content -LiteralPath $tempPath -Encoding UTF8
Require ((File-Hash $progressPath) -ceq $progressHashBefore) `
'Campaign progress changed before commit.'
[IO.File]::Replace($tempPath, $progressPath, $backupPath)
$outcome.committed = $true
$event = [ordered]@{
utc = (Get-Date).ToUniversalTime().ToString('o')
event = 'recovered_reviewed_guest'
trial_label = $TrialLabel
detail = "review_status=$($review.status) rows=$(@($batch.case_ids).Count)"
}
try {
($event | ConvertTo-Json -Compress -Depth 4) |
Add-Content -LiteralPath $eventPath -Encoding UTF8
} catch {
$outcome.event_written = $false
}
}
$outcome | ConvertTo-Json -Depth 5