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
sqli-hunter-CVE-2024-51482-PoC — Scripts en Python para la explotación de CVE-2024-51482 (SQLi en ZoneMinder) — HTB CCTV | Kitploit
Tools/GitHubGitHub/lnn0v4/sqli-hunter-cve-2024-51482-poc
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHublnn0v4/sqli-hunter-cve-2024-51482-poc

sqli-hunter-CVE-2024-51482-PoC

Scripts en Python para la explotación de CVE-2024-51482 (SQLi en ZoneMinder) — HTB CCTV

View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
5 months agoNot yet reviewed

sqli-hunter-CVE-2024-51482-PoC

Python scripts for exploiting CVE-2024-51482 (SQLi in ZoneMinder) — HTB CCTV sqli-hunter — CVE-2024-51482

Description

This script automates the extraction of databases, tables, columns, and credentials by exploiting CVE-2024-51482, a Boolean-based SQL Injection vulnerability in the tid parameter of the removetag endpoint of ZoneMinder ≤ 1.37.64. The vulnerable code in web/ajax/event.php directly inserts $_REQUEST['tid'] into an SQL query without sanitization

root@kitploit:~
case 'removetag':
    $tagId = $_REQUEST['tid'];
    $sql = "SELECT * FROM Events_Tags WHERE TagId = $tagId"; // ← vulnerable
    $rowCount = dbNumRows($sql);

Description

🎥 Demo video

CCTV db - HTB

Requirements

root@kitploit:~
-Python 3.x
-pwntools

Installation

root@kitploit:~
git clone https://github.com/lnn0v4/sqli-hunter-CVE-2024-51482-PoC.git
cd sqli-hunter-CVE-2024-51482-PoC
python3 -m venv venv
source venv/bin/activate
pip install pwntools

Usage

  1. Update the cookie in the script:
root@kitploit:~
URL    = "http://cctv.htb/zm/index.php?view=request&request=event&action=removetag&tid="
COOKIE = {"ZMSESSID": "TU_COOKIE_AQUI"}
  1. Run the script:
root@kitploit:~
python3 CVE-2024-51482.py
image

Features

root@kitploit:~
✅ Automatic baseline latency detection
✅ ASCII binary search (7x faster than brute force)
✅ Parallel extraction with threads (ThreadPoolExecutor)
✅ Interactive menu: DB → Tables → Columns → Data
✅ Column cache to avoid re-extraction
✅ Navigate between tables without restarting the script

Warning

⚠️ This script is for educational purposes only and for use in authorized environments such as HackTheBox. Do not use this code on systems without explicit authorization.

License

MIT License

Download Tool