Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.42 KB

http-trace-method-enabled.md

File metadata and controls

34 lines (26 loc) · 1.42 KB
name severity cvss-score cvss-vector cwe-id cwe-name compliance
HTTP TRACE method enabled
low
3.7
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
CWE-16
Configuration
HIPAA ISO 27001 owasp10 PCI v4.0
164.306(a)
A.8.9
A5
pci4-6.2.4

The HTTP TRACE method is used for debugging purposes and therefore should not be enabled. This method causes the web server to include a copy of the received request in the response, so one can see exactly what was received by the server.

The request that reaches the server might contain more information than the one sent by the client. Sensitive information, such as HTTP headers with internal IP or authentication tokens, credentials, etc, could have been added by reverse proxies, something that was otherwise invisible to the client. This information can then be used to improve the successful exploitation of other vulnerabilities.

How to fix

{% tabs http-trace-method-enabled %} {% tab http-trace-method-enabled generic %} The HTTP Trace method is a setting configurable at the web server level, thus you can disable it in its configuration file, either globally or per virtual host.

How to disable it is specific to the web server that you are using, and independent of the language of your application.

For instance, in an Apache server you disable it in the virtual host configuration file, with:

    TraceEnable Off

{% endtab %}

{% endtabs %}