URLScan 和百分号

发布于 2024-09-01 02:01:26 字数 244 浏览 13 评论 0原文

所以我遇到了一个愚蠢的问题,用户无法下载带有百分号的文件。这是一个IIS6/Win2k3盒子。它最终成为 URLScan。我必须在 urlscan.ini 中取消设置两件事:

1) 将VerifyNormalization 设置为0(禁用)
2) 删除“DenyUrlSequences”部分的百分号

执行 iisreset,问题解决。但最大的问题是:这有多大的安全风险?

So I just ran into a stupid problem in which users could not download files that had a percent sign in it. This is an IIS6/Win2k3 box. It wound up being URLScan. I had to un-set two things in urlscan.ini:

1) Set VerifyNormalization to 0 (disabled)
2) Remove the percent sign from the "DenyUrlSequences" section

Do an iisreset, and problem solved. But the big question is: How much of a security risk is this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

路还长,别太狂 2024-09-08 02:01:26

百分号用于 URL 编码,可用于表达讨厌的字符,例如引号。这种拒绝可能是由于 NormalizeUrlBeforeScan 打开或关闭所致,我会尝试翻转此设置。

UrlScan 不是一个非常好的 WAF,您可能会遇到其他误报/误报问题。 Mod_Security 更成熟,可以与 IIS 一起使用,但它涉及运行反向代理,老实说这有点混乱,但恕我直言,它比 UrlScan 更混乱。

如果您有一些备用金砖,您应该拿起 Cisco ACE,是一个不错的WAF。

Percent signs are used in URL encoding and could be used to express nasty chars such as Quote Marks. This rejection may be due to NormalizeUrlBeforeScan being on or off, I would try flipping this setting.

UrlScan isn't a very good WAF and its likely that you will run into problems with other false positives/false negatives. Mod_Security is more mature and can be used with IIS however it involves running a reverse proxy which to be honest is a bit of mess but IMHO its a better mess than UrlScan.

If you have some spare gold bricks you should pick up Cisco ACE, it is a good WAF.

偏爱自由 2024-09-08 02:01:26

处理未过滤的 URI 字符实体时要小心,因为 URI 字符串可用作代码注入的工具。

Be careful with processing of unfiltered URI character entities as URI strings can be used as vehicles for code injection.

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