TMAegis
More rules for iis

TMA-IIS-1.7

Ensure' WebDav' feature is disabled

MediumLevel 1Automatediis

Description

WebDAV is an extension to the HTTP protocol which allows clients to create, move, and delete files and resources on the web server. Note: The WebDAV feature must be enabled for this functionality to be available in IIS. The Web-DAV-Publishing Windows feature must not be installed (ServerManager module). PowerShell 5.1; reads the registry (run elevated).

How it is checked

Audit method: Shell command

shell
$f = Get-WindowsFeature -Name Web-DAV-Publishing -ErrorAction Stop; if (-not $f.Installed) { 'compliant' } else { 'noncompliant' }
Expected output
compliant

How it is fixed

Fix method: Guidance or infrastructure patch

Uninstall-WindowsFeature Web-DAV-Publishing

Properties

Operating systems
Any
Tags
iisfeatures
Reference
CIS Microsoft IIS 10 Benchmark v1.2.1 - 1.7 Ensure' WebDav' feature is disabled

Check this host

Run this on a machine you are allowed to audit. The scan is read-only.

shell
tmaegis scan --target iis