Microsoft IIS
TMA-IIS-4.9
Ensure 'notListedIsapisAllowed' is set to false
説明
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.
チェック方法
監査方法: シェルコマンド
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' }- 期待される出力
compliant
修正方法
修正方法: ガイダンスまたは IaC パッチ
Set-WebConfigurationProperty -PSPath 'MACHINE/WEBROOT/APPHOST' -Filter system.webServer/security/isapiCgiRestriction -Name notListedIsapisAllowed -Value False
プロパティ
- オペレーティングシステム
- すべて
- タグ
- iisrequest-filtering
- 参照
- CIS Microsoft IIS 10 Benchmark v1.2.1 - 4.9 Ensure 'notListedIsapisAllowed' is set to false
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
tmaegis scan --target iis