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.

29m read timeFrom 0xdf.gitlab.io
Post cover image
Table of contents
Box InfoReconShell as markShell as sa_markShell as rootBeyond Root - Unintended Paths
378 Impressions