请问asp.net防止SQL注入攻击 [英] Does asp.net protect against sql injection attacks

查看:97
本文介绍了请问asp.net防止SQL注入攻击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在默认情况下不会对ASP.net SQL注入攻击利用ASP​​控件时保护?

By default does ASP.net protect against SQL injection attacks when using ASP controls?

推荐答案

没有。只要你供应的SQL,这取决于你是聪明的你如何使用这些控件。

No. As long as you're supplying the SQL, it's up to you to be smart in how you use the controls.

这通常意味着输入消毒,并使用参数化查询或通过动态SQL字符串存储过程。

That usually means sanitizing input and using Parameterized Queries or Stored Procedures over dynamic SQL strings.

如果该控件生成您的查询(如成员控制等),那么你得到很好的保护。

If the control is generating the queries for you (like the Membership Controls, etc.) then you're well protected.

这篇关于请问asp.net防止SQL注入攻击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆