
#CVE-2013-3900 es una vulnerabilidad de ejecución remota de código en la forma en que la función WinVerifyTrust de Microsoft maneja la verificación de firmas Authenticode de Windows. Esta falla permite a un atacante modificar un archivo ejecutable firmado agregando código malicioso a una porción no verificada #del archivo sin invalidar su firma.
#La mitigación para esta vulnerabilidad es una función opcional que requiere una configuración específica en el registro. Una vez habilitada, Windows realizará una verificación más estricta de las firmas Authenticode, garantizando que no haya datos extraños en el archivo firmado.
$regPath32 = "HKLM:\Software\Microsoft\Cryptography\Wintrust\Config" $regPath64 = "HKLM:\Software\Wow6432Node\Microsoft\Cryptography\Wintrust\Config" $valueName = "EnableCertPaddingCheck" $valueData = 1
if (-not (Test-Path $regPath64)) { New-Item -Path $regPath64 -Force | Out-Null Write-Host "Created registry path: $regPath64" }
Set-ItemProperty -Path $regPath64 -Name $valueName -Value $valueData -Type DWord -Force | Out-Null Write-Host "Set $valueName to $valueData in $regPath64"
if (-not (Test-Path $regPath32)) { New-Item -Path $regPath32 -Force | Out-Null Write-Host "Created registry path: $regPath32" }
Set-ItemProperty -Path $regPath32 -Name $valueName -Value $valueData -Type DWord -Force | Out-Null Write-Host "Set $valueName to $valueData in $regPath32"
Write-Host "`nMitigation script complete."