私たちのサイトの1つにある問題は次のとおりです。
Windows ファイル システムの短縮文字とステータス リターン コードを使用したファイル/ディレクトリ名の総当たり攻撃
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/
考えられる解決策の 1 つ: ... 可能であれば、URL 書き換えを使用して、チルダ文字を含む URL を受け入れないようにすることを検討してください ...
質問: どうすればいいですか? Web サイトのすべての URL で ~ 文字を破棄するために、URL 書き換えルールでどの正規表現を使用する必要があるか (ASP.NET 3.5)