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/smoke_touch_abi.ps1

PowerShell · 6,114 bytes
param(
    [ValidateSet('current','original','id_zero','raw_zero','mask_contact_only',
                 'id_and_raw_zero','id_and_mask_contact_only',
                 'id_and_pixel_raw_zero','id_and_contact_raw_zero',
                 'raw_zero_and_mask_contact_only',
                 'minimal_optional_mask')]
    [string]$Variant = 'current'
)

# Isolate the touch ABI from Paint. Inject at a blank window owned by this
# process, close it normally, and print only scalar API results. This script
# does not stage or launch a Windows Sandbox guest.
$ErrorActionPreference = 'Stop'
$activeGuest = @(Get-Process -Name WindowsSandbox,WindowsSandboxClient -ErrorAction SilentlyContinue)
if ($activeGuest.Count) { throw 'Touch ABI smoke test requires no active Sandbox.' }
$helper = Join-Path $PSScriptRoot '..\corpus\followup\guest_fill_action.ps1'
$source = Get-Content -LiteralPath $helper -Raw
$match = [regex]::Match($source,
    '(?s)if \(\$CanvasInputMethod -eq ''touch''.*?Add-Type -TypeDefinition @''\r?\n(.*?)\r?\n''@')
if (-not $match.Success) { throw 'Embedded Fill touch ABI declaration is missing.' }
Add-Type -TypeDefinition $match.Groups[1].Value -ErrorAction Stop
Add-Type -AssemblyName System.Windows.Forms
Add-Type -TypeDefinition @'
using System;
using System.Runtime.InteropServices;
public static class TouchSmokeWindow {
    [StructLayout(LayoutKind.Sequential)] public struct Point { public int X, Y; }
    [DllImport("user32.dll")] public static extern IntPtr WindowFromPoint(Point p);
    [DllImport("user32.dll")] public static extern uint GetWindowThreadProcessId(IntPtr h, out uint pid);
}
'@

$form = [System.Windows.Forms.Form]::new()
try {
    $form.Text = 'Isolated touch ABI test'
    $form.Width = 320
    $form.Height = 240
    $form.StartPosition = 'CenterScreen'
    $form.TopMost = $true
    $form.ShowInTaskbar = $false
    $form.Show()
    [System.Windows.Forms.Application]::DoEvents()
    Start-Sleep -Milliseconds 250
    [System.Windows.Forms.Application]::DoEvents()
    $bounds = $form.Bounds
    $x = [int]($bounds.Left + $bounds.Width / 2)
    $y = [int]($bounds.Top + $bounds.Height / 2)
    $point = [TouchSmokeWindow+Point]::new()
    $point.X = $x
    $point.Y = $y
    [uint32]$targetPid = 0
    $null = [TouchSmokeWindow]::GetWindowThreadProcessId(
        [TouchSmokeWindow]::WindowFromPoint($point),[ref]$targetPid)
    if ($targetPid -ne [uint32]$PID) {
        throw 'Blank smoke window does not own the touch point.'
    }
    if (-not [PaintFillTouch]::LayoutValid()) { throw 'Touch x64 ABI differs.' }

    [int]$errorCode = 0
    $init = [PaintFillTouch]::Initialize([ref]$errorCode)
    $initError = $errorCode
    $down = $false
    $downError = $null
    $update = $false
    $updateError = $null
    $up = $false
    $upError = $null
    if ($init) {
        $contact = [PaintFillTouch]::Frame($x,$y,[PaintFillTouch]::DownFlags)
        if ($Variant -ne 'current') {
            # Reconstruct the rejected first-guest frame. Subsequent variants
            # change one or more fields, each in a fresh smoke-test process.
            $info = $contact.pointerInfo
            $info.pointerId = 1
            $info.ptPixelLocationRaw = $info.ptPixelLocation
            $contact.pointerInfo = $info
            $contact.rcContactRaw = $contact.rcContact
        }
        if ($Variant -in @('id_zero','id_and_raw_zero',
                           'id_and_pixel_raw_zero','id_and_contact_raw_zero',
                           'id_and_mask_contact_only','minimal_optional_mask')) {
            $info = $contact.pointerInfo
            $info.pointerId = 0
            $contact.pointerInfo = $info
        }
        if ($Variant -in @('raw_zero','id_and_raw_zero',
                           'id_and_pixel_raw_zero',
                           'raw_zero_and_mask_contact_only','minimal_optional_mask')) {
            $info = $contact.pointerInfo
            $info.ptPixelLocationRaw = [PaintFillTouch+Point]::new()
            $contact.pointerInfo = $info
        }
        if ($Variant -in @('raw_zero','id_and_raw_zero',
                           'id_and_contact_raw_zero',
                           'raw_zero_and_mask_contact_only','minimal_optional_mask')) {
            $contact.rcContactRaw = [PaintFillTouch+Rect]::new()
        }
        if ($Variant -in @('mask_contact_only','id_and_mask_contact_only',
                           'raw_zero_and_mask_contact_only','minimal_optional_mask')) {
            $contact.touchMask = 1 # only CONTACTAREA, as allowed by the API
            $contact.pressure = 0
        }
        $down = [PaintFillTouch]::Send([ref]$contact,[ref]$errorCode)
        $downError = $errorCode
        if ($down) {
            Start-Sleep -Milliseconds 75
            if ($Variant -eq 'current') {
                $contact = [PaintFillTouch]::Frame($x,$y,[PaintFillTouch]::UpdateFlags)
            } else {
                $info = $contact.pointerInfo
                $info.pointerFlags = [PaintFillTouch]::UpdateFlags
                $contact.pointerInfo = $info
            }
            $update = [PaintFillTouch]::Send([ref]$contact,[ref]$errorCode)
            $updateError = $errorCode
            Start-Sleep -Milliseconds 75
            if ($Variant -eq 'current') {
                $contact = [PaintFillTouch]::Frame($x,$y,[PaintFillTouch]::UpFlags)
            } else {
                $info = $contact.pointerInfo
                $info.pointerFlags = [PaintFillTouch]::UpFlags
                $contact.pointerInfo = $info
            }
            $up = [PaintFillTouch]::Send([ref]$contact,[ref]$errorCode)
            $upError = $errorCode
        }
    }
    [pscustomobject]@{
        variant = $Variant
        abi_valid = [PaintFillTouch]::LayoutValid()
        target_is_blank_own_window = $true
        initialize = $init
        initialize_error = $initError
        down = $down
        down_error = $downError
        update = $update
        update_error = $updateError
        up = $up
        up_error = $upError
    } | ConvertTo-Json -Compress
} finally {
    $form.Close()
    $form.Dispose()
}