Skip to content
KitploitKITPLOIT
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2012-2122-Home-Lab — CVE-2012-2122 MySQL Authentication Bypass Home Lab | Kitploit
Tools/GitHubGitHub/netw0rk7/cve-2012-2122-home-lab
Vulnerability AnalysisExploitationCTFLearning & EducationDatabase SecurityLabs & Practice
GitHubnetw0rk7/cve-2012-2122-home-lab

CVE-2012-2122-Home-Lab

CVE-2012-2122 MySQL Authentication Bypass Home Lab

View Repository
39 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

ENGLISH BELOW

CVE-2012-2122 MySQL Authentication Bypass Home Lab

20220543

Lab นี้เป็นตัวอย่างสาธิตช่องโหว่ CVE-2012-2122 - MySQL Authentication Bypass
เกิดจากข้อผิดพลาดในการเปรียบเทียบค่ารหัสผ่านใน MySQL เวอร์ชัน 5.5.23 หรือต่ำกว่า
เมื่อผู้โจมตีส่งรหัสผ่านผิดซ้ำ ๆ หลายครั้ง MySQL อาจยอมให้เข้าสู่ระบบได้โดยไม่ได้ตั้งใจ


Features

  • ใช้ฐานจาก vulhub/mysql:5.5.23
  • มีสคริปต์ entrypoint.sh ที่สร้าง flag อัตโนมัติ
  • flag อยู่ที่ /tmp/flag.txt
  • flag เปลี่ยนใหม่ทุกครั้งเมื่อ docker restart
  • เหมาะสำหรับ PenTest / Red Team / CTF training

วิธีใช้งาน

1) Build และรัน

root@kitploit:~
docker-compose build
docker-compose up -d

2) ตรวจสอบสถานะ

root@kitploit:~
docker ps
docker logs s7-mysql-cve-2012-2122

วิธีโจมตี CVE-2012-2122

https://www.exploit-db.com/exploits/19092

ถ้าช่องโหว่ทำงาน จะเข้าสู่ MySQL shell ได้ทันที


วิธีหา FLAG

1) เข้าภายใน container

root@kitploit:~
docker exec -it s7-mysql-cve-2012-2122 bash
cat /tmp/flag.txt

2) ถ้าสามารถใช้ LOAD_FILE ได้

root@kitploit:~
SELECT LOAD_FILE('/tmp/flag.txt');

ไฟล์ที่รวมอยู่ใน Lab

  • Dockerfile
  • entrypoint.sh
  • docker-compose.yml

English Version

This lab demonstrates CVE-2012-2122 - MySQL Authentication Bypass

Features

  • Based on vulhub/mysql:5.5.23
  • Auto-regenerated flag stored in /tmp/flag.txt
  • New flag each container start
  • Ideal for CTF, red team exercises, and vulnerability research

Deployment

root@kitploit:~
docker-compose build
docker-compose up -d

Exploit CVE-2012-2122

https://www.exploit-db.com/exploits/19092

Retrieve Flag

root@kitploit:~
SELECT LOAD_FILE('/tmp/flag.txt');

License

For training and educational purposes only.

Download Tool