TMAegis
Thêm quy tắc cho iis

TMA-IIS-4.10

Ensure 'notListedCgisAllowed' is set to false

CaoCấp 1Tự độngiis

Mô tả

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.

Cách kiểm tra

Phương pháp kiểm tra: Lệnh 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' }
Đầu ra mong đợi
compliant

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

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

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
iisrequest-filtering
Tham chiếu
CIS Microsoft IIS 10 Benchmark v1.2.1 - 4.10 Ensure 'notListedCgisAllowed' is set to false

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target iis