2012-08-14 184 views
2

這裏是問題,我們有我們的網站之一:使用Windows文件系統的縮寫字和狀態IIS波浪漏洞問題

文件/目錄名窮舉返回代碼

It is possible to find an unknown filename up to six characters by using shorthand file characters such as ~1 and 
    *Example: site.com/admin/uplo*~1*/.aspx 
This attack relies on reading different error codes the webserver responds with when the file(s) exist or not. Let’s say the file upload.aspx exists in the directory admin. Our attacks responses would look like this: 
    site.com/admin/uplo*~1*/.aspx – IIS returns HTTP 404 File Not Found (valid file) 
    site.com/admin/uplp*~1*/.aspx – IIS returns HTTP 400 Bad Request (invalid file) 
     *Note that IIS 7.x responds with different error codes (0×0 when valid) instead of http status codes 

更多細節 http://www.alertlogic.com/internet-information-server-iis-exploitation-2/

其中一個可能的解決方案: ... 如果可能的話,你可能要考慮使用URL重寫不允許帶有一個波浪字符的任何URL被接受 ...

問: 如何做到這一點?什麼樣的正則表達式應該在URL重寫規則中使用以廢棄〜在網站上的所有網址字符(ASP.NET 3.5)

+0

Alertlogic URL不起作用 - 返回404 – GlennG 2014-08-06 12:55:08

回答