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_emf_bfdb_sequence.ps1
PowerShell · 11,363 bytesparam(
[Parameter(Mandatory = $true)]
[ValidateSet('old', 'new')]
[string]$Build,
[Parameter(Mandatory = $true)]
[ValidateSet('emf_then_control', 'emf_then_trigger', 'control_only', 'trigger_only')]
[string]$CaseId,
[Parameter(Mandatory = $true)]
[ValidatePattern('^[a-z0-9][a-z0-9-]{0,39}$')]
[string]$TrialLabel,
[switch]$ValidateOnly
)
# Host-only stage. It never launches Paint, CDB, or Windows Sandbox. Each row
# receives a fresh guest; the two-open rows keep one Paint PID between opens.
$ErrorActionPreference = 'Stop'
$labRoot = (Resolve-Path -LiteralPath (Join-Path $PSScriptRoot '..')).Path
$traceRoot = $PSScriptRoot
$outputRoot = Join-Path $labRoot 'output\emf-bfdb-sequence'
$emf = Join-Path $labRoot 'corpus\emf\valid.emf'
$control = Join-Path $labRoot 'corpus\third_party\c2pa_org_adobe_20220124_C.jpg'
$trigger = Join-Path $labRoot 'output\provenance-bfdb\trigger-0120-01.jpg'
$profileBuilder = Join-Path $PSScriptRoot 'build_emf_bfdb_sequence_profile.py'
$guestWrapper = Join-Path $PSScriptRoot 'guest_emf_bfdb_sequence_entry.ps1'
$profilePath = Join-Path $outputRoot "$Build.auto.cdb.txt"
$focusDerived = Join-Path $outputRoot 'guest_focus.emf.ps1'
$emfOneShot = Join-Path $outputRoot "$Build.emf-one-shot.cdb.txt"
$gflagsSource = 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\gflags.exe'
$gflagsHash = '3b4501db349dcd49214c5e4fc57a886458dc013dcee498b2722146fc8d451f45'
$focusSourceHash = 'e1c792deb97f379f9796e61fdcfbce075fcebccf329d24017242335078830416'
$version = @{ old = '11.2605.81.0'; new = '11.2609.401.0' }[$Build]
$packageHash = @{
old = '6c035ed895c728adb3eeb7d8e119f8dabb535b1eb4be1176145aacf7e5286819'
new = '15e52c8d55719786237a056c85a2b07385d8e703b1897c67ff4ad623c6dbfa72'
}[$Build]
$hashes = @{
emf_valid = '1874ab4dce7f084f944e92b180901cc05fb5381444c6e15b2e103a768bb72777'
bfdb_control = '75a8da33f6eaf1e16bf3b42cd78913b22b2e6a671fda217a508b1ba4230ce864'
bfdb_trigger = '82e1ad0b1be3183b0a6075ce53a44a888f149765f24cd2a681b0656b348a8f9a'
}
$inputs = @{
emf_valid = @{ source = $emf; name = 'valid.emf'; bytes = 152; format = 'EMF' }
bfdb_control = @{ source = $control; name = 'bfdb-control.jpg'; bytes = 140297; format = 'JPEG' }
bfdb_trigger = @{ source = $trigger; name = 'bfdb-trigger.jpg'; bytes = 140297; format = 'JPEG' }
}
$focusCases = 'emf_valid,bfdb_control,bfdb_trigger'
function File-Hash([string]$Path) {
if (-not (Test-Path -LiteralPath $Path -PathType Leaf)) {
throw "Pinned host input missing: $Path"
}
(Get-FileHash -LiteralPath $Path -Algorithm SHA256).Hash.ToLowerInvariant()
}
foreach ($path in @($profileBuilder, $guestWrapper, $gflagsSource,
(Join-Path $traceRoot 'guest_focus.ps1'),
(Join-Path $traceRoot 'guest_focus_entry.ps1'))) {
if (-not (Test-Path -LiteralPath $path -PathType Leaf)) {
throw "Required sequence input missing: $Path"
}
}
if ((File-Hash (Join-Path $traceRoot 'guest_focus.ps1')) -cne $focusSourceHash -or
(File-Hash $gflagsSource) -cne $gflagsHash) {
throw 'Pinned Focus runner or GFlags binary changed.'
}
$tokens = $null; $errors = $null
$null = [Management.Automation.Language.Parser]::ParseFile(
$guestWrapper, [ref]$tokens, [ref]$errors)
if (@($errors).Count -ne 0) { throw 'Guest wrapper PowerShell syntax differs.' }
& python (Join-Path $labRoot 'corpus\provenance_bfdb\build_fixtures.py') | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Licensed BFDB pair generation failed.' }
& python (Join-Path $labRoot 'corpus\provenance_bfdb\verify_fixtures.py') | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Licensed BFDB pair verification failed.' }
$emfCheck = & python (Join-Path $labRoot 'corpus\emf\build_valid_emf.py') `
--output $emf --check-existing
if ($LASTEXITCODE -ne 0) { throw 'Tracked valid EMF verification failed.' }
$emfProbe = ($emfCheck -join "`n") | ConvertFrom-Json
if ($emfProbe.schema -cne 'paint-emf-host-acceptance-v1' -or
$emfProbe.mode -cne 'checked_existing' -or
$emfProbe.sha256 -cne $hashes.emf_valid -or
[int]$emfProbe.gdiplus.GdipCreateBitmapFromFile.status -ne 0) {
throw 'Exact EMF host acceptance differs.'
}
foreach ($id in @('emf_valid', 'bfdb_control', 'bfdb_trigger')) {
if ((Get-Item -LiteralPath $inputs[$id].source).Length -ne $inputs[$id].bytes -or
(File-Hash $inputs[$id].source) -cne $hashes[$id]) {
throw "Pinned sequence fixture differs: $id"
}
}
& python (Join-Path $traceRoot 'build_emf_acceptance_trace.py') --build $Build `
--output $emfOneShot --guest-output $focusDerived | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Pinned EMF-enabled Focus derivative failed.' }
$emfManifest = Get-Content -LiteralPath "$emfOneShot.json" -Raw | ConvertFrom-Json
if ($emfManifest.schema -cne 'paint-emf-valid-acceptance-profile-v1' -or
$emfManifest.derived_focus.source_sha256 -cne $focusSourceHash -or
[int]$emfManifest.derived_focus.changed_extension_gates -ne 2 -or
(File-Hash $focusDerived) -cne $emfManifest.derived_focus.derived_sha256) {
throw 'EMF-enabled Focus derivative is not the pinned two-gate variant.'
}
& python $profileBuilder --build $Build --output $profilePath | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Signed EMF/BFDB profile generation failed.' }
$profileManifestPath = "$profilePath.json"
$profile = Get-Content -LiteralPath $profileManifestPath -Raw | ConvertFrom-Json
if ($profile.schema -cne 'paint-emf-bfdb-sequence-profile-v1' -or
$profile.build -cne $Build -or $profile.profile -cne $Build -or
$profile.version -cne $version -or $profile.heap_mode -cne 'Normal' -or
-not [bool]$profile.auto_continue -or
-not [bool]$profile.repeat_for_sequence -or
(File-Hash $profilePath) -cne $profile.script_sha256) {
throw 'Signed EMF/BFDB repeating profile identity differs.'
}
foreach ($id in @('emf_valid', 'bfdb_control', 'bfdb_trigger')) {
if ($profile.fixtures.PSObject.Properties[$id].Value.sha256 -cne $hashes[$id] -or
[int]$profile.fixtures.PSObject.Properties[$id].Value.bytes -ne
$inputs[$id].bytes) {
throw "Profile fixture pin differs: $id"
}
}
if ($ValidateOnly) {
Write-Output "Validated $Build $CaseId signed EMF/BFDB sequence; no guest staged."
return
}
if (@(Get-Process -Name WindowsSandbox,WindowsSandboxClient `
-ErrorAction SilentlyContinue).Count -ne 0) {
throw 'A guest is active; sequence stage will not alter mapped input.'
}
$wsb = (& (Join-Path $labRoot 'isolation\prepare-sandbox.ps1') `
-Build $Build -CorpusMode None -FocusedTrace -DebuggerHeapExtensions `
-FocusCases $focusCases -FocusCaseTimeoutSeconds 260 `
-Networking Enable -VGpu Disable -TrialLabel $TrialLabel | Select-Object -Last 1)
if (-not $wsb -or -not (Test-Path -LiteralPath $wsb -PathType Leaf)) {
throw 'Shared Sandbox preparer did not produce a guest configuration.'
}
$preflight = Get-Content -LiteralPath (Join-Path $labRoot `
"isolation\generated\$TrialLabel.preflight.json") -Raw | ConvertFrom-Json
if ($preflight.Build -cne $Build -or $preflight.Version -cne $version -or
$preflight.PackageSha256 -cne $packageHash -or
-not [bool]$preflight.FocusedTrace -or
$preflight.FocusCases -cne $focusCases -or
$preflight.Networking -cne 'Enable') {
throw 'Signed package or isolated Focus guest settings differ.'
}
$inputRoot = Join-Path $labRoot "isolation\input\$Build"
$traceDest = Join-Path $inputRoot 'trace'
$followupDest = Join-Path $inputRoot 'followup'
$debuggerDest = Join-Path $inputRoot 'debugger'
foreach ($pair in @(
@($profilePath, (Join-Path $traceDest "$Build.auto.cdb.txt")),
@($profileManifestPath, (Join-Path $traceDest "$Build.auto.cdb.txt.json")),
@($focusDerived, (Join-Path $traceDest 'guest_focus.ps1')),
@($guestWrapper, (Join-Path $traceDest 'guest_emf_bfdb_entry.ps1')),
@($gflagsSource, (Join-Path $debuggerDest 'gflags.exe'))
)) {
Copy-Item -LiteralPath $pair[0] -Destination $pair[1] -Force
if ((File-Hash $pair[0]) -cne (File-Hash $pair[1])) {
throw 'Staged debugger or guest input differs from its source.'
}
}
$followupManifestPath = Join-Path $followupDest 'manifest.json'
$followup = Get-Content -LiteralPath $followupManifestPath -Raw | ConvertFrom-Json
if ($followup.schema -cne 'paint-action-fixtures-v1' -or
@($followup.cases | Where-Object { $_.id -in $inputs.Keys }).Count -ne 0) {
throw 'Base follow-up manifest contains a conflicting sequence ID.'
}
foreach ($id in @('emf_valid', 'bfdb_control', 'bfdb_trigger')) {
$row = $inputs[$id]
$destination = Join-Path $followupDest $row.name
Copy-Item -LiteralPath $row.source -Destination $destination -Force
if ((File-Hash $destination) -cne $hashes[$id]) {
throw "Staged fixture differs: $id"
}
$followup.cases += [pscustomobject]@{
id = $id; file = $row.name; sha256 = $hashes[$id]
size = [long]$row.bytes; format = $row.format; raster_valid_control = $true
}
}
$followup | ConvertTo-Json -Depth 10 |
Set-Content -LiteralPath $followupManifestPath -Encoding UTF8
$pins = [ordered]@{
schema = 'paint-emf-bfdb-sequence-guest-pins-v1'
build = $Build; version = $version; case_id = $CaseId; heap_mode = 'Normal'
profile_sha256 = (File-Hash $profilePath)
profile_manifest_sha256 = (File-Hash $profileManifestPath)
derived_focus_sha256 = (File-Hash $focusDerived)
focus_entry_sha256 = (File-Hash (Join-Path $traceRoot 'guest_focus_entry.ps1'))
gflags_sha256 = $gflagsHash
fixture_sha256 = $hashes
followup_manifest_sha256 = (File-Hash $followupManifestPath)
}
$pinsPath = Join-Path $traceDest 'emf-bfdb-pins.json'
$pins | ConvertTo-Json -Depth 6 | Set-Content -LiteralPath $pinsPath -Encoding UTF8
[xml]$config = Get-Content -LiteralPath $wsb -Raw
if ([string]$config.Configuration.LogonCommand.Command -notlike `
"*-CaseIds $focusCases*") {
throw 'Prepared guest command does not select the pinned case set.'
}
$config.Configuration.LogonCommand.Command =
"powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\PaintLab\Input\trace\guest_emf_bfdb_entry.ps1 -Build $Build -CaseId $CaseId"
$config.Save($wsb)
[xml]$check = Get-Content -LiteralPath $wsb -Raw
if ([string]$check.Configuration.LogonCommand.Command -cne
"powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\PaintLab\Input\trace\guest_emf_bfdb_entry.ps1 -Build $Build -CaseId $CaseId" -or
[string]$check.Configuration.ClipboardRedirection -cne 'Disable') {
throw 'Isolated guest command or clipboard settings differ.'
}
$stage = [ordered]@{
schema = 'paint-emf-bfdb-sequence-stage-v1'
status = 'staged_not_run'
build = $Build; version = $version; case_id = $CaseId
trial_label = $TrialLabel; heap_mode = 'Normal'
package_sha256 = $packageHash
fixture_sha256 = $hashes
profile_sha256 = (File-Hash $profilePath)
profile_manifest_sha256 = (File-Hash $profileManifestPath)
derived_focus_sha256 = (File-Hash $focusDerived)
guest_pins_sha256 = (File-Hash $pinsPath)
staged_followup_manifest_sha256 = (File-Hash $followupManifestPath)
wsb_sha256 = (File-Hash $wsb)
}
$stage | ConvertTo-Json -Depth 7 | Set-Content -LiteralPath (Join-Path $labRoot `
"isolation\generated\$TrialLabel.emf-bfdb-stage.json") -Encoding UTF8
Write-Output $wsb