<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/htb-cctv-2ljtex9ul" -->

---
title: HTB: CCTV | daily.dev
description: A walkthrough of the HackTheBox machine CCTV, covering multiple exploitation steps. Starting with CVE-2024-51482, a blind SQL injection in ZoneMinder...
canonical: https://daily.dev/posts/htb-cctv-2ljtex9ul
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: HTB: CCTV | daily.dev
og:description: A walkthrough of the HackTheBox machine CCTV, covering multiple exploitation steps. Starting with CVE-2024-51482, a blind SQL injection in ZoneMinder...
og:url: https://daily.dev/posts/htb-cctv-2ljtex9ul
og:image: https://api.daily.dev/og/posts/2LJTex9UL.png
og:image:alt: HTB: CCTV
og:image:width: 1200
og:image:height: 630
og:locale: 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)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"HTB: CCTV","url":"https://daily.dev/posts/htb-cctv-2ljtex9ul","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/htb-cctv-2ljtex9ul"},"datePublished":"2026-07-11T15:23:02.388Z","dateModified":"2026-07-11T15:23:26.263Z","description":"A walkthrough of the HackTheBox machine CCTV, covering multiple exploitation steps. Starting with CVE-2024-51482, a blind SQL injection in ZoneMinder...","image":"https://media.daily.dev/image/upload/s--HRgLpUt6--/f_auto/v1722860399/public/Placeholder%2003","thumbnailUrl":"https://media.daily.dev/image/upload/s--HRgLpUt6--/f_auto/v1722860399/public/Placeholder%2003","isAccessibleForFree":true,"articleSection":"0xdf hacks stuff","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"0xdf hacks stuff","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/16cdada70d5f4fac8b588c53bcf005ff","url":"https://daily.dev/sources/0xdf"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/htb-cctv-2ljtex9ul","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,sql","timeRequired":"PT29M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"0xdf hacks stuff","item":"https://daily.dev/sources/0xdf"},{"@type":"ListItem","position":3,"name":"HTB: CCTV"}]}
```

