---
title: "HTB: CCTV"
url: https://daily.dev/posts/htb-cctv-2ljtex9ul
source_url: https://0xdf.gitlab.io/2026/07/11/htb-cctv.html
type: article
source: "0xdf hacks stuff"
published: 2026-07-11T15:23:02.388Z
updated: 2026-07-11T15:23:26.263Z
tags: ["security", "sql"]
reading_time: 29
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# HTB: CCTV

**[0xdf hacks stuff](https://daily.dev/sources/0xdf)** · 29 min read · 0 upvotes · 0 comments

## Summary

A walkthrough of the HackTheBox machine CCTV, covering multiple exploitation steps. Starting with CVE-2024-51482, a blind SQL injection in ZoneMinder v1.37.63's event handling, sqlmap is used with boolean-based techniques to dump user credentials and crack bcrypt hashes for SSH access. From there, tcpdump (configured with cap_net_raw capability) is used to sniff cleartext credentials from a custom management protocol, gaining access as sa_mark. Finally, CVE-2025-60787, an authenticated command injection in motionEye v0.43.1b4's still-image filename setting, is exploited by bypassing client-side JavaScript validation to achieve remote code execution as root. A bonus section covers an unintended path using Motion's unauthenticated HTTP control interface directly to inject commands, and a quirk in motionEye's password hashing that allows login with the SHA1 hash instead of the plaintext password.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://0xdf.gitlab.io/2026/07/11/htb-cctv.html>

## Similar posts on daily.dev

- [HTB: Watcher](https://daily.dev/posts/htb-watcher-v112tdyze) · 0xdf hacks stuff · 2 upvotes · 0 comments
- [HTB: Dump](https://daily.dev/posts/htb-dump-yhhzlzoum) · 0xdf hacks stuff · 1 upvotes · 0 comments
- [Imagery HTB WriteUp: Season 9 Machine 2](https://daily.dev/posts/imagery-htb-writeup-season-9-machine-2-yftbktiwv) · InfoSec Write-ups · 1 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#sql](https://daily.dev/tags/sql)

[View this post on daily.dev](https://daily.dev/posts/htb-cctv-2ljtex9ul)
