Description:
The TRACE and TRACK protocols are HTTP methods used in the debugging of web server connections.
Although these methods are useful for legitimate purposes, they may compromise the security of the server by enabling cross-site scripting attacks (XST). By exploiting certain browser vulnerabilities, an attacker may manipulate the TRACE and TRACK methods to intercept your visitor's sensitive data. Apache web server support these by default. The solution is to disable these methods on the web server.
Solution:
The following steps must be performed as a user with administrator privileges if running a Windows OS and if it's a UNIX machine these steps must be done as the root user.
# Custom Protect SectionReWriteEngine onReWriteCond %{REQUEST_METHOD} ^TRACKReWriteRUle .* - [F]# End Custom Protect SectionTo disable TRACE and TRACK HTTP methods on your Apache-powered web server, add the following directives to httpd.tpl file:
# Custom Protect Section RewriteEngine onRewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)RewriteRule .* - [F]# End Custom Protect SectionThese directives disable the TRACE and TRACK methods via the following process: