<?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 Jagadeeshan on Medium]]></title>
        <description><![CDATA[Stories by Jagadeeshan on Medium]]></description>
        <link>https://medium.com/@jagadeeshan2004?source=rss-252324b311d1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*LRdSjf4kfvG5MSbV</url>
            <title>Stories by Jagadeeshan on Medium</title>
            <link>https://medium.com/@jagadeeshan2004?source=rss-252324b311d1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:06:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jagadeeshan2004/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[How I found IDOR in a Travel Agency Application]]></title>
            <link>https://jagadeeshan2004.medium.com/how-i-found-idor-in-a-travel-agency-application-9906ac591bde?source=rss-252324b311d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/9906ac591bde</guid>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[idor-vulnerability]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Jagadeeshan]]></dc:creator>
            <pubDate>Sat, 17 Oct 2026 12:05:58 GMT</pubDate>
            <atom:updated>2026-10-17T12:05:58.056Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello guys, I hope you are all doing well. I spent hours and days finding a critical vulnerability: an <strong>Indirect Object Reference (IDOR). </strong>I’m excited to share how I found it and how it can lead to Account Takeover. I hope you will find something useful and enjoy the content.</p><p><strong>Methodologies to find IDOR:</strong></p><p>While testing for IDOR, I look manually and use tools to find the user endpoints. Here is my approach to test IDOR vulnerability:</p><ul><li>Get the HTTP request into Burp after login session</li><li>In Burp Suite, there is an extension called Authorize; this tool helps to find missing access controls</li><li>Once access control is validated with object references like user_id,token_id, invoice_id, we assess IDORs here</li></ul><blockquote>I’ll upload one more blog how to chain IDOR with Full Account Take Over and few evasion techniques by high severities.</blockquote><p><strong>Testing Features:</strong></p><p>While testing this application, I checked every header to change the operations. For example, if user information is validated with the user_id parameter on the client side, by manipulating the parameter for CRUD operations;</p><ul><li><strong>C</strong>reate- Creating a new user id whether it is guessable or not guessable, will try to change the parameter with an encoding format.</li><li><strong>R</strong>ead- Can I able to read other user’s by changing the parameter</li><li><strong>U</strong>pdate- Can I able to modify the user id value with an existing user id</li><li><strong>D</strong>elete- Check user able to delete another user without authorisation.</li></ul><p><strong>Let’s see the attack surface in our target application:</strong></p><p>Once I registered, then send login request to Burp for application validation whether a <strong>header </strong>or <strong>parameter </strong>is validated on the server side. For example <strong>_token</strong> parameter, which is nothing but a CSRF token.</p><blockquote>Short brief on CSRF vulnerability: Cross-Site Request Forgery a web security vulnerability that tricks an authenticated user into performing unauthorized, state-changing actions on a web application without their knowledge.</blockquote><p>For the CSRF vulnerability above, I’ll write a separate blog on how to identify the CSRF token and forge it.</p><p>In this application, I can see the email parameter as well as the user_id parameter. Changing user_id alone is not vulnerable to IDOR; this happens with email manipulation, symmetric key encryption tokens, access control, and low-privileged user-to-high-privileged user roles.</p><p>Here, this application is validating with user_id, but it misses email validation, where I can able to change an existing user’s email; this allows unauthenticated email verification, leading to IDOR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vUbh6BibvpMZfwCFZfSUvw.jpeg" /><figcaption>Authenticated user mail id</figcaption></figure><p>Now the browser blindly trusts an unauthenticated user to change new mail id.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H03mVGnG1r-f-ZcqHAwPog.jpeg" /><figcaption>Updating new user mail id into authorised user account</figcaption></figure><p>Updating the new email ID leads to improper user account verification, which escalates to an IDOR vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IJoaaFHirzrxl3jkpC_1RQ.jpeg" /><figcaption>Browser allowing authenticated user to change existing user mail id</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*TESdZbvy2rRBSTuu_5T44Q.gif" /></figure><p><strong>Mitigation:</strong></p><p>Changing the email id to unauthenticated user leads to ATO. How to mitigate this vulnerability?</p><ol><li>Validate the email ID parameter with user_id</li><li>Server-side validation should be authenticated with an authorization bearer token.</li><li>Make sure not to use guessable user_id and plain text format; it should be hashed with AES encryption.</li><li>Implement rate-limiting and a weak lockout session.</li></ol><p>Thank you, Tech Buddies</p><p>Happy Hacking!</p><p>Eat, Hack, Gym, Sleep</p><p>This is Jaga, Signing off</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9906ac591bde" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One Login, Many Doors: How SSO Really Works]]></title>
            <link>https://jagadeeshan2004.medium.com/one-login-many-doors-how-sso-really-works-4eea854dd30c?source=rss-252324b311d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/4eea854dd30c</guid>
            <category><![CDATA[info-sec-writeups]]></category>
            <category><![CDATA[osint-team]]></category>
            <category><![CDATA[reconnaissance]]></category>
            <dc:creator><![CDATA[Jagadeeshan]]></dc:creator>
            <pubDate>Fri, 21 Aug 2026 16:25:55 GMT</pubDate>
            <atom:updated>2026-08-22T08:50:25.488Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey Folks, I hope you are all doing well.</p><p>In this blog, we are going to explore an interesting authentication mechanism that allows you to log in once and access multiple resources without entering your credentials repeatedly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NuKaQ-7ERZrmZQlmafByrA.png" /></figure><p><strong>Single Sign-On (SSO)</strong> is an authentication mechanism that allows a user to authenticate once and access multiple applications or services without having to log in repeatedly.</p><p>This saves users from having to remember multiple passwords for different service providers. Once a user logs in, they can access other connected services without entering their credentials again and again.</p><p>Aaaaa,.. this is quite similar to cookies, right?</p><p>Well, cookies can play an important role in maintaining an SSO session. The SSO session eventually expires based on the Identity Provider’s session configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/354/1*DbohykE3cmNhmmuR5z490g.gif" /><figcaption>Multi-lock with single key</figcaption></figure><h3>Why should every cybersecurity professional understand SSO?</h3><p>For security professionals, it is important to understand SSO as more than just “log in once and access multiple applications.” Understanding SSO helps us understand how authentication and identity are at the center of an organization’s security architecture.</p><p>While performing a security assessment, authentication can be an important attack surface because weaknesses in a centralized authentication system can potentially affect multiple connected applications.</p><p>This is not just about performing a security assessment on a single application’s authentication mechanism. If the application is connected to multiple third-party services or internal applications, even a single loophole can create a chain of compromises across multiple systems through issues such as authentication bypasses or session-related vulnerabilities.</p><p>Have you ever wondered why attackers often focus on authentication mechanisms before targeting other parts of an application?</p><p>Let’s look at an example.</p><p>Imagine an organization that uses SSO to access its:</p><ul><li>HR portal</li><li>Git repositories</li><li>Cloud console</li><li>Email</li><li>VPN</li><li>Internal applications</li></ul><p>Rather than immediately targeting a vulnerability in a single application, an attacker may first perform reconnaissance to identify weaknesses in the authentication or identity infrastructure.</p><p>For example, if internal API tokens, credentials, or sensitive keys are accidentally exposed in a public repository, an attacker may exploit them to access connected resources or bypass parts of the intended authentication workflow.</p><p><strong>A small mistake can create a big impact.</strong></p><p>SSO introduces several important security components, such as:</p><ul><li>Authentication tokens</li><li>Session cookies</li><li>SAML assertions</li><li>OAuth access tokens</li><li>OpenID Connect ID tokens</li><li>Redirect URLs</li><li>Authorization codes</li><li>Identity Provider configurations</li></ul><h3>How does it work?</h3><p>Single Sign-On and Single Logout are possible through sessions. Behind these mechanisms are protocols and standards that define how authentication information is exchanged between different systems.</p><p>For example, <strong>SAML (Security Assertion Markup Language)</strong> is a standardized protocol that allows two parties to exchange authentication and authorization information without requiring the user to provide their password to every application.</p><p>Depending on the SSO implementation, a user may have different types of sessions:</p><ul><li><strong>Local application session:</strong> Maintained by the application the user is accessing.</li><li><strong>Identity Provider (IdP) session:</strong> Maintained by the Identity Provider that authenticates the user.</li><li><strong>Authorization server session:</strong> Depending on the architecture and protocols being used, an authorization server may also maintain session-related state.</li></ul><p>Let’s look at a real-world example using Auth0.</p><p>SSO Login:</p><ol><li>Your application redirects the user to the login page.</li><li>Auth0 checks whether an existing SSO session is available.</li><li>Because this is the user&#39;s first visit to the login page and no SSO session exists, the user is prompted to log in using one of the configured authentication methods or connections.</li><li>Once the user successfully logs in, Auth0 creates an SSO session and redirects the user back to your application. Depending on the authentication flow, the application can receive tokens containing information about the authenticated user.</li></ol><blockquote><strong>Note:</strong> Don’t confuse Auth0 with OAuth. They are not the same thing. Auth0 is an identity and access management platform that can use protocols and standards such as OAuth 2.0, OpenID Connect, and SAML. OAuth 2.0 is primarily an authorization framework, while OpenID Connect adds an authentication layer on top of OAuth 2.0.</blockquote><h3>SSO on Subsequent Login</h3><ol><li>Your application redirects the user to the login page.</li><li>Auth0 checks whether an existing SSO session is available.</li><li>Auth0 finds the existing session. If it is still valid, the user is not asked to log in again.</li><li>Auth0 redirects the user back to your application, returning the appropriate authentication response and tokens based on the configured authentication flow.</li></ol><h3>Now, you may ask: How does SSO check the user’s status?</h3><p>In an Auth0-based implementation, the application can use methods such as checkSession() from the Auth0 SDK to attempt silent authentication.</p><p>The SDK attempts to authenticate the user without displaying an interactive login page. Depending on the authentication result, the application can determine whether the user still has an active session with the Identity Provider.</p><p>Here, <strong>silent authentication</strong> simply means:</p><blockquote>The application attempts to authenticate the user without asking them to interactively enter their credentials again.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yQKeOl27bK9_uYB5q-hzqw.png" /><figcaption>Workflow with SSO Authentication without AuthO</figcaption></figure><p>If an active SSO session exists and the authentication request succeeds, the user can continue accessing the application without seeing the login screen.</p><p>If the SSO session has expired or is no longer valid, the application may need to redirect the user to log in again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yVzw3D6iPlw4N6APN6YTXQ.png" /><figcaption>Workflow without SSO Authentication</figcaption></figure><h3>Conclusion</h3><p>Single Sign-On simplifies authentication by allowing users to access multiple applications with a single login.</p><p>Silent authentication takes this a step further by allowing applications to check whether an existing SSO session is still active without repeatedly asking the user to log in.</p><p>Understanding how SSO sessions, cookies, tokens, and authentication flows work is essential for cybersecurity professionals because these components are also important parts of an application’s attack surface.</p><p>A weakness in a centralized authentication system can potentially affect multiple connected applications. That is why understanding the authentication architecture is just as important as identifying vulnerabilities within an individual application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*08DdE01JNyoP3NJrF3fZuw.jpeg" /></figure><p>In my upcoming blog, I will explore how attackers use different techniques, including AI-assisted tools, to identify and potentially exploit weaknesses in authentication mechanisms.</p><p>Thank you, Tech Buddies</p><p>Happy Hacking!</p><p>Eat, Hack, Gym, Sleep</p><p>This is Jaga, Signing off</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4eea854dd30c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I dump the company database using SQL injection]]></title>
            <link>https://jagadeeshan2004.medium.com/how-i-dump-the-company-database-using-sql-injection-f10bd3c45ade?source=rss-252324b311d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f10bd3c45ade</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Jagadeeshan]]></dc:creator>
            <pubDate>Fri, 09 Jan 2026 06:24:00 GMT</pubDate>
            <atom:updated>2026-01-09T06:24:00.845Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s begin…</p><h3>Before discussing SQL injection, let me explain what it is.</h3><p>SQL injection is a server-side vulnerability where an attacker tries to inject a malicious payload into a vulnerable input parameter to manipulate the database.</p><p>The Target site, which I have taken, is a vulnerable disclosure program, so due to confidentiality, I am supposed to hide sensitive information.</p><p><strong>How does the SQL malicious payload work?</strong></p><p>In the database, the structure of the query will be designed and structured by a backend developer using MYSQL, MSSQL, MongoDB, and so on. It depends on the use case and the client&#39;s requirement. How some newbie developers write the backend table column, query like <strong>SELECT * FROM TABLE_NAME WHERE username= “username” AND password= “password” ;</strong></p><p>By this, we can achieve SQL injection by injecting a malicious payload. So in SQL injection, there are four commonly classified are: Error-Based, Boolean-Based, Union-Based, and Time-Based injection.</p><p>The payload, which apparently escapes the user input by injecting error-based SQL injection <strong>‘ OR 1=1- -</strong> How does this escape the backend query?</p><p>When attackers inject user input into the login page, the query eliminates the password query, which is written in the backend. Basically, this payload says 1=1, which is logically TRUE, so the server blindly trusts the user’s response and allows into into the dashboard without any authorization.</p><p>I don’t want to drag the entire theory in one blog before entering into practicals. We need to know some basics of SQL injection, how it works, and how attackers try to manipulate the database by using malicious payloads.</p><p>Let’s start, how I found and dumped the entire database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*IXzLa32ZshCqB6MzIDsWPA.gif" /></figure><p>Usually, I test SQL injection in the login page, but this time I did something different from the usual case, so I tried in the URL parameter with error-based SQL injection with a simple payload, as I mentioned before. It acts like something weird, it shows an error, but not a usual error, yeah, you got it, it is a SQL error. By this error, I got a big secret key hint, i.e, MYSQL, which is the database name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T2puyaRNdqF72G6ecpLwwg.png" /><figcaption>Error-Based SQL inejction</figcaption></figure><p>Next, to check what the tables are in the database, I checked for the information_schema database, where the core table names are located in this particular database.</p><p>Boom 💥got it buddy!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*p01RHIv9nmmjyBSQV-PT_w.gif" /><figcaption>Source from 4GIFS.com</figcaption></figure><p>To dump the database, I use the SQLmap tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*S404qpXvt_WXG265ARPgmQ.png" /><figcaption>Source from google.com</figcaption></figure><p>Before using SQLmap, copy the URL and paste it into the SQLmap tool. The command is</p><pre>sqlmap -u &#39;https://www.example.com?id=1&amp;pid=2&#39;- -dump=&lt;databasename&gt; -dump.</pre><p>So this is a <strong>database enumeration</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e3cISX_GNKsPvwpdYzr9KA.png" /><figcaption>injected points are shown</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*stNcbOzRxbXc6UuMqetoog.png" /><figcaption>retriving information_shema database and table names</figcaption></figure><p>In these tables, no other data is updated or modified, so a few tables contain some data that has company document details, and many more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4jVzKDbKea3mCE42rPibYw.png" /><figcaption>Another table in same database with no data is been updated</figcaption></figure><p><strong>Impact:</strong></p><p>By using this approach, I can able to dump the entire database and table. This leads to manipulating the database structure through various CRUD operations.</p><p><strong>Mitigation:</strong></p><p>Use parameterized queries and input sanitization by not allowing special characters in the input field. Avoid detailed errors and handle exceptions that should not be triggered, especially for SQL injection.</p><p>As this is not a native application so I responsibly reported to the company&#39;s security team and patched this issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*Ow2R4ceFmosOOKnCZPfD4A.gif" /><figcaption>Source from google.com</figcaption></figure><p>Thank you, Tech Buddies</p><p>Happy Hacking!</p><p>Eat, Hack, Gym, Sleep</p><p>This is Jaga, Signing off</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f10bd3c45ade" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sensitive Data Exposure: PII Data via API leakage in an internal API point]]></title>
            <link>https://jagadeeshan2004.medium.com/sensitive-data-exposure-pii-data-via-api-leakage-in-an-internal-api-point-05c41c89c52b?source=rss-252324b311d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/05c41c89c52b</guid>
            <category><![CDATA[osint]]></category>
            <dc:creator><![CDATA[Jagadeeshan]]></dc:creator>
            <pubDate>Mon, 01 Dec 2025 16:20:19 GMT</pubDate>
            <atom:updated>2025-12-01T16:20:19.343Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*Q4OZl4ocAtaDtKQB96eJnw.gif" /></figure><p>Hi Tech Buddies, I hope this blog helps you to verbose into API security testing. Before entering into the main picture, kindly excuse me for any grammatical errors because human creature makes mistakes, so let’s dive into the intro part.</p><h3><strong>What is an API?</strong></h3><p><strong>A</strong>pplication <strong>P</strong>rogramming <strong>I</strong>nterface is an intermediate communication channel used to share between the client and the server.</p><p>In real-time analogy, you are taking your girlfriend to a candlelight dinner at a restaurant, and you are checking the menu for ordering something special to surprise your girl and which is the signature dish in that restaurant. You(client) are calling the waiter (API call), and he is noting all the dishes you order and sends them to the kitchen (server). Once it is prepared, the waiter delivers the dishes you have ordered for you and your girlfriend.</p><h3><strong>How API work?</strong></h3><p>Based on the client-server model.</p><p>There are three models to follow:</p><p><strong>Request(Client to API)</strong></p><p><strong>Processing(API to Server)</strong></p><p><strong>Response(Server to Client)</strong></p><p>There are two API Gateways:</p><p><strong>Internal </strong>and <strong>External</strong></p><p>Why am I mentioning the two different Gateways in the API?</p><p>For this question, I’ll answer you through POC’s and the PII Data leakage process.</p><p>I think you will be waiting for the excitement of how I found this critical data exposure via API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*OuhL5Z0XmA3PaE54ktEH8g.gif" /></figure><p><strong>Tools Used:</strong></p><ol><li>Took a Google for dorking the target site</li><li>Used Burp Suite for request and response analyser</li></ol><blockquote>for dorking site:*.com inurl: Targetneich</blockquote><p>Since this program does not have a bug bounty or VDP program, let’s keep this as a target.com</p><p>First, it took a solid two days to analyse how the application works, what all the roles and modules are that they are using, and how many endpoints are being used. Analysing the .js file for business logic, overall gathering the information before jumping into a lion’s den.</p><p>After two days, I started my reconnaissance using various tools. The second step I follow is enumeration. My methodology is to find subdomains of the target domain. For that, I use a tool called Subfinder, s<em>ubfinder -d &lt;target.com&gt; &gt;&gt;targetsubs.txt -all</em></p><p>Then, I’ll check which are all the subdomains are alive or not, so for this I use the httpx tool as it will save us time rather than checking one by one. <em>cat targetsubs.txt | httpx</em></p><p>After this, I follow up on various methods that I’ll update in upcoming blogs for further exploitation process.</p><p>Let’s come to our <em>target.com</em> domain</p><p>I used my proxy tool, Burp Suite, to send all the requests and checked the important responses, which I’ll send to the repeater for each user input and parameter that may have a misconfiguration or improper validation.</p><p>When I was checking something unusual call happened, which was not supposed to be externally phased, but the internal API was misconfigured due to authentication and authorisation confusion.</p><p>The attack surface is something weird, i.e in the dashboard, when the requests are analysed in Burp, it is actually shown in response to all the PII data like Aadhar card number, mobile number, PAN card number, their working ID number, and so on….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*39SnrGRaik8PrQTn9pA-LQ.jpeg" /></figure><p>No Postman tool for API testing here, I used only Burp Suite, that’s the power of a proxy tool.</p><h4><strong>Request POCs</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*utmJqGa0x65JEzhiKoZltw.png" /><figcaption>Request where the JWT token is properly binded with Authorization header</figcaption></figure><h4>Response POCs</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*LFowjM0wia7Z90lRmvZW7Q.png" /><figcaption>Exposed in response of PII data leakage</figcaption></figure><h4><strong>What is the flaw behind this simple mishandling API request and response?</strong></h4><p>As I said before, why are we discussing Internal and External API’s? In the login page, after I entered the normal user name and password to authenticate. API validates the data to determine whether the username and password meet security requirements. After that server stores the username and password in storage password is stored in a hashed value.</p><p>This developer uses a simple method to serialise a database object into a JSON response. The response, which contains everything the user is storing after the authorisation.</p><p>The developer thought is built for a mobile application, and the front-end is built using JavaScript, and when the user uses it only shows the username and password fields rest of the information is hidden.</p><h4><strong>Impact</strong></h4><p>Sensitive Data Exposure via an internally leaked API credential leads to Account Takeover, Data Scraping and Privilege Escalation.</p><h4><strong>Mitigation</strong></h4><ol><li>Whitelists the Internal API from external public API calls</li><li>Use a custom DTO (Data Transfer Object), never use a full data object in every API response</li><li>A good developer knows how to handle errors through error-handling functions</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*3EfPCMyUQ4F0fvPni977hA.gif" /></figure><p><strong>POST REQUEST</strong></p><p>POST /api/v1/XXX/XXXX?XXXXX HTTP/2<br>Host: api.XX.com<br>Content-Length: 54<br>X-Frontend: XX.com<br>Sec-Ch-Ua-Platform: “Windows”<br>Authorization: Bearer eyJhbGcXXXX<br>X-Marketplace-Name: XX<br>Sec-Ch-Ua: “Not)A;Brand”;v=”8&quot;, “Chromium”;v=”138&quot;, “Brave”;v=”138&quot;<br>Sec-Ch-Ua-Mobile: ?0<br>Key: undefined<br>User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36<br>Accept: application/json, text/plain, */*<br>Content-Type: application/json<br>Sec-Gpc: 1<br>Accept-Language: en-US,en;q=0.8<br>Origin: https://XX<br>Sec-Fetch-Site: same-site<br>Sec-Fetch-Mode: cors<br>Sec-Fetch-Dest: empty<br>Referer: https://XX.com/<br>Accept-Encoding: gzip, deflate, br<br>Priority: u=1, i</p><p>{“filters”:{“status”:[“approved”],”type”:[“virtual”]}}</p><p><strong>NOTE: Response, I have not given the text due to a confidential leak.</strong></p><h3><strong>Confirmation and Acceptance from Cert-In (Indian Cyber Incident Team)</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9vv99tbTmTRVaFnTdtR8xA.png" /><figcaption>Response from Cert-In</figcaption></figure><p>Thank you, Tech Buddies</p><p>Happy Hacking!</p><p>Eat, Hack, Gym, Sleep</p><p>This is Jaga, Signing off</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05c41c89c52b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>