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

PHP
黑客隐藏PHP文件后门的技巧
新手通过实例学习动态网页PHP的语法
使用PHP生成1000个随机注册码
用PHP5的SimpleXML解析XML文档
PHP程序中使用session错误调试问题
简单学习动态网页制作PHP中的Cookies
取得当前插入数据库中记录的id值
显示照片exif信息PHP代码
在PHP中使用灵巧的体系结构
5种方法让您成为php开发高手
PHP编程中break及continue两个流程控制指令
PHP空白页面常见原因及解决方法
面向搜索引擎的URL优化
一个完整、安全的用户登录系统
有效防御PHP木马攻击的技巧
坏狼的PHP学习第1天!
坏狼的php学习第2天
坏狼的php学习第3天
简单站内HTML文件搜索程序
用PHP画一个可以更换文字的按纽

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 38 ::
收藏到网摘: 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