TMA-IIS-4.9
Ensure 'notListedIsapisAllowed' is set to false
Descripción
The notListedIsapisAllowed attribute is a server-level setting that is located in the ApplicationHost.config file in the <isapiCgiRestriction> element of the <system.webServer> section under <security>. This element ensures that malicious users cannot copy unauthorized ISAPI binaries to the Web server and then run them. It is recommended that notListedIsapisAllowed be set to false. isapiCgiRestriction notListedIsapisAllowed must be false. PowerShell 5.1 with the WebAdministration module; run elevated.
Cómo se verifica
Método de auditoría: Comando de shell
Import-Module WebAdministration -ErrorAction Stop; $c = Get-WebConfiguration -Filter 'system.webServer/security/isapiCgiRestriction' -PSPath 'MACHINE/WEBROOT/APPHOST'; if ($c.notListedIsapisAllowed -eq $false) { 'compliant' } else { 'noncompliant' }- Salida esperada
compliant
Cómo se corrige
Método de corrección: Guía o parche de infraestructura
Set-WebConfigurationProperty -PSPath 'MACHINE/WEBROOT/APPHOST' -Filter system.webServer/security/isapiCgiRestriction -Name notListedIsapisAllowed -Value False
Propiedades
- Sistemas operativos
- Cualquiera
- Etiquetas
- iisrequest-filtering
- Referencia
- CIS Microsoft IIS 10 Benchmark v1.2.1 - 4.9 Ensure 'notListedIsapisAllowed' is set to false
Verificar este host
Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.
tmaegis scan --target iis