cve/2016/CVE-2016-6662.md
2024-06-18 02:51:15 +02:00

37 lines
2.2 KiB
Markdown

### [CVE-2016-6662](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-6662)
![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen)
### Description
Oracle MySQL through 5.5.52, 5.6.x through 5.6.33, and 5.7.x through 5.7.15; MariaDB before 5.5.51, 10.0.x before 10.0.27, and 10.1.x before 10.1.17; and Percona Server before 5.5.51-38.1, 5.6.x before 5.6.32-78.0, and 5.7.x before 5.7.14-7 allow local users to create arbitrary configurations and bypass certain protection mechanisms by setting general_log_file to a my.cnf configuration. NOTE: this can be leveraged to execute arbitrary code with root privileges by setting malloc_lib. NOTE: the affected MySQL version information is from Oracle's October 2016 CPU. Oracle has not commented on third-party claims that the issue was silently patched in MySQL 5.5.52, 5.6.33, and 5.7.15.
### POC
#### Reference
- http://legalhackers.com/advisories/MySQL-Exploit-Remote-Root-Code-Execution-Privesc-CVE-2016-6662.html
- http://seclists.org/fulldisclosure/2016/Sep/23
- http://www.openwall.com/lists/oss-security/2016/09/12/3
- http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html
- https://www.exploit-db.com/exploits/40360/
- https://www.percona.com/blog/2016/09/12/percona-server-critical-update-cve-2016-6662/
#### Github
- https://github.com/ARPSyndicate/cvemon
- https://github.com/Ashrafdev/MySQL-Remote-Root-Code-Execution
- https://github.com/KosukeShimofuji/CVE-2016-6662
- https://github.com/MAYASEVEN/CVE-2016-6662
- https://github.com/boompig/cve-2016-6662
- https://github.com/konstantin-kelemen/mysqld_safe-CVE-2016-6662-patch
- https://github.com/kyawthiha7/pentest-methodology
- https://github.com/lnick2023/nicenice
- https://github.com/meersjo/ansible-mysql-cve-2016-6662
- https://github.com/qazbnm456/awesome-cve-poc
- https://github.com/retr0-13/cveScannerV2
- https://github.com/scmanjarrez/CVEScannerV2
- https://github.com/superfish9/pt
- https://github.com/xbl3/awesome-cve-poc_qazbnm456
- https://github.com/zer0yu/How-to-Hack-Like-a-Pornstar