<?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 Rafi Ahamed (Leonidas D. Ace) on Medium]]></title>
        <description><![CDATA[Stories by Rafi Ahamed (Leonidas D. Ace) on Medium]]></description>
        <link>https://medium.com/@rafi-ahamed?source=rss-18374022e90------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ApKwr-CMeaPrvOU0</url>
            <title>Stories by Rafi Ahamed (Leonidas D. Ace) on Medium</title>
            <link>https://medium.com/@rafi-ahamed?source=rss-18374022e90------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:38:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rafi-ahamed/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 CSRF chaining with IDOR]]></title>
            <link>https://infosecwriteups.com/exploiting-csrf-chaining-with-idor-7617371ce6e3?source=rss-18374022e90------2</link>
            <guid isPermaLink="false">https://medium.com/p/7617371ce6e3</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Rafi Ahamed (Leonidas D. Ace)]]></dc:creator>
            <pubDate>Sat, 30 Jan 2021 14:26:38 GMT</pubDate>
            <atom:updated>2023-02-06T07:35:49.729Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Hola fellow researchers,</strong></p><p>Myself, <strong>Rafi Ahamed</strong>. I am a Cyber Security Researcher from Bangladesh. I am a currently doing my BBA from University of Dhaka. But I do love nerdy stuffs. Let’s not waste any time &amp; get down to our topic.</p><h3>What is CSRF?</h3><blockquote><strong>Cross-site request forgery</strong>, also known as <strong>one-click attack</strong> or <strong>session riding</strong> and abbreviated as <strong>CSRF</strong> or <strong>XSRF</strong>, is a type of malicious exploit of a website where unauthorized commands are submitted from a user that the web application trusts.</blockquote><h3>What is IDOR?</h3><blockquote><em>Insecure direct object references (IDOR) are a type of access control vulnerability that arises when an application uses user-supplied input to access objects directly.</em></blockquote><p>I was testing a <strong>NDA (<em>Non-disclosure Agreement</em>) </strong>program and I noticed that the Web Application had an option to <strong>delete the user’s account.</strong></p><p>I intercepted the request using Burp to test for IDOR as I love finding IDORs. But I couldn’t find any numeric ID or anything identical to that. But there was a <strong>User ID parameter</strong> which contained the <strong>User Name</strong> of the user. I changed the User ID with my 2nd account’s User Name, but it didn’t work. Then I noticed that there wasn’t any<strong> CSRF token</strong>. So, I generated a CSRF PoC using Burp and opened the HTML document using my other account. But it didn’t work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MNPbwghaFDoH5BZknlZ-UA.png" /><figcaption>The CSRF document</figcaption></figure><p>Then I remembered that there was that User ID Parameter. I changed the User ID with my 2nd account’s User Name again. I opened the document with my 2nd account and my account was deleted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qllhuwM_ERwgcjxoCc6GFA.png" /><figcaption>The exploit</figcaption></figure><p>I quickly reported the bug and the company fixed the bug within 24hours.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*kY3HViMbLPrlpeVGbrLgiw.gif" /><figcaption>The Developer</figcaption></figure><p>Hope you guys enjoyed this one. PM me at <a href="https://www.facebook.com/rafiahamed.rupak.3"><strong>Facebook</strong></a><a href="https://www.linkedin.com/in/rafi-ahamed"><strong>, LinkedIn</strong></a> or <a href="https://twitter.com/L3onid1s"><strong>Twitter</strong></a> anytime if you have any questions.</p><p><strong><em>#Eat_sleep_hack_repeat<br>#Hack’em all</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7617371ce6e3" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/exploiting-csrf-chaining-with-idor-7617371ce6e3">Exploiting CSRF chaining with IDOR</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[API based IDOR to leaking Private IP address of 6000 businesses]]></title>
            <link>https://infosecwriteups.com/api-based-idor-to-leaking-private-ip-address-of-6000-businesses-6bc085ac6a6f?source=rss-18374022e90------2</link>
            <guid isPermaLink="false">https://medium.com/p/6bc085ac6a6f</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[red-teaming]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Rafi Ahamed (Leonidas D. Ace)]]></dc:creator>
            <pubDate>Fri, 01 Jan 2021 09:29:14 GMT</pubDate>
            <atom:updated>2023-01-15T03:03:16.687Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello fellow researchers,</p><p>Myself, <strong>Rafi Ahamed</strong>. I am a Cyber Security Researcher from Bangladesh. I love to break security. Anyway, without further ado let’s get to today’s topic.</p><p>Before I start, I wanna thank <a href="https://twitter.com/InsiderPhD"><strong>Katie Paxton</strong></a><strong> </strong>for her videos. I learned a lot about IDORs from her videos. I actually earned my whole year’s bounty target just form IDORs that I learned from her videos.</p><h3>What is IDOR?</h3><blockquote><em>Insecure direct object references (IDOR) are a type of access control vulnerability that arises when an application uses user-supplied input to access objects directly.</em></blockquote><h3>What is an API?</h3><blockquote>API is the acronym for Application Programming Interface, which is a software intermediary that allows two applications to talk to each other. Each time you use an app like Facebook, send an instant message, or check the weather on your phone, you’re using an API.</blockquote><p>So, I was testing a <strong>NDA (<em>Non-disclosure Agreement</em>) </strong>program and I noticed that the Web Application had an option to view the access logs of the users. Seems so simple right?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*TyVsblmf9cyd1C90g7z9EA.gif" /></figure><p>I have a bad habit of turning on <strong>Interception </strong>and see every request that the browser sends to the server while browsing an web application. When I visited the same page again, I noticed that <strong>my</strong> <strong>access-logs</strong> were not being displayed even though other contents of the page already has load already. Then I noticed that the my Interception was on and there was an API request intercepted which was trying to fetch the access-logs of the users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0DmfdzA2Jt3FOcGDknzsog.png" /><figcaption>The intercepted request</figcaption></figure><p>If you take a closer at the POST data, you will see that it has a <strong>UserID </strong>in it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6AXAGVbaCkjCRyt3o2WpoQ.png" /><figcaption>User ID request</figcaption></figure><p>Then I sent the request to Intruder and <strong>Brute-forced</strong> the <strong>UserID </strong>and I got the <strong><em>access-logs of 6000 businesses</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*RbvKegsKSk80xDOnmR-plQ.gif" /><figcaption>The Dev’s reaction</figcaption></figure><p>I quickly reported the bug and the company fixed the bug within 48hours. I got a nice <strong>$4digit bounty </strong>for the bug.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*ViQSvdHLzu-PWhRBNsFZhg.gif" /></figure><p>Hope you guys enjoyed this one . PM me at <a href="https://www.facebook.com/rafiahamed.rupak.3"><strong>Facebook</strong></a><a href="https://www.linkedin.com/in/rafi-ahamed"><strong>, LinkedIn</strong></a> or <a href="https://twitter.com/L3onid1s"><strong>Twitter</strong></a> anytime if you have any questions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6bc085ac6a6f" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/api-based-idor-to-leaking-private-ip-address-of-6000-businesses-6bc085ac6a6f">API based IDOR to leaking Private IP address of 6000 businesses</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[Exploiting API with AuthToken]]></title>
            <link>https://infosecwriteups.com/exploiting-api-with-authtoken-3bea7b1fb6a9?source=rss-18374022e90------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bea7b1fb6a9</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Rafi Ahamed (Leonidas D. Ace)]]></dc:creator>
            <pubDate>Sun, 15 Nov 2020 18:16:29 GMT</pubDate>
            <atom:updated>2023-01-15T03:04:04.037Z</atom:updated>
            <content:encoded><![CDATA[<p>Hallo fellow researchers,</p><p>Myself, <strong>Rafi Ahamed</strong>. I am a Cyber Security Researcher from Bangladesh. I love to do things differently. Anyway, without further ado let’s get to today’s topic.</p><p><strong>Today’s topic is all about exploitation of API endpoints using AuthToken. Not about finding one.</strong></p><p>Many of us finds <strong>AuthToken </strong>in our recon process but due not being able to show any impact this critical finding often gets rejected. I got rejected a few times myself.</p><h3>What is an API?</h3><blockquote>API is the acronym for Application Programming Interface, which is a software intermediary that allows two applications to talk to each other. Each time you use an app like Facebook, send an instant message, or check the weather on your phone, you’re using an API.</blockquote><h3>Assumptions</h3><p>Let’s assume you find an AuthToken or API token of any user in your recon process. Simply reporting that will give you a <strong><em>Not Applicable</em> </strong>in most cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*AK4sSmMcCHLBAl_imxiGSg.jpeg" /></figure><h3>Exploiting API via AuthToken</h3><p>Recently I was testing a private program in <strong>Bugcrowd </strong>and in my recon process I found a <strong>AuthToken </strong>which you always get your hands on. But the tough part was exploiting it. First of all, the program didn’t provided any <strong><em>credentials </em></strong>for testing and there wasn’t any way to <strong><em>Sign Up</em></strong> either. So, I had no idea how their infrastructure actually works.</p><p>In my recon the token that I found was an <strong>AuthToken </strong>(written in the code) which could be an alternative to <strong>Authentication Bearer</strong> token that an API use for Authentication. Now, I got a hint that the token was more like an API token. But I had no idea how their API infrastructure works as I had no access to any user account or anything. So, I gave up on it.</p><p>The next when I was testing another web application, I saw an API call when updating the user info. I thought may be I can use this API call to exploit yesterday’s one. So, I send that request to <strong>Repeater </strong>using <strong>Burp</strong>. Changed the Host &amp; request endpoint with one that I found in my recon process. This gave me a response like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fSca_4iMRVpJpx92w-KhBA.png" /></figure><p>I got <strong>403 forbidden</strong>. But this gave us some info that what Headers are missing. Then I added the token that I got using the <strong>Header Name</strong> that the response showed. This gave me a response like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sPL7IMzk2Tpx3cPAzfjtRA.png" /></figure><p><strong>500 Internal Server Error!!</strong></p><p>That means I got a connection to the API. As you can see, the request is a POST request and there are no POST data in the request. That’s why the application was showing <strong>500 Internal Server Error. </strong>Then I recon a little bit more &amp; got some POST data that could use to test the endpoints. I sent the request again adding the POST data and I was shocked to see the response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4KeIEyHrBMBJ_DVSuPOKpw.png" /></figure><p>I got access to 100 client’s data. That moment I was like Boom🤯</p><blockquote><em>I quickly reported the bug to </em><strong><em>Bugcrowd </em></strong><em>&amp; got triaged as </em><strong><em>P1 </em></strong><em>along with a nice 4digit bounty.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*wYU2hda06wUEx7U4.gif" /></figure><p><strong>Reported:</strong> November 10th.</p><p><strong>Not Applicable</strong>: November 13th.</p><p><strong>Triaged: </strong>November 13th.</p><p><strong>Resolved:</strong> November 14th.</p><p>Hope you guys enjoyed this one . PM me at <a href="https://www.facebook.com/rafiahamed.rupak.3"><strong>Facebook</strong></a><strong> </strong>or <a href="https://www.linkedin.com/in/rafi-ahamed"><strong>LinkedIn</strong></a> anytime if you have any questions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bea7b1fb6a9" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/exploiting-api-with-authtoken-3bea7b1fb6a9">Exploiting API with AuthToken</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[Forcing for a bounty$$]]></title>
            <link>https://infosecwriteups.com/forcing-for-a-bounty-b637c468d7bd?source=rss-18374022e90------2</link>
            <guid isPermaLink="false">https://medium.com/p/b637c468d7bd</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Rafi Ahamed (Leonidas D. Ace)]]></dc:creator>
            <pubDate>Tue, 03 Nov 2020 06:24:10 GMT</pubDate>
            <atom:updated>2023-02-07T19:07:21.544Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Hola fellow researchers,</strong></p><p>Myself, <strong>Rafi Ahamed</strong>. I am a Cyber Security Researcher from Bangladesh. I am a currently doing my BBA from University of Dhaka. But I do love nerdy stuffs. Let’s not waste any time &amp; get down to our topic.</p><p>First of all, don’t get confused with the title. By forcing I actually meant Forced Browsing.</p><h3><strong>What is Forced Browsing?</strong></h3><p><strong>Forced browsing</strong> is an attack where the attacker aim to enumerate and access resources that are not referenced by the application, but are still accessible.</p><h3><strong>How did I find the bug?</strong></h3><p>Recently I was testing a private site in <strong>HackerOne</strong> and the site was selling educational videos. So, they allow an user a preview of the video without payment. But the preview was for only 15 seconds or less. Well, who cares about that right?</p><p><strong>Actually, that’s where the $$$ lies.</strong></p><p>As usual I turned on <strong>Interception</strong> using <strong>Burp Suite </strong>&amp; noticed endpoints like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SUkDH2d2GeWZFVO5xHDVxg.png" /></figure><p>But the endpoint was on another subdomain. By looking at the subdomain name it was understood that the organization uses this subdomain to store all it’s videos &amp; other stuffs. So, I quickly visited the endpoint to see if I can find anything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OxOrkMv7Ls9gkevxBtxlLg.png" /><figcaption><strong>The endpoint</strong></figcaption></figure><p>But I got nothing. Got the same preview with the same duration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*rl5TCmTCV6cCXxABbk1E5w.gif" /></figure><p>Then I noticed that the endpoint has something like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lgnJ0vYPWUy_A5nEXxL5og.png" /></figure><p>I thought why not remove it &amp; see what happens. I was surprised that I got the full video. Now I can watch any paid video without payment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*p4sTTp-rJwRWR3Qfv2NdRw.gif" /></figure><blockquote>I quickly reported the bug to HackerOne &amp; got a nice<strong> $500</strong> bounty.</blockquote><p><strong>Reported:</strong> Sep 27th.</p><p><strong>Triaged:</strong> Sep 28th.</p><p><strong>Resolved:</strong> Oct 18th.</p><p>Hope you guys enjoyed this one . PM me at <a href="https://www.facebook.com/rafiahamed.rupak.3"><strong>Facebook</strong></a><strong> </strong>or <a href="https://www.linkedin.com/in/rafi-ahamed"><strong>LinkedIn</strong></a> anytime if you have any questions .</p><p><strong><em>#Eat_sleep_hack_repeat<br>#Hack’em all</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b637c468d7bd" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/forcing-for-a-bounty-b637c468d7bd">Forcing for a bounty$$</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>