TMAegis
Weitere Regeln für iis

Microsoft IIS

TMA-IIS-4.6

Ensure 'HTTP Trace Method' is disabled

MittelStufe 1Automatisiertiis

Beschreibung

The HTTP TRACE method returns the contents of client HTTP requests in the entity- body of the TRACE response. Attackers could leverage this behavior to access sensitive information, such as authentication data or cookies, contained in the HTTP headers of the request. One such way to mitigate this is by using the <verbs> element of the <requestFiltering> collection. A server-level request filtering verb rule must deny TRACE (allowed=false). PowerShell 5.1 with the WebAdministration module; run elevated. CIS marks this recommendation Manual; the automated check implements its audit procedure.

So wird geprüft

Prüfmethode: Shell-Befehl

shell
Import-Module WebAdministration -ErrorAction Stop; $t = @(Get-WebConfiguration -Filter 'system.webServer/security/requestFiltering/verbs/add' -PSPath 'MACHINE/WEBROOT/APPHOST' | Where-Object { $_.verb -eq 'TRACE' -and $_.allowed -eq $false }); if ($t.Count -gt 0) { 'compliant' } else { 'noncompliant' }
Erwartete Ausgabe
compliant

So wird behoben

Behebungsmethode: Anleitung oder Infrastruktur-Patch

Add-WebConfigurationProperty -PSPath 'MACHINE/WEBROOT/APPHOST' -Filter system.webServer/security/requestFiltering/verbs -Name . -Value @{verb='TRACE';allowed='False'}

Eigenschaften

Betriebssysteme
Beliebig
Tags
iisrequest-filtering
Referenz
CIS Microsoft IIS 10 Benchmark v1.2.1 - 4.6 Ensure 'HTTP Trace Method' is disabled

Diesen Host prüfen

Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.

shell
tmaegis scan --target iis