<?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 Rokkamx01 on Medium]]></title>
        <description><![CDATA[Stories by Rokkamx01 on Medium]]></description>
        <link>https://medium.com/@rokkamvamshi18?source=rss-2f0f67e66d2a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Fn-sbuJ88dHS8wGgA3tTZA.jpeg</url>
            <title>Stories by Rokkamx01 on Medium</title>
            <link>https://medium.com/@rokkamvamshi18?source=rss-2f0f67e66d2a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:36:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rokkamvamshi18/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[Using Shodan to find open Jenkins instances and exploit them.]]></title>
            <link>https://rokkamvamshi18.medium.com/using-shodan-to-find-open-jenkins-instances-and-exploit-them-1e7491ca27e3?source=rss-2f0f67e66d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e7491ca27e3</guid>
            <category><![CDATA[bug-hunting]]></category>
            <dc:creator><![CDATA[Rokkamx01]]></dc:creator>
            <pubDate>Wed, 30 Apr 2025 17:04:45 GMT</pubDate>
            <atom:updated>2025-04-30T17:09:51.062Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Hackers!</p><p>I hope you all are doing well. I am Rokkam Vamshi, a Security Researcher. In this blog, we will be talking about how to use Shodan to find and gain unauthorized access to Jenkins instances.</p><p>To keep it crisp and clear, this blog covers the following topics:</p><ol><li>Introduction to Shodan.</li><li>How to use Shodan?</li><li>How can one use Shodan to find the Jenkin instances?</li><li>How can we leverage this for a higher impact?</li></ol><blockquote><em>Note: This small write-up has been sitting in my draft for a long time. Just publishing this write-up.</em></blockquote><h4>1. Introduction to Shodan</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*obKqOftNr2GJCaChXOfDuw.png" /><figcaption>Shodan Dashboard</figcaption></figure><p>Shodan is a search engine for internet-connected gadgets. It differs from search engines such as Google and Bing in that Shodan finds various things, such as popular versions of Microsoft IIS, control servers for malware, how many hosts are affected by new CVEs, which countries are becoming more connected, SSL certificates of websites, and so on.</p><p>In simple words, Shodan is a search engine for hackers. You know Google, Bing, Yahoo, and DuckDuckGo all crawl front-end web pages. Shodan crawls the IPs of devices, such as printers, security cameras, and routers, that are connected to the internet. The main source of data retrieval on Shodan is banner capture.</p><p>Key features of Shodan:</p><ol><li><strong>Content Discovery</strong>: Shodan’s key feature is device discovery, allowing users to find numerous internet-connected devices. Users can find devices such as industrial control systems (ICS) and webcams, as well as home automation systems and servers, by inputting basic search queries.</li><li><strong>Filtering and Search Capabilities</strong>: Shodan provides strong filtering capabilities, allowing users to focus their searches based on parameters such as geographic location, device kind, port number, and operating system. This level of detail facilitates the identification of specific devices or vulnerabilities.</li><li><strong>API Access</strong>: Shodan offers an API that enables developers to integrate its search capabilities into their own apps. This can be especially beneficial for automated security evaluations and ongoing monitoring.</li></ol><h4>2. How to use Shodan?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vFRQ-Uz9tnZqzZPPBSDJEA.png" /><figcaption>Shodan filters</figcaption></figure><p>Shodan filters, or dorks, are used to find the desired results. You can create a Shodan account <a href="https://account.shodan.io/register">here</a>.</p><p>Shodan offers so many different types of dorks to tune your results and find useful results. You can find a list of <a href="https://www.shodan.io/search/filters">filters</a> and examples <a href="https://www.shodan.io/search/examples">here</a>.</p><h4>3. How can we use Shodan to find the Jenkin instances?</h4><p>We can find the open Jenkins instances by using the following filters:</p><pre>http.title:&quot;Dashboard [Jenkins]&quot;<br><br>http.title:&quot;Dashboard [Jenkins]&quot; port:8080<br><br>http.title:&quot;Dashboard [Jenkins]&quot; ssl:true<br><br>http.title:&quot;Dashboard [Jenkins]&quot; &quot;Authorization: Basic&quot; -has_user:&quot;true&quot;<br><br>http.html:&quot;Jenkins ver. X.X&quot;<br><br>product:&quot;Jenkins&quot; version:X.X<br><br>http.title:&quot;Dashboard [Jenkins]&quot; &quot;401 Unauthorized&quot;<br><br>http.html:&quot;Manage Jenkins&quot; &quot;Manage Nodes&quot;</pre><p>In the below screenshot, you can see we used the filter:</p><pre>http.title:&quot;Dashboard [Jenkins]&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OjCY8x3A8bF98WTm1cFHfw.png" /></figure><p>As you can see, we got more than 32K results showing up. We can tune the results to our target even! as we see below:</p><pre>http.title:&quot;Dashboard [Jenkins]&quot; ssl:*.nl</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HrfdHStwuUGaTfdmyUuDXQ.jpeg" /><figcaption>Search results have decreased!</figcaption></figure><p>Try accessing them each in a new tab. And you can see the below screenshot for example</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vKfbfCVhAnhN85mcq_QNtQ.jpeg" /><figcaption>Access Jenkins dashboard without Authentication</figcaption></figure><h4>4. How can we leverage this for a higher impact?</h4><p>When you find an Open Jenkins instance,. Try to access these sensitive endpoints.</p><p><strong>/configureSecurity-</strong> for global configuration setting.</p><p><strong>/configure-configure</strong> mode</p><p><strong>/Script:</strong> To execute the script/commands.</p><p>As you can see, we have access to script console to execute commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zIaJ6KkKRjACYqotApAZ8Q.jpeg" /><figcaption>script enabled</figcaption></figure><p>Now the /script endpoint is enabled, so try to run the commands and see whether we can access sensitive files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Dy1tctZEmCYaE1ATwZCUg.jpeg" /><figcaption>command execution in script endpoint</figcaption></figure><p>And that’s all I have for this blog. Yeah, I have got some proof-of-concepts to show you that this method did works!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*mc80qu7WNvZMhkuS0VmLIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*_0UUfTr5WrNQCLEX5kvlPw.png" /><figcaption>H1 resolved reports of mine</figcaption></figure><p>If you find value in this article, you can follow me for more content like this :)</p><p><a href="https://www.linkedin.com/in/rokkam-vamshi/">LinkedIn</a>, <a href="https://twitter.com/rokkam_vamshi">Twitter</a>, and <a href="https://www.instagram.com/rokkam_vamsi_/">Instagram</a></p><p>Thank you for reading.</p><p>— Rokkam Vamshi</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e7491ca27e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploiting Django Debug Mode for Unrestricted Access to the Internal Dashboard!]]></title>
            <link>https://rokkamvamshi18.medium.com/exploiting-django-debug-mode-for-unrestricted-access-to-the-internal-dashboard-b725783714ae?source=rss-2f0f67e66d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b725783714ae</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Rokkamx01]]></dc:creator>
            <pubDate>Tue, 12 Dec 2023 20:22:10 GMT</pubDate>
            <atom:updated>2024-06-09T15:38:27.221Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Django Debug Mode Enabled Leads to Unauthorized Access to Company’s Internal Dashboard</strong></h4><p>Hello Hackers!</p><p>I hope you all are doing well. Myself Rokkam Vamshi, a Security Researcher. In this Blog, I will share one of my findings about How I Leveraged Django Debug Mode Enabled to Gain unauthorized access to a Cloud Cost Scheduler Dashboard.</p><p>Let us say the target is the <em>redacted.com</em> for time being. The technique is pretty simple, yet rewarding and effective!</p><p>As this is my first blog, there might be some grammatical mistakes. This blog covers the following Topics:</p><ol><li>What Is Django?</li><li>How can one determine whether a subdomain is running on the Django framework?</li><li>What is Wrong with ‘Debug = True’ in the Django Framework?</li><li>How can one determine whether the debug mode is enabled or not?</li><li>How I Leveraged Debug Mode Enabled to Gain Unauthorized Access to Cloud Cost Scheduler Dashboard?</li></ol><p>So, Let&#39;s get started.</p><h4><strong>1. What is Django?</strong></h4><p>Django is a free and open-source web framework, written in Python. It is used to build and maintain websites and web applications. Django is designed to be secure. It includes several features that help to protect web applications from attacks, such as cross-site scripting (XSS) protection, cross-site request forgery (CSRF) protection, and SQL injection protection.</p><h4><strong>2. </strong>How can one determine whether a subdomain is Built on the Django framework?</h4><p>It is pretty simple and easy to find whether a Domain/Subdomain is Built with Django Framework. You can use the Extension called <a href="https://chromewebstore.google.com/detail/wappalyzer-technology-pro/gppongmhjkpfnbhagpmjfkannfbllamg?pli=1">Wappalyzer</a>. Using this Extension we can easily find whether that particular domain/subdomain is built on the Django Framework. You can use other extensions like <a href="https://chromewebstore.google.com/detail/builtwith-technology-prof/dapjbgnjinbpoindlpdmhochffioedbn">BuiltWith</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*myyRyhZS4ih4ubPIM7OwyA.png" /><figcaption>Django Web Framework</figcaption></figure><h4><strong>3. What is Wrong with ‘Debug = True’ in the Django Framework?</strong></h4><p>As we have discussed earlier, Django Web Framework is used to Build and Maintain Websites. Setting ‘Debug = True’ in the Django framework is common during development for debugging purposes. However, deploying a Django application with ‘Debug = True’ in a production environment is risky. It exposes sensitive information and could potentially allow attackers to gather details about your application’s structure, such as database schema or internal code. This can be a security risk as attackers might exploit these vulnerabilities to compromise the system. Therefore, it’s crucial to set ‘Debug = False’ in production to enhance security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pPXhINxrxKugsfZTPmdsOA.jpeg" /><figcaption>Django Debug Mode is set to true</figcaption></figure><h4><strong>4. How can one determine whether the debug mode is enabled or not?</strong></h4><p>Once you find a Subdomain built on the Django Web Framework, It is pretty simple to find out whether the debug mode is enabled or not by just appending any Random text to the Root of the Subdomain like ‘https://redacted.com/RANDOM_TEXT’. If the Debug Mode is set to True then you will see a Non-standard 404 Error Page. But if Debug Mode is False then you will see a Standard 404 Error Page. Observe the Images below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8LzMNKhGpdmCoDwYWJxiZQ.jpeg" /><figcaption>When Debug=True, Showing a Non-Standard 404 Not Found Page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y2jcje7525Q-KA2Bpjf0yQ.png" /><figcaption>When Debug=False, Showing a Standard 404 Not Found Page</figcaption></figure><h4><strong>5. </strong>How I Leveraged Debug Mode Enabled to Gain Unauthorized Access to the Cloud Cost Scheduler Dashboard?</h4><p>In this Section, I will Speak about the entire process of how I got to that particular Vulnerable IP Address which belongs to <em>redacted.com</em></p><h4>My Recon Flow:</h4><p>Whenever I decide to Hunt on a target, I Open up my Kali Linux and run my Custom Made script on the target [redacted.com] which automates my Recon process partially. The Typical Flow of the script is as follows:</p><p>It starts by Performing Subdomain Enumeration using different Tools like Subfinder, Assestinder, Amass, and Knockpy. Then it adds up all the results, deduplicates them, and gets the Live Subdomains using the httpx tool. This script continues to perform the remaining Recon Process. But it is out of the scope of this blog which I would cover in another Blog.</p><pre>##This is part of the recon process<br><br>subfinder -d &quot;$target&quot; --silent -o &quot;$HOME/$folder_name/subdomains_subfinder.txt&quot;<br>assetfinder --subs-only &quot;$target&quot; | tee &quot;$HOME/$folder_name/subdomains_assetfinder.txt&quot;<br>amass enum -d &quot;$target&quot; -brute | tee &quot;$HOME/$folder_name/subdomains_amass.txt&quot;<br>crt.sh/crt.sh -d &quot;$target&quot; | sort | uniq |  grep -Eo --color=auto &quot;(^|[^a-zA-Z0-9_.-])([a-zA-Z0-9_-]+\.)?${target}&quot; | tee &quot;$HOME/$folder_name/subdomains_crt-sh.txt&quot;<br>knockpy &quot;$target&quot; | tee &quot;$HOME/bb/$folder_name/subdomains_knockpy.txt&quot;<br>cat &quot;$HOME/$folder_name/subdomains_subfinder.txt&quot; &quot;$HOME/$folder_name/subdomains_assetfinder.txt&quot; &quot;$HOME/$folder_name/subdomains_crt-sh.txt&quot; | sort -u &gt;&gt; &quot;$HOME/$folder_name/all_subdomains.txt&quot;<br>cat &quot;$HOME/$folder_name/all_subdomains.txt&quot; | httpx -sc -cl -silent | tee &quot;$HOME/$folder_name/httpx.txt&quot;<br>echo &quot;Subdomain Enumeration is complete&quot; | notify -silent<br><br>##The Remaining process continues</pre><p>While My Custom script is Running in the Background, I usually do Shodan Search.</p><p>The Shodan Dorks I used for finding the WebApps using Django are as follows:</p><pre>http.component:django ssl:redacted.com<br><br>http.title:&quot;DisallowedHost at /&quot;</pre><p>I usually open each result from the above dorks in a new Tab and manually Hunt on them.</p><p>Likewise, I searched for the <em>HTTP.component:django ssl:redacted.com</em> and got two results. In Which one of them is Django’s Debug Mode Enabled [True].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yVHI3wosMBD7wifkJzkjBw.png" /><figcaption>Debug Mode is Enabled in Cloud Cost Scheduler</figcaption></figure><p>Then I opened the second result in a new tab and found Cloud Cost Scheduler Login Page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zZI36KPR_uhqgQ20Qk6p6w.png" /><figcaption>Cloud Cost Scheduler Login Page</figcaption></figure><p>I found that the Debug Mode is Set to True by appending the Random text to the root URL as <a href="https://redacted.com/random_text"><em>https://redacted.com/random_text</em></a>. The Non-Standard 404 Page Not Found is Disclosing the Internal Endpoints as shown in the below image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Luablrh8vcSfrl_tj9PZlg.jpeg" /><figcaption>Debug Mode Enabled Disclosing Internal End Points</figcaption></figure><p>Now, All I did was simply Check every Endpoint by appending it to the root URL like:</p><pre>https://redacted.com/task/disable<br>https://redacted.com/cloud<br>https://redacted.com/schedule<br>https://redacted.com/admin<br>https://redacted.com/adminlte</pre><p>But Nothing gave any good results. I lost Hope but one endpoint was left unchecked. I thought why not give it a try? I tried to access the URL <a href="https://redacted.com/adminlte"><em>https://redacted.com/adminlte</em></a><em>. </em>To My surprise, I was Redirected to the Cloud Cost Scheduler Dashboard without any Authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0QCHTjGmoUfDpJLtcI55ew.png" /><figcaption>Unauthorized Access to Dashboard</figcaption></figure><p>I was able to see all the information without logging in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0KeVgtFb58_-2XCgngV6IA.png" /><figcaption>Unauthorized Access to all the information</figcaption></figure><p>Then I made a Clear Proof-of-concept Video explaining everything and Reported it to the Security Team Through Hackerone. The Triager asked me to prove that the IP belongs to <em>Redacted.com</em>. Then I provided the required information and the Internal Team triaged the report! Hurray :)</p><p>After a few days, the security team resolved the vulnerability and awarded Swag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p8rVz_WZ7ZoBj7R653IcQg.jpeg" /><figcaption>Awarded Swag</figcaption></figure><p>This is one of my findings. I have reported similar vulnerabilities to other HackerOne Private Programs in which I got Sensitive Information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*xSVlxfPtyEsi7iao89Kp5A.png" /><figcaption>HackerOne Report</figcaption></figure><p>I Hope You have learned something from this Blog. I want to thank my friend for helping me out in writing this Blog <a href="https://medium.com/@boligarlayashwanthsai">Yaswanth sai</a>.</p><p>If you find value in this article, you can follow me for more content like this :)</p><p><a href="https://www.linkedin.com/in/rokkam-vamshi/">LinkedIn </a>| <a href="https://twitter.com/rokkam_vamshi">Twitter</a> | <a href="https://www.instagram.com/rokkam_vamsi_/">Instagram</a></p><p>Thank You for Reading…</p><p>By Rokkam Vamshi</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b725783714ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>