【发布时间】:2018-02-26 20:44:53
【问题描述】:
我一直在从事ASP.NET 项目
我的Request Validator 是默认true
因此,不允许进行危险的脚本攻击,并且 ASP.NET 会抛出错误
危险要求
<script>alert('hello')</script>
这是非常好的。安全
但是为什么我的下面的脚本没有被阻止,ASP.NET 请求验证器没有在脚本下面被阻止
<%tag style=xss:expression(alert('hello'))>
这没有被阻止并被解雇
我的问题
1) <%tag style=xss:expression(alert('hello'))>
why this request was not blocked
2) <script>alert('hello')</script>
This request was blocked and ASP.NET throws me to yellow error page
Is there any way to show error on the same page
请帮忙
谢谢
【问题讨论】:
标签: c# asp.net request-validation