Exploit database

GH-8044f40294572c664663c54cc68c42c5

tarraschk/cve-2023-36884-checker

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2023-36884

7 sources

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

Repository files5
tarraschk/cve-2023-36884-checkerRevision 0cf117e04b89

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

cve-2023-36884-checker.ps1

PowerShell · 1,235 bytes
function Test-RegistryValue {
    param (
        [parameter(Mandatory = $true)][ValidateNotNullOrEmpty()][string]$Path,
        [parameter(Mandatory = $true)][ValidateNotNullOrEmpty()][string]$Value
    )
    try {
        $Val = Get-ItemProperty -Path $Path -ErrorAction Stop | select-object -ExpandProperty $Value -ErrorAction Stop
        if ($Val -eq 1) {
            $True
        }
        else
        {
            $False
        }
    }
    catch {
        $False
    }
}

$key = "HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BLOCK_CROSS_PROTOCOL_FILE_NAVIGATION"
$applications = @("Excel.exe", "Graph.exe", "MSAccess.exe", "MSPub.exe", "PowerPnt.exe", "Visio.exe", "WinProj.exe", "WinWord.exe", "Wordpad.exe")

$result = $True
foreach ($app in $applications) {
    $res = Test-RegistryValue -Value $app -Path $key
    if($res){
        Write-Output "DEBUG:OK, $app has CVE-2023-36884 mitigation enabled"
    }
    else
    {
        $result = $False
        Write-Output "DEBUG:KO, $app FEATURE_BLOCK_CROSS_PROTOCOL_FILE_NAVIGATION should be set to 1"
    }
}

if($result){
    Write-Output "META:hardening-CVE-2023-36884|OK"
}
else
{
    Write-Output "META:hardening-CVE-2023-36884|KO"
}