我知道如何在代码中检查这个设置,我也知道在web.config中应该在哪里查找,但是我似乎找不到像Qualys这样的漏洞扫描器如何检测到这一点的信息。
我考虑过以下几点,但我无法知道我的猜测是否正确:
Debug=true时,是否有从web服务器发送的http头?发布于 2013-10-01 19:44:02
发布于 2015-12-10 11:02:24
你可以查看这个@AbeMiessler
正常HTTP-请求:
GET / HTTP/1.1
Host: www.test.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:28.0) Gecko/20100101 Firefox/28.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate
Cookie: Token=dfe31f692334663ae9d466662be6d3
Connection: keep-alive修改后的请求:
DEBUG /Test.aspx HTTP/1.1 HTTP/1.1
Cookie: Token=dfe31f692334663ae9d466662be6d3
Content-Length: 0
Accept: */*
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64;)
Host: www.test.com
Command: stop-debug如果启用了调试,则响应:
HTTP/1.1 200 OK
Server: Microsoft-IIS/7.0
X-Powered-By: ASP.NET
Date: Mon, 14 Apr 2014 12:19:45 GMT
Content-Length: 2
OK
你可以在这里读到更多关于它的信息:https://www.owasp.org/index.php/ASP.NET_错位
https://security.stackexchange.com/questions/43177
复制相似问题