TMAegis
Plus de règles pour iis

TMA-IIS-4.10

Ensure 'notListedCgisAllowed' is set to false

ÉlevéeNiveau 1Automatiséeiis

Description

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.

Méthode de vérification

Méthode d'audit: Commande 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' }
Sortie attendue
compliant

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

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

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
iisrequest-filtering
Référence
CIS Microsoft IIS 10 Benchmark v1.2.1 - 4.10 Ensure 'notListedCgisAllowed' is set to false

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target iis