当前位置:网站首页>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
边栏推荐
- Web APIs DOM 时间对象
- Windows auzre background operation interface of Microsoft's cloud computing products
- 网络基础入门理解
- Jafka来源分析——Processor
- HDU 5077 NAND (violent tabulation)
- rust知识思维导图xmind
- Data storage (1)
- Adavit -- dynamic network with adaptive selection of computing structure
- AdaViT——自适应选择计算结构的动态网络
- BasicVSR_ Plusplus master test videos and pictures
猜你喜欢
自制J-Flash烧录工具——Qt调用jlinkARM.dll方式
Aardio - 不声明直接传float数值的方法
pytorch_ Yolox pruning [with code]
uniapp滑动到一定的高度后固定某个元素到顶部效果demo(整理)
Installation and use of labelimg
关于声子和热输运计算中BORN电荷和non-analytic修正的问题
(18) LCD1602 experiment
config:invalid signature 解决办法和问题排查详解
Adavit -- dynamic network with adaptive selection of computing structure
View
随机推荐
Clip +json parsing converts the sound in the video into text
(十八)LCD1602实验
volatile关键字
Traversal of a tree in first order, middle order, and then order
Plafond du tutoriel MySQL, bien collecté, regardez lentement
leetcode:面试题 17.24. 子矩阵最大累加和(待研究)
NPDP certification | how do product managers communicate across functions / teams?
Aardio - does not declare the method of directly passing float values
Machine test question 1
Windows Auzre 微软的云计算产品的后台操作界面
MySQL约束的分类、作用及用法
变量与“零值”的比较
Uniapp setting background image effect demo (sorting)
config:invalid signature 解决办法和问题排查详解
Build op-tee development environment based on qemuv8
memcached
2022-07-05 stonedb的子查询处理解析耗时分析
Should novice programmers memorize code?
AdaViT——自适应选择计算结构的动态网络
Senior soft test (Information System Project Manager) high frequency test site: project quality management