This is annoying misconfiguration I’ve come across a few times – tracing has been enabled on production systems.
Having tracing enabled allows an attacker to view the last 50 web requests made to the server, including information like Session ID values and the physical path to the requested files.
Nasty.
One can easily turn this off, though, by setting the <trace>
node of web.config…
<trace enabled="false"...
However, you can do a bit more than that. I believe that this problem occurred on live sites because configuration files were promoted from development to production. To this end, you can set localOnly="true"
– this means that trace is only available on the local developer’s machine. This doesn’t substitute for disabling trace, but it does help reduce that risk.
- The trace element – https://msdn.microsoft.com/library/6915t83k(v=vs.100).aspx