### [CVE-2016-6663](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-6663) ![](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 Race condition in Oracle MySQL before 5.5.52, 5.6.x before 5.6.33, 5.7.x before 5.7.15, and 8.x before 8.0.1; MariaDB before 5.5.52, 10.0.x before 10.0.28, and 10.1.x before 10.1.18; Percona Server before 5.5.51-38.2, 5.6.x before 5.6.32-78-1, and 5.7.x before 5.7.14-8; and Percona XtraDB Cluster before 5.5.41-37.0, 5.6.x before 5.6.32-25.17, and 5.7.x before 5.7.14-26.17 allows local users with certain permissions to gain privileges by leveraging use of my_copystat by REPAIR TABLE to repair a MyISAM table. ### POC #### Reference - http://seclists.org/fulldisclosure/2016/Nov/4 - http://seclists.org/fulldisclosure/2016/Nov/4 - http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html - http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html - https://legalhackers.com/advisories/MySQL-Maria-Percona-PrivEscRace-CVE-2016-6663-5616-Exploit.html - https://legalhackers.com/advisories/MySQL-Maria-Percona-PrivEscRace-CVE-2016-6663-5616-Exploit.html - https://www.exploit-db.com/exploits/40678/ - https://www.exploit-db.com/exploits/40678/ - https://www.percona.com/blog/2016/11/02/percona-responds-to-cve-2016-6663-and-cve-2016-6664/ - https://www.percona.com/blog/2016/11/02/percona-responds-to-cve-2016-6663-and-cve-2016-6664/ #### Github - https://github.com/7hang/cyber-security-interview - https://github.com/ARPSyndicate/cvemon - https://github.com/Live-Hack-CVE/CVE-2016-6664 - https://github.com/brmzkw/links - https://github.com/firebroo/CVE-2016-6663 - https://github.com/r0eXpeR/redteam_vul - https://github.com/stevenharradine/mariadb-vulneribility-scanner-patcher-20161104 - https://github.com/superfish9/pt