<?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 Keerthivasan on Medium]]></title>
        <description><![CDATA[Stories by Keerthivasan on Medium]]></description>
        <link>https://medium.com/@vasankeerthi5050?source=rss-6f161bf764a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KKAGAklM6EXzjkfwZSXXUg.jpeg</url>
            <title>Stories by Keerthivasan on Medium</title>
            <link>https://medium.com/@vasankeerthi5050?source=rss-6f161bf764a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 08:33:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vasankeerthi5050/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[DISSECTING AN URL(All You Need To Know About URL)]]></title>
            <link>https://medium.com/@vasankeerthi5050/dissecting-an-url-all-you-need-to-know-about-url-58ef235cb9e0?source=rss-6f161bf764a------2</link>
            <guid isPermaLink="false">https://medium.com/p/58ef235cb9e0</guid>
            <dc:creator><![CDATA[Keerthivasan]]></dc:creator>
            <pubDate>Wed, 26 Jan 2022 19:25:17 GMT</pubDate>
            <atom:updated>2022-01-27T09:03:02.350Z</atom:updated>
            <content:encoded><![CDATA[<p>Before we start the blog.We should know about the differences between URL and URI.</p><p>If you think URL and URI are same. Well, It isn’t</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*mhWo7tEMepMHF19hCl7IaA.jpeg" /></figure><p>There are some differences between URL and URI and let’s see what it is.</p><h3>URI(UNIFORM RESOURCE IDENTIFIER)</h3><p>As the name specifies URI basically identify a particular Object whether it can be an object in real world or if it is in internet it can just able to identify but not able to locate a thing.</p><p>Let’s see this with an example. Imagine that I had a friend named MS(may be a pseudo Name).He is living in Chennai,Consider his name as an Identifier it is used to identify him. Now I’m trying to identify my friend but there are more than one MS in Chennai. I can’t locate his exact location because it doesn’t gave his location.It just identify whether there is a person named MS is there or not.This is an URI it doesn’t return location but it can identify an Object.</p><p>In Simple term URI is just to identify and not to locate.</p><h3>URL(UNIFORM RESOURCE LOCATOR)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*pH5DgJECraZAFkMpKEXQYg.gif" /></figure><p>Now I need my friend MS address to locate him.I came to know that URI can’t do anything for that.Here comes the use of URL</p><p>Imagine his address is :-</p><p>No:15, XYZ Street,Chennai</p><p>Now it uniquely identify his specific location.In which i can able to locate to the particular person alone.</p><p>In simple if you are searching for a book in the Internet, URI identifies whether the book is available or not .The URL that tells you how to access it and which protocol can be used.</p><p>There are some issue in understanding the differences between these two Because of misunderstanding the RFC statement.</p><h3>What is RFC?</h3><p>RFC stands for (REQUEST FOR COMMENTS) is like a publication from researchers,Computer scientist about the implementation and documentation about Internet and Protocols like (TCP ,IP,UDP ).Generally they publish a document for ex:- Network protocols like how they works and how they implemented etc..,</p><p>If you need to know more about RFC</p><p>Here it is,</p><p><a href="https://www.ietf.org/standards/rfcs/">RFCs</a></p><h3>A LITTLE TECHNICAL EXPLANATION ABOUT THE DIFFERENCES(Might be confusing too)</h3><p>According to RFC 3986 Section 1.1.3,</p><ul><li><strong>A Uniform Resource Identifier (URI) provides a simple and extensible means for identifying a resource</strong></li></ul><blockquote>It means its just an identifier.</blockquote><ul><li>All URLs are URIs, but not all URIs are URLs. In general, if you see http(s)://, it’s a URL.</li></ul><h3>DISSECTING AN URL</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*Jmd_elAnpmI5GA2wLl2NIQ.gif" /><figcaption>May be a little bored 😂</figcaption></figure><p>Let’s see how exactly a URL looks like and what each thing in an URL represents.</p><p>URL has four components:-</p><ul><li>Scheme</li><li>Host</li><li>Path</li><li>query String</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*UbPBhbeOWVbpKyITWsZYzw.png" /></figure><h4>Scheme</h4><blockquote>The Scheme part refers to the protocol . It may be http(Without SSL) or http(s) with SSL . These protocol in the URL used to access the internet.</blockquote><h4>Host</h4><blockquote>The Host refers the domain name and port number are used to access the domain through which port. Mostly every website uses http and https and those default port numbers are binds with domain name.So port number service is neglected from URL .</blockquote><p>for example:-</p><p>example.com is a domain which runs in https so its running in 443.Now the format will be:-</p><p><a href="https://example.com/">“https://example.com:443</a>&quot;</p><p>Though its default port for https its binded with host name and we don’t need to specify the port number while using the URL</p><h4>Path</h4><blockquote>Path identifies the specific resource the web client want to access.</blockquote><p>For example</p><p>“<a href="https://datatracker.ietf.org/doc/html/rfc3986">https://datatracker.ietf.org/doc/html/rfc3986</a>”</p><p>Lets take this URL as an example i need rfc3986 file. So the URL path navigating this specific file through /doc/html/ directory.</p><h4>Query</h4><p>A Query String is the part of the link which assigns specific values to the URL.</p><p>The Query String always start with a ? and values</p><p>Example:-</p><p>“<a href="https://www.youtube.com/watch?v=0NkFmZiemjE">https://www.youtube.com/watch?v=0NkFmZiemjE</a>”</p><p>The Query String starts after the question mark ?v The v is the key in the query string which represent the Video Id and <a href="https://www.youtube.com/watch?v=0NkFmZiemjE">0NkFmZiemjE</a> is the Video Id Number which assigned to the Id key by an equal signs.</p><p>So we are creating a query to the specific video by its video number in Youtube Domain.</p><p>The End</p><p>I hope you got a better understanding in every fragments presented in the URL and also Differences between URL and URI. Let me confuse you again with another interesting topic in another blog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*2c15dcBW29eNaKuk72lgaA.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58ef235cb9e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GRAPHQL OVERVIEW & HACK IT FOR FUN & PROFIT]]></title>
            <link>https://medium.com/@vasankeerthi5050/graphql-overview-hack-it-for-fun-profit-bbc64cd2a917?source=rss-6f161bf764a------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbc64cd2a917</guid>
            <dc:creator><![CDATA[Keerthivasan]]></dc:creator>
            <pubDate>Thu, 29 Jul 2021 17:57:11 GMT</pubDate>
            <atom:updated>2021-07-29T17:57:11.644Z</atom:updated>
            <content:encoded><![CDATA[<p>Before we dive into the writeup about graphql . Let’s go through a quick summary about API.</p><p>API(Application Programming Interface) is used to serve the data from server to client it sticks in the middle of client and server.</p><p>API will be mostly in JSON format.</p><p>REST API,GRAPHQL are some of the types of API available</p><h4>What is GRAPHQL?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5_MqPhxTjvOHsqv1pV1UaA.png" /></figure><p>As previously said graphql is an API which was developed by Facebook and opensourced in 2015. Most of the top companies use Graphql because of fast and friendly nature.</p><h4>How Graphql Works?</h4><p>Graphql uses graph structure as database</p><p>There are Queries , Mutation , Fragments.</p><h4>QUERIES</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*NvvxTvoH2kPbnHeTX6daLg.png" /></figure><p>Queries in graphql are written flexible. We can see the query has the same shape of result here we are querying name of the hero. The field name returns a String type “R2-D2” hence the name of the hero is RD-D2.</p><h4>Arguments</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*-obNqklNXUPmxRh5jHH65A.png" /></figure><p>queries can give one result or more than several results. We can use argument as ID in above image to retrieve the results of the human name and height. The argument ID can be incremented to get the value of other list of data from human</p><h4>Data Manipulation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*V5iV9ZM32h6aVWPB1_GRFQ.png" /></figure><p>In the above image the height is shown as meter in result .We can manipulate the argument in request to change the conversion in specific endpoint . here we add unit argument for converting from one standard to another standard.</p><h4>MUTATIONS</h4><p>Mutations are used to insert data in a database or modify already presented data from database. Mutations can edit an assigned variable and can also delete it . Mutations are similar to CRUD operations</p><h4>FRAGMENTS</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*VzeRUEACPX5SSIpclpSvNA.png" /></figure><p>Fragments are also called reusable unit.</p><p>Fragments are useful in a complicated page where a function is repeatedly used with small changes. We can construct a set of fields and insert them in queries.</p><h3>GETTING STARTED OF EXPLOITATION PHASE</h3><h3>HACKING GRAPHQL</h3><p>Let’s get started to learn the list of attack surfaces of graphql</p><p>Before hacking graphql we need to find some endpoints to attack it</p><p>v1/graphiql /</p><p>graph</p><p>/graphql</p><p>/graphql/console/</p><p>/graphql.php</p><p>/graphiql</p><p>/graphiql.php</p><p>These are the some list of endpoints which indicates the website or application using graphql api</p><p>Graphql Console:-</p><p>Graphql has a default idle like page to query the database. In some cases developers forget to hide it.If you find those endpoints leading to a idle page we can start doing introspection</p><h4>INTROSPECTION</h4><blockquote>{__schema{queryType{name}mutationType{name}subscriptionType{name}types{...FullType}directives{name description locations args{...InputValue}}}}fragment FullType on __Type{kind name description fields(includeDeprecated:true){name description args{...InputValue}type{...TypeRef}isDeprecated deprecationReason}inputFields{...InputValue}interfaces{...TypeRef}enumValues(includeDeprecated:true){name description isDeprecated deprecationReason}possibleTypes{...TypeRef}}fragment InputValue on __InputValue{name description type{...TypeRef}defaultValue}fragment TypeRef on __Type{kind name ofType{kind name ofType{kind name ofType{kind name ofType{kind name ofType{kind name ofType{kind name ofType{kind name}}}}}}}}</blockquote><p>Paste this query in IDE and you will get a bunch of response in JSON format. now copy those response and paste in graphql voyager . It helps to read those response comfortably with mapping relevant responses. So with those response we can get to know what to query to get juicy endpoints.</p><h4>If introspection disabled</h4><p>In my cases I found many disabled endpoints so here we change some attack path</p><p>We can fuzz endpoints to find GRAPHQL ide if you are lucky</p><p>Other than that we can able to perform IDOR</p><p>In the above topics I’ve told that we can change the ID in data manipulation if you can able to view other users data from change id probably you will end up in idor vulnerability</p><h4>Graphql CSRF</h4><p>In my cases I will try to find GRAPHQL csrf .In most cases GRAPHQL doesn’t use csrf tokens to avoid csrf vulnerability instead they use JWT auth token to avoid csrf attacks</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2-gVhyEDjpAHSaYxr_7nZg.jpeg" /></figure><p>You can see how the authorization jwt token looks like .If you find authorization tokens in your request it’s time to remove CSRF methods from your attack. Try to remove the token from your request and forward rarely it works .If this magic happens for you can continue in csrf approach</p><h4>CSRF Without Authorization token</h4><p>Ok now we can see how to perform the attack if you are free from tokens. CSRF attacks are possible in POST request. Mostly the api request will be in JSON format . So we are believing it is not vulnerable to csrf attack We can change the application/json to application/x-www-form-form-urlencoded, multipart/form-data and after changing the content type we can generate csrf poc .</p><h4>GRAPHQL EXPLOIT TOOLS</h4><p>There are not many tools for attacking graphql. However some tools available opensource are working good which you can add in you arsenal .</p><p>1) ABOUT GRAPHQLMAP</p><p><a href="https://www.kitploit.com/2021/05/graphqlmap-scripting-engine-to-interact.html">GraphQLmap - A Scripting Engine To Interact With A Graphql Endpoint For Pentesting Purposes</a></p><p>2)Graphql map tool</p><p><a href="https://github.com/swisskyrepo/GraphQLmap">GitHub - swisskyrepo/GraphQLmap: GraphQLmap is a scripting engine to interact with a graphql endpoint for pentesting purposes. - Do not use for illegal testing ;)</a></p><p>3) As always your burpsuite will be your friendly companion in attacking graphql api</p><p>4)Extensions to improve your burpsuite -INQL</p><p><a href="https://github.com/doyensec/inql">GitHub - doyensec/inql: InQL is a robust, open-source Burp Suite extension for advanced GraphQL testing, offering intuitive vulnerability detection, customizable scans, and seamless Burp integration.</a></p><h4>Know More about GRAPHQL</h4><p><a href="https://graphql.org/">GraphQL | A query language for your API</a></p><h4>Reference Reports for graphql</h4><ul><li><a href="https://hackerone.com/reports/614355">GitLab disclosed on HackerOne: GraphQL query &quot;namespace&quot; leaks data</a></li><li><a href="https://hackerone.com/reports/885539">Twitter disclosed on HackerOne: Private list members disclosure via...</a></li><li><a href="https://hackerone.com/reports/633001">GitLab disclosed on HackerOne: Private System Note Disclosure using...</a></li><li><a href="https://hackerone.com/reports/981472">Shopify disclosed on HackerOne: Undocumented `fileCopy` GraphQL API</a></li><li><a href="https://hackerone.com/reports/423388">Shopify disclosed on HackerOne: H1514 Get access to non public...</a></li><li><a href="https://www.hackerone.com/resources/security-at-2020/security-2020-a-hackers-guide-to-shopifys-graphql-api">Security@ 2020: A Hacker&#39;s Guide to Shopify&#39;s GraphQL API</a></li><li><a href="https://hackerone.com/reports/435066">HackerOne disclosed on HackerOne: SQL injection in GraphQL endpoint...</a></li></ul><h4>Blogs to hack graphql briefly</h4><p><a href="https://blog.doyensec.com/2021/05/20/graphql-csrf.html">That single GraphQL issue that you keep missing</a></p><p>I hope this writeup helped you to understand about graphql api and how to hack it</p><p>Give some claps if you find it useful</p><p>Thankyou!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbc64cd2a917" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>