HTB CCTV ZoneMinder SQL Injection, tcpdump Credential Sniffi...#2497
Open
carlospolop wants to merge 1 commit into
Open
HTB CCTV ZoneMinder SQL Injection, tcpdump Credential Sniffi...#2497carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://0xdf.gitlab.io/2026/07/11/htb-cctv.html Content Categories: Based on the analysis, this content was categorized under "Network Services Pentesting -> 80,443 - Pentesting Web Methodology: add/extend pages for ZoneMinder and motionEye/Motion; also cross-reference Pentesting Web -> SQL Injection / Command Injection and Linux Privilege Escalation -> Linux Capabilities for tcpdump cap_net_raw credential sniffing". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Overview:
The post is a complete Hack The Box Linux exploitation chain against
CCTV, a host running a public ZoneMinder surveillance application and a localhost-only motionEye/Motion stack. The attack path is: external recon → ZoneMinder default credentials →CVE-2024-51482boolean/time-based blind SQL injection → dump ZoneMinder users → crack bcrypt hashes → SSH asmark→ abusetcpdumpwith Linux capabilitycap_net_raw=eip</co...🔧 Technical Details
ZoneMinder CVE-2024-51482 boolean blind SQL injection: In vulnerable ZoneMinder versions
v1.37.* <= 1.37.64, thetidparameter in/zm/index.php?view=request&request=event&action=removetag&tid=...reaches PHP code that sets$tagId = $_REQUEST['tid']and later concatenates it into$sql = "SELECT * FROM Events_Tags WHERE TagId = $tagId". The same value may be used safely in a previous prepared statement, but the later concatenation is injectable. Prove exploitability with MySQLSLEEP(5), determine UNION column count, and then prefer a boolean oracle over time-based extraction. In the post, four columns were required,WHERE 1=1returned normal/HTTP 200 behavior, andWHERE 1=2returned HTTP 500. sqlmap was accelerated with--prefix="1 UNION SELECT 1,2,3,4 WHERE " --code 200 --technique=Bto dumpzm.Usersquickly.<br/...
🤖 Agent Actions
Done.
Updated:
src/network-services-pentesting/pentesting-web/zoneminder-motioneye-motion.mdsrc/network-services-pentesting/pentesting-web/README.mdNotes:
removetagblind SQLi and faster boolean/sqlmap workflowtcpdumpcapabilities for internal credential sniffingValidation:
sed,rg, andgit diffmdbook buildcould not be run becausemdbookis not installed in the environmentThis PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.