<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Hmac on binreaper</title>
    <link>https://binreaper.pages.dev/tags/hmac/</link>
    <description>Recent content in Hmac on binreaper</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 09 Mar 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://binreaper.pages.dev/tags/hmac/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>HTB CCTV — ZoneMinder SQLi to Root via motionEye Signed API Command Injection</title>
      <link>https://binreaper.pages.dev/posts/2026-03-09-htb-cctv/</link>
      <pubDate>Mon, 09 Mar 2026 00:00:00 +0000</pubDate>
      <guid>https://binreaper.pages.dev/posts/2026-03-09-htb-cctv/</guid>
      <description>&lt;h2 id=&#34;tldr&#34;&gt;TL;DR&lt;/h2&gt;&#xA;&lt;p&gt;Log into ZoneMinder with default credentials (&lt;code&gt;admin:admin&lt;/code&gt;), use CVE-2024-51482 (SQL injection) to extract the bcrypt password hash for user &lt;code&gt;mark&lt;/code&gt;, crack it (&lt;code&gt;opensesame&lt;/code&gt;), SSH in, then exploit motionEye (running as root on localhost:8765) by forging HMAC-signed API requests using the admin password hash from the config file to inject a command into the &lt;code&gt;on_event_start&lt;/code&gt; hook, and trigger it via the motion HTTP control API.&lt;/p&gt;&#xA;&lt;h2 id=&#34;enumeration&#34;&gt;Enumeration&lt;/h2&gt;&#xA;&lt;h3 id=&#34;port-scan&#34;&gt;Port Scan&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;22/tcp — OpenSSH 9.6p1 Ubuntu&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;80/tcp — Apache 2.4.58 (Ubuntu) → redirects to http://cctv.htb/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add &lt;code&gt;cctv.htb&lt;/code&gt; to &lt;code&gt;/etc/hosts&lt;/code&gt; and browse to port 80.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
