Goby/json/MySQL-Login-Bypass-Vulnerab...

89 lines
2.7 KiB
JSON

{
"Name": "MySQL Login Bypass Vulnerability (CVE-2012-2122)",
"Description": "sql/password.c in Oracle MySQL 5.1.x before 5.1.63, 5.5.x before 5.5.24, and 5.6.x before 5.6.6, and MariaDB 5.1.x before 5.1.62, 5.2.x before 5.2.12, 5.3.x before 5.3.6, and 5.5.x before 5.5.23, when running in certain environments with certain implementations of the memcmp function, allows remote attackers to bypass authentication by repeatedly authenticating with the same incorrect password, which eventually causes a token comparison to succeed due to an improperly-checked return value.",
"Product": "mysql",
"Homepage": "",
"DisclosureDate": "2012-06-26",
"Author": "gobysec@gmail.com",
"FofaQuery": "protocol=mysql",
"GobyQuery": "protocol=mysql",
"Level": "3",
"Impact": "",
"Recommendation": "Upgrade to new version.",
"References": [
"http://bugs.mysql.com/bug.php?id=64884",
"http://kb.askmonty.org/en/mariadb-5162-release-notes/",
"http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00007.html",
"http://seclists.org/oss-sec/2012/q2/493",
"http://security.gentoo.org/glsa/glsa-201308-06.xml",
"http://securitytracker.com/id?1027143",
"http://www.exploit-db.com/exploits/19092",
"http://www.securityfocus.com/bid/53911",
"https://community.rapid7.com/community/metasploit/blog/2012/06/11/cve-2012-2122-a-tragically-comedic-security-flaw-in-mysql",
"https://nvd.nist.gov/vuln/detail/CVE-2012-2122",
"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-2122",
"https://gist.github.com/slava-vishnyakov/2909542"
],
"HasExp": true,
"ExpParams": [
{
"name": "MysqlUser",
"type": "input",
"value": "root"
},
{
"name": "AttackType",
"type": "select",
"value": "dumphash,sql"
},
{
"name": "sql",
"type": "input",
"value": "select version()",
"show": "AttackType=sql"
}
],
"ExpTips": {
"Type": "",
"Content": ""
},
"ScanSteps": [
"AND",
{
"Request": {
"data": "",
"data_type": "text",
"follow_redirect": true,
"method": "GET",
"uri": "/"
},
"ResponseTest": {
"checks": [
{
"bz": "",
"operation": "==",
"type": "item",
"value": "200",
"variable": "$code"
}
],
"operation": "AND",
"type": "group"
}
}
],
"ExploitSteps": null,
"Tags": null,
"CVEIDs": [
"CVE-2012-2122"
],
"CVSSScore": "5.1",
"AttackSurfaces": {
"Application": null,
"Support": null,
"Service": ["mysql"],
"System": null,
"Hardware": null
},
"Disable": false
}