TMAegisBeta
Mais regras para iis

Microsoft IIS

TMA-IIS-4.10

Ensure 'notListedCgisAllowed' is set to false

AltaNível 1Automatizadaiis

Descrição

The notListedCgisAllowed 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 CGI binaries to the Web server and then run them. It is recommended that notListedCgisAllowed be set to false. isapiCgiRestriction notListedCgisAllowed must be false. PowerShell 5.1 with the WebAdministration module; run elevated.

Como é verificado

Método de auditoria: Comando shell

shell
Import-Module WebAdministration -ErrorAction Stop; $c = Get-WebConfiguration -Filter 'system.webServer/security/isapiCgiRestriction' -PSPath 'MACHINE/WEBROOT/APPHOST'; if ($c.notListedCgisAllowed -eq $false) { 'compliant' } else { 'noncompliant' }
Saída esperada
compliant

Como é corrigido

Método de correção: Orientação ou patch de infraestrutura

Set-WebConfigurationProperty -PSPath 'MACHINE/WEBROOT/APPHOST' -Filter system.webServer/security/isapiCgiRestriction -Name notListedCgisAllowed -Value False

Propriedades

Sistemas operacionais
Qualquer
Tags
iisrequest-filtering
Referência
CIS Microsoft IIS 10 Benchmark v1.2.1 - 4.10 Ensure 'notListedCgisAllowed' is set to false

Verificar este host

Execute isto em uma máquina que você tenha permissão para auditar. A varredura é somente leitura.

shell
tmaegis scan --target iis