Exploit database

GH-10887419ff8846fb2f2290bc1461c9c9

cypherhippie/cve-2026-66804

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-66804

3 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files11
cypherhippie/cve-2026-66804Revision 98f9c3b748e1

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

fresh-vm-repro/Cleanup-CrossDevicePoC.ps1

PowerShell · 4,122 bytes
<#
.SYNOPSIS
    Removes only the known CVE-2026-66804 proof-of-concept artifacts.

.DESCRIPTION
    This helper is intentionally conservative. It verifies the SHA-256 hashes
    of executable artifacts before deleting them, removes only explicitly named
    proof files, never recursively deletes C:\ProgramData\CrossDevice, and
    removes a directory only when it is empty.

    Close camera, Phone Link, and Cross Device features first. If the planted
    DLL remains loaded, reboot the disposable lab VM before cleanup.

.EXAMPLE
    .\Cleanup-CrossDevicePoC.ps1 -WhatIf

.EXAMPLE
    .\Cleanup-CrossDevicePoC.ps1
#>

[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')]
param()

Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'

$principal = [Security.Principal.WindowsPrincipal]::new(
    [Security.Principal.WindowsIdentity]::GetCurrent()
)

if (-not $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
    throw 'Run this cleanup helper from an elevated PowerShell session.'
}

$knownExecutables = [ordered]@{
    'C:\ProgramData\CrossDevice\CrossDevice.Streaming.Source.dll' = 'F05EECF775C53A42DE95862025BFADC2E89FDFE9430F6B54FBA49F7DAAE4CA17'
    'C:\Users\Public\cdv\unmarshal_helper.exe' = 'BF63BFAB26C854905AEAE5C797991B7F5A7F70826674282EE1A8FB9DCF1147D4'
}

$knownProofFiles = @(
    'C:\Users\Public\cdv\crossdevice_proof.txt',
    'C:\Users\Public\cdv\whoami_proof.txt',
    'C:\Users\Public\cdv\vtable_trace.txt',
    'C:\Users\Public\cdv\system_proof.txt',
    'C:\Users\Public\cdv\objref_trigger.bin',
    'C:\Windows\system_proof_from_exploit.txt',
    'C:\Windows\Temp\system_proof.txt'
)

function Remove-KnownExecutable {
    param(
        [Parameter(Mandatory)]
        [string] $LiteralPath,

        [Parameter(Mandatory)]
        [string] $ExpectedSha256
    )

    if (-not (Test-Path -LiteralPath $LiteralPath -PathType Leaf)) {
        Write-Host "Not present: $LiteralPath"
        return
    }

    $actualSha256 = (Get-FileHash -LiteralPath $LiteralPath -Algorithm SHA256).Hash
    if ($actualSha256 -ne $ExpectedSha256) {
        Write-Warning "Preserved hash-mismatched executable: $LiteralPath"
        Write-Warning "Expected: $ExpectedSha256"
        Write-Warning "Actual:   $actualSha256"
        return
    }

    if ($PSCmdlet.ShouldProcess($LiteralPath, 'Remove verified PoC executable')) {
        try {
            Remove-Item -LiteralPath $LiteralPath -Force
            Write-Host "Removed verified executable: $LiteralPath"
        }
        catch {
            Write-Warning "Could not remove $LiteralPath. Close camera features or reboot, then retry. $($_.Exception.Message)"
        }
    }
}

function Remove-KnownProofFile {
    param(
        [Parameter(Mandatory)]
        [string] $LiteralPath
    )

    if (-not (Test-Path -LiteralPath $LiteralPath -PathType Leaf)) {
        Write-Host "Not present: $LiteralPath"
        return
    }

    if ($PSCmdlet.ShouldProcess($LiteralPath, 'Remove named PoC proof artifact')) {
        try {
            Remove-Item -LiteralPath $LiteralPath -Force
            Write-Host "Removed proof artifact: $LiteralPath"
        }
        catch {
            Write-Warning "Could not remove $LiteralPath. $($_.Exception.Message)"
        }
    }
}

foreach ($entry in $knownExecutables.GetEnumerator()) {
    Remove-KnownExecutable -LiteralPath $entry.Key -ExpectedSha256 $entry.Value
}

foreach ($path in $knownProofFiles) {
    Remove-KnownProofFile -LiteralPath $path
}

foreach ($directory in @('C:\Users\Public\cdv', 'C:\ProgramData\CrossDevice')) {
    if (-not (Test-Path -LiteralPath $directory -PathType Container)) {
        continue
    }

    $remaining = @(Get-ChildItem -LiteralPath $directory -Force)
    if ($remaining.Count -ne 0) {
        Write-Warning "Preserved non-empty directory: $directory"
        continue
    }

    if ($PSCmdlet.ShouldProcess($directory, 'Remove empty PoC directory')) {
        Remove-Item -LiteralPath $directory -Force
        Write-Host "Removed empty directory: $directory"
    }
}

Write-Host 'Cleanup pass complete.'