<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Web on Hackpuntes</title><link>https://hackpuntes.com/categories/web/</link><description>Recent content in Web on Hackpuntes</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sat, 11 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://hackpuntes.com/categories/web/index.xml" rel="self" type="application/rss+xml"/><item><title>CCTV WriteUp</title><link>https://hackpuntes.com/posts/hackthebox/machines/cctv-writeup/</link><pubDate>Sat, 11 Jul 2026 00:00:00 +0000</pubDate><guid>https://hackpuntes.com/posts/hackthebox/machines/cctv-writeup/</guid><description>&lt;p&gt;&lt;a href="https://hackpuntes.com/images/hackthebox/machines/cctv/cctv-banner.webp"&gt;&lt;img src="https://hackpuntes.com/images/hackthebox/machines/cctv/cctv-banner.webp" alt="CCTV WriteUp" loading="eager" decoding="async" /&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;CCTV&lt;/strong&gt; is a &lt;code&gt;🟩 Easy&lt;/code&gt; machine on &lt;strong&gt;Hack The Box&lt;/strong&gt;. It chains a SQL Injection in &lt;strong&gt;ZoneMinder&lt;/strong&gt; to obtain SSH credentials, with the discovery of internal video surveillance services after pivoting from the compromised machine. Escalation to root is achieved through an authenticated RCE in &lt;strong&gt;motionEye&lt;/strong&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;IP&lt;/strong&gt;: &lt;code&gt;10.129.3.35&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Approximate time&lt;/strong&gt;: &lt;code&gt;~1.5h&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="-attack-chain"&gt;🗺️ Attack Chain&lt;/h2&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;Nmap → Port 80 (ZoneMinder 1.37.63)
│
▼
Default credentials admin:admin → panel access
│
▼
CVE-2024-51482 (Boolean SQLi) → sqlmap → mark:opensesame
│
▼
SSH as mark
│
▼
LinPEAS → tcpdump (cap_net_raw) + internal ports
│
▼
Port Forwarding → motionEye 0.43.1b4 on :8765
│
▼
/etc/motioneye/motion.conf → admin:989c5a8ee87a0e9521ec81a79187d162109282f0
│
▼
CVE-2025-60787 (Metasploit RCE) → root 🏴
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="-reconnaissance"&gt;🔍 Reconnaissance&lt;/h2&gt;
&lt;h3 id="port-scanning"&gt;Port Scanning&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;10.129.3.35 cctv.htb&amp;#34;&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; sudo tee -a /etc/hosts
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo nmap -p- --open -Pn --min-rate &lt;span class="m"&gt;5000&lt;/span&gt; -oA ports -vvv cctv.htb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;grep -oP &lt;span class="s1"&gt;&amp;#39;\d+/open&amp;#39;&lt;/span&gt; ports.gnmap &lt;span class="p"&gt;|&lt;/span&gt; cut -d&lt;span class="s1"&gt;&amp;#39;/&amp;#39;&lt;/span&gt; -f1 &lt;span class="p"&gt;|&lt;/span&gt; sort -u &lt;span class="p"&gt;|&lt;/span&gt; tr &lt;span class="s1"&gt;&amp;#39;\n&amp;#39;&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;,&amp;#39;&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; sed &lt;span class="s1"&gt;&amp;#39;s/,$//&amp;#39;&lt;/span&gt; &amp;gt; ports.txt
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo nmap -sCV -p&lt;span class="k"&gt;$(&lt;/span&gt;cat ports.txt&lt;span class="k"&gt;)&lt;/span&gt; -Pn -oA scan -vvv cctv.htb
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Port&lt;/th&gt;
&lt;th&gt;Service&lt;/th&gt;
&lt;th&gt;Detail&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;22&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;SSH&lt;/td&gt;
&lt;td&gt;OpenSSH 9.6p1 Ubuntu&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;80&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;HTTP&lt;/td&gt;
&lt;td&gt;Apache 2.4.58 → &lt;code&gt;SecureVision CCTV&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Small attack surface. Port 22 is not vulnerable, so we focus on port 80.&lt;/p&gt;</description></item><item><title>Fridagate - Android Tool to Manage Frida and Intercept Traffic with Burp Suite</title><link>https://hackpuntes.com/posts/fridagate-android-pentesting-tool/</link><pubDate>Wed, 15 Apr 2026 00:00:00 +0000</pubDate><guid>https://hackpuntes.com/posts/fridagate-android-pentesting-tool/</guid><description>&lt;p&gt;&lt;a href="https://hackpuntes.com/images/fridagate-android-pentesting-tool/fridagate-banner.webp"&gt;&lt;img src="https://hackpuntes.com/images/fridagate-android-pentesting-tool/fridagate-banner.webp" alt="Fridagate - Android Tool to Manage Frida and Intercept Traffic with Burp Suite" loading="eager" decoding="async" /&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Fridagate&lt;/strong&gt; is an open source Android application designed for &lt;strong&gt;mobile application pentesters&lt;/strong&gt;. It allows you to manage &lt;strong&gt;frida-server&lt;/strong&gt;, intercept HTTPS traffic with &lt;strong&gt;Burp Suite&lt;/strong&gt;, and inject bypass scripts directly from the device — without having to run commands manually at the start of every audit session.&lt;/p&gt;
&lt;p&gt;The project was born out of a real need: during an Android app audit the usual workflow involves connecting via ADB, pushing frida-server, setting permissions, starting it, configuring the system proxy, adding iptables rules&amp;hellip; Fridagate automates all of that from a clean interface on the phone itself.&lt;/p&gt;</description></item><item><title>PortSwigger Labs - Exploiting LLM APIs with Excessive Agency</title><link>https://hackpuntes.com/posts/portswigger/web-security/llm-attacks/lab-exploiting-llm-apis-with-excessive-agency/</link><pubDate>Mon, 09 Mar 2026 00:00:00 +0000</pubDate><guid>https://hackpuntes.com/posts/portswigger/web-security/llm-attacks/lab-exploiting-llm-apis-with-excessive-agency/</guid><description>&lt;p&gt;&lt;a href="https://hackpuntes.com/images/portswigger/web-security/llm-attacks/lab-exploiting-llm-apis-with-excessive-agency/lab-exploiting-llm-apis-with-excessive-agency-banner.webp"&gt;&lt;img src="https://hackpuntes.com/images/portswigger/web-security/llm-attacks/lab-exploiting-llm-apis-with-excessive-agency/lab-exploiting-llm-apis-with-excessive-agency-banner.webp" alt="PortSwigger Labs - Exploiting LLM APIs with Excessive Agency" loading="eager" decoding="async" /&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;You&amp;rsquo;re auditing a web application that uses a &lt;strong&gt;Large Language Model (LLM)&lt;/strong&gt; as a customer support assistant. On the surface it looks harmless — user asks, model answers. But underneath that chat interface something far more dangerous is hiding: &lt;strong&gt;the LLM has direct access&lt;/strong&gt; to a debug API that runs &lt;strong&gt;arbitrary SQL commands&lt;/strong&gt; against the production database.&lt;/p&gt;
&lt;p&gt;That&amp;rsquo;s exactly the scenario behind the &lt;strong&gt;&amp;ldquo;Exploiting LLM APIs with Excessive Agency&amp;rdquo;&lt;/strong&gt; lab from PortSwigger Web Security Academy.&lt;/p&gt;</description></item></channel></rss>