Skip to content
KitploitKITPLOIT
ToolsBlog
Log in
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Oracle-mysql-CVE-2012-2122 — Docker-based exploit environment for CVE-2012-2122 MySQL/MariaDB authentication bypass vulnerability. Demonstrates password comparison flaw allowing login with incorrect credentials. | Kitploit
Tools/GitHubGitHub/cyberharsh/oracle-mysql-cve-2012-2122
Vulnerability AnalysisExploitationPenetration TestingAuthenticationDatabase SecurityLabs & Practice
GitHubcyberharsh/oracle-mysql-cve-2012-2122

Oracle-mysql-CVE-2012-2122

Docker-based exploit environment for CVE-2012-2122 MySQL/MariaDB authentication bypass vulnerability. Demonstrates password comparison flaw allowing login with incorrect credentials.

View Repository
1296 years agoNot yet reviewed
Share

MySQL Authentication Bypass Vulnerability (CVE-2012-2122)

When connecting to MariaDB/MySQL, the entered password is compared with the expected correct password. Due to improper handling, even if memcmp() returns a non-zero value, MySQL may still consider the two passwords as identical. That is, as long as you know the username, you can directly log into the SQL database by continuous attempts.

Affected versions:

  • MariaDB versions before 5.1.62, 5.2.12, 5.3.6, 5.5.23 are not affected.
  • MySQL versions before 5.1.63, 5.5.24, 5.6.6 are not affected.

Reference links:

  • http://www.freebuf.com/vuls/3815.html
  • https://blog.rapid7.com/2012/06/11/cve-2012-2122-a-tragically-comedic-security-flaw-in-mysql/

Environment Setup

Tests have shown that although this environment runs inside a container, whether the vulnerability can be reproduced still has a certain relationship with the host machine. It is best to choose Ubuntu or Mac as the host system, but it is uncertain whether it will always succeed. More test results are welcome in Issues.

Execute the following command to start the test environment:

docker-compose up -d

After the environment starts, a MySQL service (version: 5.5.23) will be launched, listening on port 3306. You can log in directly with a normal MySQL client; the correct root password is 123456.

Vulnerability Verification

Without knowing the correct password for our environment, run the following command in bash; after a certain number of attempts, you can log in successfully:

for i in `seq 1 1000`; do mysql -uroot -pwrong -h your-ip -P3306 ; done

For more testing and exploitation methods, see the reference links.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    755
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    510
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    415
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    343
  • 5

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    259
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    258

Explore all tools

Browse our collection of tools

View all tools →