渗透测试盲 SQL 注入和视图状态错误

发布于 2024-12-23 00:23:40 字数 315 浏览 1 评论 0原文

我有一个 ASP.NET Web 应用程序,正在接受内部 IT 人员的笔测试。他们使用 IBM AppScan 对 Web 应用程序运行扫描。不断出现的错误之一是与视图状态输入字段相关的错误。该工具修改视图状态并将其发送回服务器。服务器抛出错误,然后捕获并重定向用户通用错误处理屏幕。 AppScan 将其标记为盲 SQL 注入。

我正在向 IT 安全人员解释这一点。我告诉他们,我能做的最好的事情就是捕获错误并向用户返回错误屏幕。他们坚称存在某种 SQL 注入。

对于这种情况,您推荐什么其他方式或方法? 其他人如何处理这个问题?如果用户故意更改视图状态,错误屏幕不是最好的回复吗?

I have an asp.net web app that's going through a pen test by internal IT. They are using IBM AppScan to run scans against the web app. One of the errors that keeps coming up is viewstate input field related. The tool modifies the viewstate and sends it back to the server. The server throws an error then catch and redirect the user generic error handling screen. AppScan marks this as a blind SQL injection.

I'm explaining this to the IT security guys. I tell them that the best thing I can do is catch the error and return an error screen to the user. They are insisting that there's some kind of SQL injection going on.

What other way or method do you recomend for this kind of situation?
How do others handle this? If a user deliberately changes the viewstate isn't an error screen the best reply?

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

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

发布评论

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

评论(2

谎言 2024-12-30 00:23:40

如果短语:

看!这是我记录的该死的错误记录!您可以清楚地看到,应用程序由于无效的视图状态而不满意。这是正确的,因为您的视图状态无效!如果您认为您执行了 SQL 注入,请告诉我您认为您注入了什么 SQL!看,这是我同时拍摄的 SQL 跟踪!显示 SQL。显示 SQL!

不起作用,那么...我不知道,也许不使用视图状态?这会阻止他们...

另一个选择是:在内部记录故障,然后将它们注销。

If the phrase:

Look! Here's the damned error record I logged! You can clearly see, the application is unhappy because of invalid view state. Which is correct, because your viewstate was not valid! If you think you've performed a SQL injection, please tell me what SQL you think you injected! Look, here's a SQL trace I took at the same time! Show me the SQL. SHOW ME THE SQL!

doesnt work, then... I dunno, maybe don't use viewstate? That'll stop 'em...

Another option would just be: log the fault internally, and just log them out.

感受沵的脚步 2024-12-30 00:23:40

对于这种情况,您还推荐什么其他方式或方法?其他人如何处理这个问题?

继续和他们交谈。关闭他们记录的缺陷,将其标记为无效。

如果一切都失败了,请在测试中记录缺陷并继续。生命太短暂了。

What other way or method do you recomend for this kind of situation? How do others handle this?

Continue to talk with them. Close the defect they've logged, marking it as invalid.

If all else fails, log a defect on their tests and move on. Life is too short.

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