<?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 Harsh Parekh on Medium]]></title>
        <description><![CDATA[Stories by Harsh Parekh on Medium]]></description>
        <link>https://medium.com/@notmarshmllow?source=rss-cfd7068e3087------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*XMwpH8OXyeVkUlHW.jpg</url>
            <title>Stories by Harsh Parekh on Medium</title>
            <link>https://medium.com/@notmarshmllow?source=rss-cfd7068e3087------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 18:52:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@notmarshmllow/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[Exploiting CORS to perform an IDOR Attack leading to PII Information Disclosure]]></title>
            <link>https://notmarshmllow.medium.com/exploiting-cors-to-perform-an-idor-attack-leading-to-pii-information-disclosure-95ef21ecf8ee?source=rss-cfd7068e3087------2</link>
            <guid isPermaLink="false">https://medium.com/p/95ef21ecf8ee</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Harsh Parekh]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 09:12:56 GMT</pubDate>
            <atom:updated>2021-03-01T09:29:09.129Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SME7SZ5lfVCI86uL6fKMag.png" /></figure><p>Every Bug Hunter loves PII Information Disclosure, right? So do I, and recently I came across a very similar vulnerability while hunting on a target. The vulnerability was not difficult to exploit once the vulnerable endpoint was discovered, but what made it difficult was to identify the random components in the request. This might have now cleared a little in your mind, how “<strong>CORS</strong>” helped me in successfully exploiting the vulnerability. Hello Hackers, my name is Harsh, also known as <a href="https://twitter.com/notmarshmllow"><em>notmarshmllow</em></a>. Let’s go a little deep into the process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*PZLPS-m1_iGNudZPyfhewA.gif" /></figure><p>The application was an E-Commerce Platform and as usual, I was looking for Business Logic Vulnerabilities in the application. First few hours were just understanding application’s workflow, manipulating data, sending request to repeater, looking for other vulnerabilities such as XSS, but the application was pretty secure.</p><p>I took a break and went out for some fresh air. On reopening the application, I started testing the <strong>CHECKOUT</strong> functionality. On checkout, the application was asking for user’s delivery address and credit card details as expected. I observed the URL of the checkout page and it was “<em>https://redcorp.com/20183638/checkout/700dd776teu8890abcdpo12ha0</em>”. If I swap this hash with other user’s hash, the items in my cart on my checkout page would change. This indicated lack of authorization but still, the application was neither swapping accounts nor changing the items in the Cart, except only at the time of checkout, this didn’t had enough impact to report. In simple words, it used to load other user’s cart’s items.</p><p>Later, I was going through my Burp Suite’s History and I found a different endpoint “<em>/wallets/checkouts/700dd776teu8890abcdpo12ha0.json” </em>which contained the same hash which is mentioned above. This hash used to store the data of the user’s account. Things started getting interesting now. The endpoint “<em>/wallets/checkouts/</em>” didn’t checked if the user is authorized to access the data or not. On swapping attacker’s hash with victim’s hash, it would load victim’s account’s data in the response. Alright, so now we have something to report. By replacing other user’s hash on “/wallet/checkout/<em>random_hash</em>.json” endpoint, we can steal all details of other users. But, random hashes are difficult to guess and brute-forcing them is waste of time. If somehow, I manage to steal other user’s hash, I can view their name, home address, credit card details and much more. But how ?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*tlMsGazpl0bmElM7HNUDDw.jpeg" /></figure><p>I searched for the hash in Burp Suite using the Search Function to check if it is leaking somewhere and I was correct. Third Party Applications, integrated in the target application for transactions and validating Credit Card Numbers were able to access this hash. CORS was allowing them to access data form the request. It was necessary for the application to share data with third party applications to validate it. But, this can help us in accessing the data too. The CORS was configured to allow any domain to fetch data from the request. And hence, we can also fetch these data.</p><p>An attacker will first exploit CORS to fetch the random hash of the user and replace the hash to access victim’s data. This included Name, Address, Credit Card Information, Payment information and everything related to a user’s account.</p><p>Since, CORS cannot be blocked, the company fixed it by validating and blocking unauthorized access to the endpoint.</p><p>Hope you found this helpful.</p><p>You can follow me on Twitter <a href="https://twitter.com/notmarshmllow">@notmarshmllow</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95ef21ecf8ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOSTING YOUR OWN VPS WITHOUT A VPS]]></title>
            <link>https://notmarshmllow.medium.com/hosting-your-own-vps-without-a-vps-5e2e3a6d411b?source=rss-cfd7068e3087------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e2e3a6d411b</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[termux]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cyber]]></category>
            <category><![CDATA[vps]]></category>
            <dc:creator><![CDATA[Harsh Parekh]]></dc:creator>
            <pubDate>Thu, 08 Oct 2020 14:07:53 GMT</pubDate>
            <atom:updated>2020-10-09T14:15:22.617Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zNzyRyUl8R_3UTAtubX9dw.png" /></figure><p>Every Bug Bounty Hunter wants to maximize his recon, hunt more and report more bugs. Owning a VPS is a great choice, but what if you can&#39;t buy one ? Still want to automate your Hunting Process ? Well, you have come to the perfect spot. Hello Hackers, I am Harsh Parekh , known as notmarshmllow, here to assist you with your automation and Report more bugs. Let&#39;s dive into the process.</p><p>Let me begin with a little story. As of late, my laptop was in a bad condition and so I wasn’t able to Hack, till I purchase a new beast for me. Here, the real deal was how could I be productive instead of wasting my time until my new laptop shows up ? Goofing around isn’t my thing and so, sitting around helplessly was really demotivating. At that point one day, I had a talk with another Hacker friend of mine who suggested me to continue Hacking using a phone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*0pk_PuGRySigXsi06_rsTQ.gif" /></figure><p>Back in the time when I was fledgling, I came across Termux - an Android Terminal Emulator and Linux Environment App. In the wake of conversing to my companion, the idea of automating my entire process with my phone using Termux just flew in my mind and yes, I had the option to do it !</p><p>I immediately installed all my tools that I used for my Reconnaissance Process and wrote a Bash Script to automate the entire bug hunting process.</p><p>This additionally helped me in automating my bug chasing process for huge scope targets for longer time. The script will ceaselessly run in background.</p><h3>Flow :</h3><p>1. Enumerating all Subdomains.<br>2. Discovering live Subdomains.<br>3. Brute-forcing for directories and files in recursive mode and Nmap for Port Scanning<br>4. Use one liners from KingOfBugBounty and other Repositories for finding more Vulnerabilities.<br>5. takeover by <a href="https://medium.com/u/6fcdfde1cd4">m4ll0k</a> to find Subdomain Takeover.<br>6. Finding Endpoints and Secrets in JavaScript files.</p><p>Tip : Create distinctive Scripts for different Vulnerabilities, so that you can keep the scan running in different sessions in Termux, once all the Live Subdomains are identified.</p><p>This is the most basic part, you can automate more according to your requirements.</p><p>I found it difficult to set-up GOLANG Path Variables. Hence, I have used all tools built using Python , developed a custom wordlist and wrote some Bash and Python Scripts of my own. Also, my phone is NOT Rooted.</p><p>That’s all with the process. Wasn’t it really simple? Let the script accomplish it’s work and continue checking the discoveries each one or then again two hour.</p><p>Hope you find this helpful. Follow me on Twitter @notmarshmllow</p><p>HACK CONSTANTLY !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e2e3a6d411b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>