我正在使用 WebForm
我正在对我的网站进行安全测试,但是当我尝试通过 url 传递一个 QueryString 时,例如:
'"-->netsparker(0x00286A) mysite/Error/PageNotFound.aspx?aspxerrorpath=%27%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x0030C5)%3C/script %3E
我在“/”应用程序中出现服务器错误。
从客户端检测到潜在危险的 Request.QueryString 值 从客户端 (>) 检测到潜在危险的 Request.Path 值。
我在 web.config
<httpRuntime enableVersionHeader="false"/>
<customErrors mode="On" defaultRedirect="~/Error/GeneralError.aspx">
<error statusCode="404" redirect="~/Error/PageNotFound.aspx" />
<error statusCode="403" redirect="~/Error/GeneralError.aspx" />
<error statusCode="500" redirect="~/Error/GeneralError.aspx" />
</customErrors>
..................
<pages controlRenderingCompatibilityVersion="4.0" viewStateEncryptionMode="Always">
知道我该如何纠正吗?