4.10 Ensure 'notListedCgisAllowed' is set to false

Information

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.

Rationale:

Restricting this attribute to false will help prevent unlisted CGI extensions, including potentially malicious CGI scripts from being run.

Solution

To set the notListedCgisAllowed attribute to false using IIS Manager:

Open IIS Manager as Administrator

In the Connections pane on the left, select the server to configure

In Features View, select ISAPI and CGI Restrictions; in the Actions pane, select Open Feature

In the Actions pane, select Edit Feature Settings

In the Edit ISAPI and CGI Restrictions Settings dialog, clear the Allow unspecified CGI modules check box

Click OK

To set this Request Filter using an AppCmd.exe command, run the following command at an elevated command prompt:

%systemroot%\system32\inetsrv\appcmd.exe set config -section:system.webServer/security/isapiCgiRestriction /notListedCgisAllowed:false

See Also

https://workbench.cisecurity.org/benchmarks/14293

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-18b.

Plugin: Windows

Control ID: 78578cbc833cecae1d853684b71d0a8d020d8731cc99e9c3d9a32d38ee4ecc29