<?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 Digant Prajapati on Medium]]></title>
        <description><![CDATA[Stories by Digant Prajapati on Medium]]></description>
        <link>https://medium.com/@digant_15?source=rss-edeacfcafc2a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Digant Prajapati on Medium</title>
            <link>https://medium.com/@digant_15?source=rss-edeacfcafc2a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 20:46:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@digant_15/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[From File Upload to Shell: A Deep Dive into RCE Exploits]]></title>
            <link>https://medium.com/@digant_15/from-file-upload-to-full-shell-a-deep-dive-into-rce-exploits-9eee5af22242?source=rss-edeacfcafc2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9eee5af22242</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[rce]]></category>
            <dc:creator><![CDATA[Digant Prajapati]]></dc:creator>
            <pubDate>Sat, 26 Jul 2025 12:56:35 GMT</pubDate>
            <atom:updated>2025-07-26T12:58:17.238Z</atom:updated>
            <content:encoded><![CDATA[<h3>🧠Introduction</h3><p>File upload features are everywhere — profile pictures, documents, banners, resumes. But what if I told you that one poorly secured upload form can let an attacker gain <strong>full control of your server</strong>?</p><p>In this post, I’ll walk you through how I exploited a vulnerable file upload mechanism, bypassed content restrictions, gained web shell access, and eventually landed a <strong>reverse shell on the server</strong>. If you’re a penetration tester, bug bounty hunter, or developer, this is a real-world scenario you can’t afford to ignore.</p><p><strong>How I found the vulnerability? 👾<br></strong>Here is step-by-step breakdown of RCE via file upload:</p><ol><li>Firstly, I analyze the hosting server and programming language using wappalyzer.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*etla1QGBbrI-_i5tyzxtJg.png" /></figure><p>2. Secondly, there is an image upload functionality in the website and only .jpg, .jpeg, .png extensions are allowed to upload.<br>3. I initially tried by upload a .txt file without changing <strong>Content-Type: image/jpeg</strong> and I got success as I am able to upload .txt file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zsy52prWFX4TvTm8On_VFQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*mELKYjldUGsFm1OtcOKnsA.png" /></figure><p>After confirming file execution, I replaced the text with PHP web shell (<a href="https://github.com/mIcHyAmRaNe/wso-webshell/blob/master/wso.php">https://github.com/mIcHyAmRaNe/wso-webshell/blob/master/wso.php</a>) but I did not get success as <strong>Content-Type: image/jpeg</strong> is same as previous one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/165/1*aPjL63LxVVipsK0s7YLRxQ.gif" /></figure><p>4. So I changed the <strong>Content-Type: application/x-httpd-php</strong> and the upload the web shell file and upload succeeded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*r69zGFcrOykkMrLzxY3nbw.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*txtRDYFfT4mou_cxGX7llQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AEfH3jkRE4GmNzLV6MBTmA.png" /></figure><p>I can access the web shell via this URL https://redacted .com/public/images/cat.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AxUrZs0FhmLdSjmuPQj2IA.png" /></figure><p>5. After this, I obtained a reverse shell with by uploading php file using ngrok.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*2dYoWOu7jZxpSmbOe7eimg.png" /></figure><h3>✅Conclusion</h3><p>This journey — from a simple image upload to full server compromise — demonstrates just how dangerous insecure file upload functionality can be. By bypassing weak file extension checks and manipulating MIME types, I was able to upload a malicious PHP web shell and ultimately gain a <strong>reverse shell</strong> on the server.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9eee5af22242" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Directory Listing Vulnerability]]></title>
            <link>https://medium.com/@digant_15/directory-listing-vulnerability-b2e1583d8a7e?source=rss-edeacfcafc2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2e1583d8a7e</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[directory-listing]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Digant Prajapati]]></dc:creator>
            <pubDate>Tue, 19 Dec 2023 11:31:22 GMT</pubDate>
            <atom:updated>2023-12-19T11:31:22.710Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello folks 🙋‍♂️, Digant Prajapati here. Hope all of you are doing well. In this write-up I am going to tell you about directory listing vulnerability which I have found in September, 2023.</p><p><strong>So What is Directory Listing Vulnerability?</strong></p><p>A directory listing vulnerability means that the webserver lists the contents of its directories, allowing the attacker to easily browse all the files within the affected directories. Often, this causes sensitive files to be exposed to the world, such as internal reports, logs, backups and even the source code of the application.</p><p><strong>How I found this vulnerability?</strong></p><blockquote>All of you guys knew about google dork which are very much helpful to find bug bounty program and such king of vulnerability. So I used this google dork <strong>index of /aadhaar </strong>and I got lots of results. I picked up one domain which was marriage website where they uploaded customer’s Aadhar cards and photos. For me, Aadhar card data is important so I quickly find the contact number of responsible person and told him about scenario, After that he fixed the vulnerability within 2 days and told me that the site owner will pay your reward but till this date 😓.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*mxBeWTjjPmF73rfc64Ba-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*7y05Qg5hdjnOX8h5tt8ARw.png" /></figure><p>Thank you for your time to read my write-up🤗.</p><p><strong>Social Links:</strong></p><p>Instagram: <a href="https://www.instagram.com/_digant_prajapati">https://www.instagram.com/_digant_prajapati</a></p><p>LinkedIn: <a href="https://www.linkedin.com/in/digant-prajapati/">https://www.linkedin.com/in/digant-prajapati/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2e1583d8a7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A story of Microsoft Hall of Fame]]></title>
            <link>https://medium.com/@digant_15/a-story-of-microsoft-hall-of-fame-d1bd3bde89b?source=rss-edeacfcafc2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1bd3bde89b</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[hall-of-fame]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Digant Prajapati]]></dc:creator>
            <pubDate>Sun, 30 Jul 2023 05:30:57 GMT</pubDate>
            <atom:updated>2023-07-30T05:35:36.232Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome Bounty Hunters, This writeup is all about how I got my first Hall of Fame in Microsoft Online Service.</p><p>PS: I love cats😻 very much So, I invited them to contribute.🤗</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*a9fGs9wuPJZFmtBABZAQeg.gif" /></figure><p>So I was searching about vulnerability in Microsoft in scope domains but bad luck, I did not find any valid bug then I search *.microsoft.com and I got one domain which is not in scope but I knew that Microsoft gave HOF for other domains which is belonged to them.</p><p>The domain I got from the dork is https://appsource.microsoft.com/ and there is a search bar so I started with my favourite bug XSS. I tried lots of payloads but I got nothing then I thought let’s check which HTTP request I get if I inspect my search.</p><p>After this, I entered the payload and checked console and I got a GET request but with 400 bad request, surprisingly when I close the inspect XSS got executed and I felt like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*55bwGhIkgVFto7cCECCWQg.gif" /></figure><p>I immediately reported to the Microsoft team and I got the reply that “<em>We confirmed the behaviour you reported. We’ll continue our investigation and determine how to address this issue.</em>”</p><p><strong>Timeline of My Report:</strong></p><p><strong>26 Feb,2023: Report the issue</strong></p><p><strong>27 Feb,2023 : Status changed from New to Review/Repo</strong></p><p><strong>28 Feb,2023 : Review/Repo to Develop</strong></p><p><strong>26 April,2023 : Develop to Complete</strong></p><p><strong>30 April,2023 : Got Hall of Fame</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*URe0IcxHPSro9jgSm840MQ.png" /><figcaption><a href="https://msrc.microsoft.com/update-guide/acknowledgement/online">https://msrc.microsoft.com/update-guide/acknowledgement/online</a></figcaption></figure><p>Thank you folks for reading my writeup. Have a great day and Bye until the next writeup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*lq1GMutrGEeg8pYnIGwd6w.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1bd3bde89b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My First Valid Bug “Bypass the Admin Panel”]]></title>
            <link>https://medium.com/@digant_15/my-first-valid-bug-bypass-the-admin-panel-e859e72a1b7d?source=rss-edeacfcafc2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e859e72a1b7d</guid>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[leaning]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hackerone]]></category>
            <dc:creator><![CDATA[Digant Prajapati]]></dc:creator>
            <pubDate>Fri, 23 Sep 2022 12:14:37 GMT</pubDate>
            <atom:updated>2022-09-26T10:08:39.124Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey everyone, I am Digant Prajapati. Cyber Security Enthusiast and currently focusing on bug bounty💸.</p><p>This is my first write-up on the first valid bug that I have found which is “Bypass the admin panel” in just 5 minutes 😎. Without wasting any more time, let’s start !!</p><p>PS: I love cats😻 very much So, I invited them for contribution.🤗</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*fcwLWixk10G27dEqiHOM-Q.gif" /></figure><p>I love to check education sites and specially universities sites because they have some juicy information about internal information and sometimes they have all the record of professors and students including their private email-id, contact number, department and others.</p><p>During pandemic time, I was searching about Cyber Security and in that i was so curious to know that how hackers hack the system and earn money with that. So, I reached to one video named “ A Day with a Hacker”. After that I saw the video and my mind was surprised.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*I3SQqknR5DYW4PEFXUu3dQ.gif" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fi0ZYogXY49E&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Di0ZYogXY49E&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2Fi0ZYogXY49E%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cb135cb63b1342e2f649c2a748f0b975/href">https://medium.com/media/cb135cb63b1342e2f649c2a748f0b975/href</a></iframe><p>I searched all things about cyber security and I came up with new term “Bug Bounty” and gathered all resources which will helpful to me to do bug hunting.</p><p>One day I was searching about education site with google dork portal.target.com. I will call target “redacted.com” due to privacy concerns and everyone is naming that so…🙄👀</p><p>I quickly open that domain and it redirects me to the login panel.<br>https://portal.redacted.com/example/(filename*).jsp</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ei76xiOF9Ba75LNAPvHbkA.jpeg" /></figure><p>So, first I searched for default credentials but it didn’t work. After that I tried SQL Payload but didn’t work. After getting tired I searched about innovative process — Recon. I used this google dork site:”portal.target.com” -www . In just few seconds I got results of some URLs.</p><p>I opened all the URLs in New Tab but it redirects me to login page. I was confused about that why every time i redirect to login page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*Yr4SB5VHR7NpTXSVRlxLxA.gif" /></figure><p>One thing I noticed here, all the URLs are authenticated so it redirects me directly to the login page. Without wasting time I copied all authenticated URLs into my notepad.</p><p>Eg. — <a href="https://portal.redacted.com/example//(secret*)ServAuthorization.jsp">https://portal.redacted.com/example/(secret*)ServAuthorization.jsp</a> and <a href="https://portal.redacted.com/example/(secret*)PersonList.jsp">https://portal.redacted.com/example/(secret*)PersonList.jsp</a></p><p>Now I search domain with no redirect extention and enter the domain name like this :- “https://portal.redacted.com&quot; and this time it does not redirect so it means I bypass the admin panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9BZD_XpmmFbTIy-ezjZMuA.jpeg" /></figure><p>Now I able to access all the information like Name, E-mail ID, Number and other informations. I am not only access these informations but also I was able to add myself as s student of that university. After knowing that I was like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*WfHaIcgHxYWb2koDssPPEg.gif" /></figure><p>I quickly made a Proof of Concept (POC) video and reported to security team of that university. They took more than 2 months to saw my mail and after 2 months suddenly at one night I got mail from security team and they appreciate my report and decided to give me $50 as a bounty and that time I was overwhelmed with joy just because I received my first bounty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*zj-GtmFBBbM4Hkppc_pzxw.gif" /></figure><p>Credit: <a href="https://medium.com/@ratnadip1998">https://medium.com/@ratnadip1998</a></p><p>I hope this will helpful for you :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e859e72a1b7d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>