Microsoft IIS
TMA-IIS-3.12
Ensure Server Header is removed
BaixaNível 2Automatizadaiis
Descrição
The server header headers specify the underlying technology used by the application. requestFiltering removeServerHeader must be true at server level (IIS 10 1709 or later). PowerShell 5.1 with the WebAdministration module; run elevated. CIS marks this recommendation Manual; the automated check implements its audit procedure.
Como é verificado
Método de auditoria: Comando shell
shell
Import-Module WebAdministration -ErrorAction Stop; $c = Get-WebConfiguration -Filter 'system.webServer/security/requestFiltering' -PSPath 'MACHINE/WEBROOT/APPHOST'; if ($c.removeServerHeader -eq $true) { '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/requestFiltering -Name removeServerHeader -Value True
Propriedades
- Sistemas operacionais
- Qualquer
- Tags
- iisinformation-disclosure
- Referência
- CIS Microsoft IIS 10 Benchmark v1.2.1 - 3.12 Ensure Server Header is removed
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 --level 2