Home >Database >Mysql Tutorial >mysql 的万能密码?_MySQL

mysql 的万能密码?_MySQL

WBOY
WBOYOriginal
2016-06-01 13:47:481451browse

bitsCN.com menzhi007 有次写用户登录模块,忘记使用empty()判断是否为空。结果使用ajax异部数据的时候,直接就登录成功了,纳闷了少许。结果做了个小测试,还真能查出来数据。当where条件为0,居然能读出数据。
我的mysql 版本为
+-------------------+
| version()         |
+-------------------+
| 5.1.37-1ubuntu5.1 |
+-------------------+

如图

mysql 的万能密码?_MySQL

bitsCN.com

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn