<?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 Jatin_Chudasama on Medium]]></title>
        <description><![CDATA[Stories by Jatin_Chudasama on Medium]]></description>
        <link>https://medium.com/@_0jatin0_?source=rss-4751301fc6b5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*yBKcwmEek2-NBmk0</url>
            <title>Stories by Jatin_Chudasama on Medium</title>
            <link>https://medium.com/@_0jatin0_?source=rss-4751301fc6b5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 00:53:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@_0jatin0_/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[$200 Business Logic Blunder In Sole Source Project]]></title>
            <link>https://medium.com/@_0jatin0_/200-business-logic-blunder-in-sole-source-project-99a7bbe0d2f0?source=rss-4751301fc6b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/99a7bbe0d2f0</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[logic-flaw]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Jatin_Chudasama]]></dc:creator>
            <pubDate>Wed, 20 Mar 2024 14:52:25 GMT</pubDate>
            <atom:updated>2024-03-20T14:52:25.862Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey, dear bug hunters &amp; researchers, welcome once again. In this writeup, we will discuss one of my findings I found few days ago. So without taking much time, straighten up your backs, roll up your eyes on the screen, and let’s get started. If you find any errors/mistakes, apologies :).</p><p>I was invited to a private program in January 2024. The program has a single application as the in-scope target for researchers to hunt on. However, the application involves a vast area to explore, with almost 10 different roles provided for testing. As I mainly focus on finding flaws related to access control and business logic, I found the target to be pretty competent according to my skills and knowledge for testing and hunting.</p><p>I don’t want to get too excited and hurry up to dive into finding bugs directly, as I have made this mistake many times before and ended up finding nothing. So this time, I decided to alter my approach a little bit, taking time to explore each functionality and action residing in the application, while making proper notes of them and running burpsuite in the background. I started in mid-January, and for the next few days, I just analyzed the application’s workflow and prepared notes.</p><h4>Target Application Overview</h4><p>I’ve already gave an overview about the target application in my last writeup, if you haven’t read that do checkout from here: <a href="https://medium.com/p/c8a94feb7cf3">https://medium.com/p/c8a94feb7cf3</a>. Here’s a target overview snippet from that writeup.</p><figure><img alt="Target Overview" src="https://cdn-images-1.medium.com/max/694/1*vKG7FxxW21xpzB_BD6IKJQ.jpeg" /><figcaption>Target’s overview</figcaption></figure><h4>Vulnerability Description</h4><p>The flaw was identified in the application’s sole-source procurement flow. Sole-source projects refer to projects where the owner selects a single supplier to provide goods or services without considering competitive bids from other vendors. This means that the owner chooses to work exclusively with one particular provider due to their uniqueness and special expertise.</p><p>While completing project details in the application, it prompts the user to select a sourcing type for the project, which includes multiple types such as RFP (Request For Proposals), RFI (Request For Information), Sole Source, and more. Upon selecting <strong>Sole Source</strong>, typically involves awarding a contract to a single provider without any competition.</p><p>Once the project details are completed, we cannot edit the sourcing type again. However, later I observed that we can still edit the matched supplier by removing them and reselecting another one even after completing the details. Here’s where the application poses a flaw. I identified that the <em>GraphQL</em> operation <em>“createFact”</em> was used to update suppliers, and we can add multiple suppliers in a JSON array in the POST body request. Once multiple suppliers are matched, it is possible to send invites, approve their proposals, and award them, which violates the entire approach of considering sole-source procurement.</p><h4><strong>Steps of Finding</strong></h4><p>1. The attacker user, with the project owner role, creates a project and, while completing details, selects <em>“Sole Source</em>” when prompted to select the <strong>sourcing type</strong>.</p><p>2. After completing the details, they navigate to the <em>Project Detail</em> tab to edit the matched supplier. They remove the matched supplier, then select another one and captures the <strong>HTTP POST</strong> request with the <em>GraphQL</em> operation <em>“createFacts</em>” in BurpSuite.</p><p>3. From the <strong>POST</strong> request body, attacker add multiple suppliers in a JSON array and sends the request, resulting in a successful <em>200 OK</em> response.</p><p>4. Now, from the <em>Suppliers</em> tab, they send project invitations to them one by one. (Since it’s a sole project, the application does not allow sending invitations to all suppliers at once.) The suppliers accept the project invites and send proposals for the project.</p><p>5. Attacker owner receives the proposals and are able to approve and award all of them.</p><p><strong>Timeline</strong></p><blockquote>01 Mar 2024: Reported<br>08 Mar 2024: Got First Response<br>11 Mar 2024: Triaged as Low &amp; Rewarded $200</blockquote><p>Since the project owner role holds the utmost authority within the application’s project role category and only attackers with the owner role can perform this attack. None of the other roles, such as editor, viewer-collaborator, or evaluator, possess this capability, resulting in a downgrade of the severity of the issue by the team.</p><p>Thank you for reading. Stay safe &amp; secure. Happy Hunting. See you soon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*tgaWngU1h_Sz2DRNFUEvDA.gif" /><figcaption>See-ya</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99a7bbe0d2f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From No to Go — Uninvited Access To Invited Projects]]></title>
            <link>https://medium.com/@_0jatin0_/from-no-to-go-uninvited-access-to-invited-projects-c8a94feb7cf3?source=rss-4751301fc6b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8a94feb7cf3</guid>
            <category><![CDATA[broken-access-control]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[unauthorized-access]]></category>
            <dc:creator><![CDATA[Jatin_Chudasama]]></dc:creator>
            <pubDate>Thu, 01 Feb 2024 18:43:35 GMT</pubDate>
            <atom:updated>2024-02-01T18:43:35.673Z</atom:updated>
            <content:encoded><![CDATA[<h3>From No to Go — Uninvited Access To Invited Projects</h3><p>Hey Folks..! Hope you all are good. Happy to be back again after a long time :) Today I’m going to share a bug I found a few days ago. So, without wasting much time, take a deep breath and stay tuned till the end. Kindly ignore any mistakes, let’zzzz Gooooooww.!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*duVzQctspwYXy454EFjCiA.gif" /></figure><h4><strong>Overview of the target</strong></h4><p>Let me first give a brief introduction about the target. <br>The target application is an autonomous sourcing platform that allows large businesses and organizations to use advanced technologies, particularly AI to automate and optimize the procurement process. Application has different account roles. However, for this finding, we have to understand 2 major roles — Project and Supplier Roles. No rocket science to understand what these roles are about. Simply, users with project roles can create, update, or view the projects &amp; invite suppliers for their projects, and users with supplier roles can view the invited project details, accept or reject the project invitation sent by the project owners &amp; send proposals for the projects.</p><h4><strong>How I Identified The Vulnerability</strong></h4><p>After a few days of hanging around the application interface, it was a decent finding for me to spot. I was testing the invitation process between project owners &amp; suppliers and observed that once the supplier rejects the project invitation, they can not view any project details nor they can re-accept the invitation, and the project owner also can not send a re-invite to them. This means the supplier has only access to details till they decline the project invite.</p><p>Looks eye-catching at this point and the very next moment I realized - what if I can access project details now? Is it possible or not? The application is using graphQL and after reviewing the HTTP history I’ve found a graphql operation <em>‘briefView’</em> which uses variables — <em>workspaceId</em> and <em>projectId</em> to fetch project details. Later, I noticed when supplier opens the project in application the URL path contains the same UUIDs as mentioned in operation briefView variables. I declined the invitation and captured a request in burpsuite with operation briefView from another project details &amp; changed both variables. Booom!!! I got HTTP status 200 OK with the response body disclosing project information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*9R5ASTJZn11Wjg13y4XxaA.gif" /></figure><h4><strong>Steps To Reproduce</strong></h4><ul><li>Project owner creates a project, completes the details, and invites supplier to their project.</li><li>Supplier receives invite &amp; access to project details, then they note down the <em>projectId</em> and <em>workspaceId</em> from URL &amp; declines the project invitation.</li><li>From the Projects tab, supplier opens another project and intercepts the graphql request with operation name ‘<em>briefView</em>’ in burpsuite by clicking Details button and send it to the repeater tab.</li><li>Changes the <em>workspaceId</em> and <em>projectId</em> to rejected project. Got access to all the project information. Even if project owners make any changes or updates later, supplier can access that.</li></ul><h4>Impact</h4><p>The flaw arises due to inadequate authorization checks on <em>graphQL</em> operation ‘<em>briefView’. </em>It affects project confidentiality, allowing unauthorized access to sensitive information or updates in project details after declining an invitation.</p><p><strong>Timeline</strong></p><blockquote>22 Jan 2024: Reported</blockquote><blockquote>25 Jan 2024: Got First Response — Requires Additional Info</blockquote><blockquote>26 Jan 2024: Provided Additional Info</blockquote><blockquote>26 Jan 2024: Triaged and Rewarded $$$💰</blockquote><p>That’s it for today. Thank you for reading. Happy Hunting. Stay Safe-Stay Secure. Signing off till the next time!!! 🤝</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*nMz-i2ypSzsAN5fZSoR31Q.gif" /><figcaption>Taaaddaaa :)</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8a94feb7cf3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blind SQL Injection — still OLD is GOLD]]></title>
            <link>https://medium.com/@_0jatin0_/blind-sql-injection-still-old-is-gold-6b260f4da1e8?source=rss-4751301fc6b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b260f4da1e8</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[blind-sql-injection]]></category>
            <category><![CDATA[exploit]]></category>
            <category><![CDATA[postgres]]></category>
            <dc:creator><![CDATA[Jatin_Chudasama]]></dc:creator>
            <pubDate>Mon, 20 Feb 2023 21:19:59 GMT</pubDate>
            <atom:updated>2023-02-20T21:19:59.096Z</atom:updated>
            <content:encoded><![CDATA[<h3>Blind SQL Injection — still OLD is GOLD</h3><p>Hellooooo..!! fellow Hackers, Bug Hunters, Security Researchers &amp; Everyone, welcome to this writeup. Jatin here, all the way from India, and for just a brief intro about myself — I’m a student, a learner, and started bug bounties a few months ago. Writing my first writeup on Blind SQL Injection which I found a few weeks back. Kindly ignore the mistakes &amp; without wasting much time let’s get directly jump into this.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FiMBEgyXkFBtdCFS93i%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fafv-beach-jump-hole-iMBEgyXkFBtdCFS93i&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExa254ajUyNXdlZ3R6eXM2ajloeDM5N3k5NmJ0NnViaHZ5Y2UzNG1ydyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FiMBEgyXkFBtdCFS93i%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="291" frameborder="0" scrolling="no"><a href="https://medium.com/media/3fdd4ebecbd7aade4c4b5d092cf55a30/href">https://medium.com/media/3fdd4ebecbd7aade4c4b5d092cf55a30/href</a></iframe><h4>Brief Intro to Blind SQL Injection</h4><p>Blind SQL injection arises when an application does not return any details or errors about the database. Instead, we have to identify using boolean conditions OR true/false statements to determine whether the injection was successful.</p><h4>Description About Target:</h4><p>The target web application is a seller dashboard which allows to create product units according to some listed categories. The dashboard also presents essential information about category, brand, price, size, status, and a unique 12-digit numeric ID to identify the products. Once, the seller creates a product, they can view or do changes to their product using that unique ID before submitting it for review &amp; Yes.., Of course! there is a search functionality which allows to search for products they want to view or change. Seems easy to understand and you all might have guessed where our injection point is :). Yess..!! None other than our search parameter. So, without further ado, let’s dive into the identification and exploitation phase of this vulnerability.</p><h4>Vulnerability Identification</h4><p>To identify, I started with the lame old method by injecting a <em>single quote (‘)</em> into the search field and noticed an unexpected error occurred at the bottom of the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*pKgqmCOzPDxKu9g04-20_w.png" /><figcaption>Error</figcaption></figure><p>At first glance, I doubted that error because there is no change in the page except that error so I injected a few more characters to check how the application response back. However, observed that technical error is raised only when I put a <em>single quote (‘) </em>and <em>semi-colon (;)</em>. At this point of time I’ve started thinking about the presence of Blind SQLi because as far as I know these characters are breaking and terminating the query at the backend, but wait it’s just raising an error so what’s the next thing? SQL Operators?? Hmmmm..!! yeah definitely. Injected <em>‘ OR 1=1 </em>results in no success but after a few takes query <strong><em>‘ OR ‘1’=’1 </em></strong>&amp;<strong><em> ‘ OR 1=’1 </em></strong>results in success with no error &amp; returned products I’ve created. Fine!! We’ve confirmed now it is a blind SQLi. Injected <strong><em>‘ OR ‘1’=’2 </em></strong>which is evaluated as false, returned no data back to me. Same <strong><em>&lt;valid_product_id&gt;’ AND ‘1’=’1</em></strong> which is treated as true &amp; returns that particular product data in response &amp; <strong><em>&lt;random_number&gt;’ AND ‘1’=’1</em></strong> which is of course false and return nothing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*Ngzzk7U_ZLUwyUWqVaPiSA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*E0n1nSttYwdJ7pnpSDZZog.png" /></figure><h4>Exploitation Phase</h4><p>We have confirmed the vulnerability, and now time to move forward to identify the version of the server. To enumerate the version, the query I used is: <strong><em>‘ OR substr((select version()),1,1)=’&lt;first_character&gt;</em></strong></p><p>To little automate this process I used burp intruder and while fuzzing the characters found a unique response on character ‘P’. Now, it&#39;s easy to guess that our version is <strong>PostgreSQL</strong>. So further queries are as follows:</p><pre>&#39; OR substr((select version()),1,1)=&#39;P<br>&#39; OR substr((select version()),2,1)=&#39;o<br>&#39; OR substr((select version()),3,1)=&#39;s<br>&#39; OR substr((select version()),4,1)=&#39;t<br>&#39; OR substr((select version()),5,1)=&#39;g<br>&#39; OR substr((select version()),6,1)=&#39;e<br>&#39; OR substr((select version()),8,1)=&#39;S<br>&#39; OR substr((select version()),9,1)=&#39;Q<br>&#39; OR substr((select version()),10,1)=&#39;L</pre><p>After complete enumeration, the final query is: <strong><em>‘ OR substr((select version()),1,10)=’PostgreSQL</em></strong> which evaluates as true and returns the product lists in response. Same way i enumerated current database: <strong><em>‘ OR substr((select current_database()),1,3)=’sll</em></strong> (Altered) and current user: <strong><em>’ OR substr((select current_user),1,11)=’wayuser_fly</em></strong> (Altered).</p><p>For those who didn’t understand how substr() or substring() works, please check <a href="https://www.w3schools.com/sql/func_sqlserver_substring.asp">SQL Server SUBSTRING() Function</a>.</p><p>Next, I tried to trigger a time delay with the query <strong><em>‘ OR (select(0)from(select(pg_sleep(5)))a)=’0</em></strong>. <br>You all have noticed that I used <em>pg_sleep(5)</em> in the query which will pause a server for 5 seconds right? But wait it is super weird I got the response after 10 seconds. At the first time, I think that the query is not working properly. I again ran that query and got a response after 10 seconds. What is happening here, started scratching my head. After playing with a few more queries found that the server is taking x2 time to serve the response back. Means If I will put <em>pg_sleep(10)</em> it will take 20 seconds to return a response back. Same <em>pg_sleep(8)</em> delays the response for 16 seconds and <em>pg_sleep(0)</em> will return a quick response. However, I don’t know the exact query running at the backend but I specifically mentioned this point in my report. Well done! great job.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*KWLKlINPQaG6XWq9MfpdSg.gif" /></figure><p><strong>Team Equals_2 on a little night mission</strong></p><p>Till here, we have found the current database, version, and username using some predefined function but now we have to find other databases, table names &amp; column names using some raw queries. So I took a help of my friend <em>Karan Verma</em> to help me to exfiltrate more data. We start to give it a try with sqlmap. If sqlmap finds and exploits this vulnerability it will be easy to showcase and saves time but bad luck, sqlmap didn’t find anything, we tried with different options, referred articles, and writeups but ended up finding nothing. Even I noticed that sqlmap is not even testing the vulnerable parameter idk why but no issue we have learned something new at that time.</p><p>So what..! is this a dead end here? Nooooo wayyyyy..! Definitely, there is a way to exploit this, what we have to do is just Google things, :) Google knows everything. Starts to find more articles, writeups, blogs, and techniques about blind sqli &amp; after messing around on google found this <a href="https://dotcppfile.wordpress.com/2014/07/12/blind-postgresql-sql-injection-tutorial/">blog</a>, which was written back in 2014, that turns out a gold mine for me, and now it&#39;s the time to take charge again.</p><p><strong>Getting Table Names</strong></p><p>I started with enumerating table name from our current database which is ‘sll’ and the query I used is: <strong><em>‘ OR substr((select table_name from information_schema.tables LIMIT 1 OFFSET 0),1,8)=’question</em></strong>. To check and confirm I also put <em>‘ OR substr((select table_name from information_schema.tables LIMIT 1 OFFSET 0),1,8)=’questxxx</em> which is of course false and returns no data in response, confirms that I found the right table name. Other table names found are as follows: <em>user_activity, pg_type, user_activation, freight_per_unit</em> just by increasing the value of offset.</p><p><strong>Getting Column Names</strong></p><p>Tables are enumerated now started to find column names from tables. I used table <em>pg_type</em> to find columns using query: <strong><em>‘ OR substr((SELECT column_name FROM information_schema.columns WHERE table_name LIKE ‘pg_type’ LIMIT 1 OFFSET 0),1,3)=‘uid</em></strong>. Other columns found are as follows: <em>typname, typnamespace, typowner</em>.</p><p><strong>Enumerating More Databases</strong></p><p>I’ve enumerated other databases which include the admin database also, using query <strong><em>‘ OR substr((SELECT datname FROM pg_database LIMIT 1 OFFSET 1),1,8)=’rd_admin</em></strong>. Other DBs: <em>template, postgres, sll</em>. It’s the end line here, I don’t have permission to access the data from it.</p><p>Thanks!! This write-up is all about my first critical finding and how I exploited it. Also, I was rewarded with $$$$. However, if you guys want to learn in detail or need to know how all these functions and queries work please refer to the blog posts &amp; links I have mentioned. <br>I guess that’s it for today. Welcome to all valuable suggestions, techniques, tricks &amp; comments. I’ll be back soon with a new writeup till then GoodBye..! :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*PT3q6f0zOd1rudAJGf4JRA.gif" /></figure><p><strong>References</strong></p><ul><li><a href="https://dotcppfile.wordpress.com/2014/07/12/blind-postgresql-sql-injection-tutorial/">Blind Postgresql Sql Injection - Tutorial</a></li><li><a href="https://gerbenjavado.com/manual-sql-injection-discovery-tips/">Manual SQL injection discovery tips</a></li><li><a href="https://pentestmonkey.net/cheat-sheet/sql-injection/postgres-sql-injection-cheat-sheet">Postgres SQL Injection Cheat Sheet</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b260f4da1e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>