当前位置: 首页 > 图文教程 > 网络编程 > PHP > 常常说的SQL注入是怎么做的? - PHPchina

PHP
从魔兽看PHP设计模式
用SSH与PHP相连接 确保数据传输的安全性
Windows XP系统下安装apache+php+mysql
正则表达式在线检测工具推荐
用php实现远程网络文件下载到服务器
PHP+MYSQL实例:网站在线人数的代码
举例说明ASP和PHP一些相同之处
关于网站计数器的PHP程序代码
PHP实例程序:直接读取数据库信息的三种方法
PHP技巧代码:apache 防盗链两例
Apache、PHP和mySQL的配置的过程
新手学PHP和MySQL动态网站开发教程
如何搭建一个安全的PHPWind服务器?
PHP常用开发工具分析
PHP动态网页开发中常用的一些函数
初学认识一些用PHP开发的博客程序
PHP动态的在图片上添加透明度渐变的效果
PHP smarty的ubb插件实现彩字
PHP在大型网站开发中的一些问题
PHP匹配变音使404页面更加智能化

常常说的SQL注入是怎么做的? - PHPchina


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 103 ::
收藏到网摘: n/a

常常看到网上说的sql注入是怎么做的?
  应该怎么防止??【论坛浏览】 

 相关评论
作者: catiger 发布日期: 2006-10-06
it is about playing with SQL statement.

if u r familiar with SQL, u can write things like -- or // to comment out something

since the web forms or urls accept parameters, the paramemter values may be used to construct SQL statement, if there lacks a check on the parameter values like avoiding special characters like --, //, ', "", some vicious SQL code could be injected by creating a SQL admin account and even injecting some SQL dll in order to obtain the web server privileges...

usually if using Java beans, .NET data acceess layers, the problem does not exist since those prohibited characters will be detected and exceptions will be thrown out.

is there a solution for PHP? there may be...depending on which web framework you choose to develop your applicaiton upon.

my 2 cents

[ 本帖最后由 catiger 于 2006-10-6 04:20 PM 编辑 ]
作者: ysoo 发布日期: 2006-10-06
英文不好,是否可以用中文说明?

共有评论数 2/每页显示数 10