在 texbox 中使用类似 SQL 注入的文本会导致提交时出现 401.1

发布于 2024-08-18 10:58:00 字数 531 浏览 2 评论 0原文

这是我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟火散人牵绊 2024-08-25 10:58:00

这听起来像是负载均衡器或类似的设备看到 ;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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文