在 texbox 中使用类似 SQL 注入的文本会导致提交时出现 401.1
这是我在 8 月份发布的帖子的后续内容:询问 AD 凭据/ 回发时“连接中断”
该问题再次出现以获取新记录,我确定有问题的文本是“... Sharepoint 站点[分号] 更新团队计划...”。注意到“[分号]更新团队”吗?这是完全有效的,不是 SQL 注入。把它改成逗号,提交就没有问题了。将“update”更改为另一个 SQL 关键字,系统会提示用户输入其凭据(始终会被拒绝),然后显示 IIS 401.1 页面。
是的,您需要将[分号]替换为该字符,因为SO不会让我发帖。
在 @Page
中,我有 ValidateRequest="false"
(是的,文本框中的内容将通过 HttpUtility.HtmlEncode
作为参数化输入存储过程)
有什么想法吗?
This is a follow up to my post back in August: Asks for AD credentials / "Connection Interrupted" on Postback
The issue popped up again for a new record and I have determined that the offending text is "... Sharepoint site[semi-colon] update team schedule ...". Notice that "[semi-colon] update team"? It's perfectly valid, not SQL injection. Change it to a comma, it submits no problem. Change the "update" to another SQL keyword, the user gets prompted for their credentials (which are always rejected) and then displays the IIS 401.1 page.
Yes, you need to replace the [semi-colon] with the character, because SO won't let me post.
In the @Page
, I have ValidateRequest="false"
(yes, the contents from the textboxes are going through HttpUtility.HtmlEncode
as parameterized input to a stored procedure)
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这听起来像是负载均衡器或类似的设备看到
;update
并怀疑 SQL 注入。查找您和网络服务器之间有问题的硬件。要进行确认,请尝试将会话中的违规文本直接发布到 Web 服务器本身上。我猜你这样做不会有任何问题。
This sounds like a load balancer or similar that is seeing
;update
and suspecting SQL injection. Look for a piece of offending hardware between you and the web server.To confirm, try posting the offending text from a session directly on the web server itself. I am guessing that you will have no problem doing so.