<?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 Faique on Medium]]></title>
        <description><![CDATA[Stories by Faique on Medium]]></description>
        <link>https://medium.com/@faique?source=rss-37bacdeff874------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Au-zV7w1ZEOy2HmvsBdVlQ.jpeg</url>
            <title>Stories by Faique on Medium</title>
            <link>https://medium.com/@faique?source=rss-37bacdeff874------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 21:44:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@faique/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[Story of a $1k bounty — SSRF to leaking access token and other sensitive information]]></title>
            <link>https://infosecwriteups.com/story-of-a-1k-bounty-ssrf-d5c4868680f5?source=rss-37bacdeff874------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5c4868680f5</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Faique]]></dc:creator>
            <pubDate>Sat, 05 Nov 2022 09:37:44 GMT</pubDate>
            <atom:updated>2022-11-07T02:42:26.548Z</atom:updated>
            <content:encoded><![CDATA[<h3>Story of a $1k bounty — SSRF to leaking access token and other sensitive information</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SRaAGSHDsAAOREKRzgUrZA.png" /></figure><p>Hello and welcome everyone to my story of how I got my first bounty on HackerOne by exploiting an SSRF that leaked Google cloud access token and other sensitive data, Before moving forward I would like to thank this sweet community that has helped me in my overall journey.</p><p>I chose the target from my HackerOne’s private invitation list, therefore I cannot the disclose the target and so I’ll call it redacted.com. I started with recon, I created an automation tool that do my recon process like gathering subdomains, getting live hosts, running nuclei , directory brute forcing, nmap and getting waybackurls etc. After my automation was done i analyzed all the data like waybackurls and others.</p><p>The waybackurls seemed interesting so I quickly used gf patterns to get all ssrf endpoints that could be vulnerable</p><pre>cat waybackurl | gf ssrf</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9UhQNsdiqQrr0Dk-UwFthA.jpeg" /></figure><p>As the __host field fetches some kind of data from the github, I tried testing ssrf, So I quickly opened my Burpsuite and put the burp collaborator link in the __host field and send the request, I clicked on poll now button and yes I got an HTTP interaction and the burp collaborator response was reflected on the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xq0C7QGFnzjTnN5_IOwEIQ.png" /></figure><p>I tried XSS with it by firing up an Apache server and uploading alert JavaScript payload</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CXmlDu538HoQYvnKkFrxdQ.png" /></figure><p>But i stopped because XSS won’t be so impactful and started to look for ssrf, In the __host parameter I put 169.254.169.254 and in the url I added <em>/latest/meta-data/iam/security-credentials/</em></p><pre>https://redacted.redacted.com/latest/meta-data/iam/security-credentials/?__host=169.254.169.254&amp;__proto=https</pre><p>and sent the request. But it returned <strong>502 BAD Gateway </strong>I then changed __proto value to http but it didn’t either worked.</p><p>Then I though of why not try other endpoints like google, digital ocean one’s, I took a help of a pdf that has all ssrf endpoints that I will provide down and finally google cloud endpoint gave a response other than 502.</p><p>The response contained</p><pre>Missing required header: Metadata-Flavour</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QEGNPZubmmkTExALenV6qA.png" /></figure><p>So I quickly added this header and set the value of it to Google(took help from pdf) and send the request and <em>yesss!! it did work</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v62bBUplrxEaKW1cmPkCzQ.png" /></figure><p>I then tried to get access token using</p><pre>GET /computeMetadata/v1/instance/service-accounts/default/token?__host=169.254.169.254&amp;__proto=http</pre><p>I screamed woah!! I got it, SSRF achieved :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-me3cdM6AddIJOzuidbWXQ.jpeg" /></figure><p>I tried and got other details like scopes, emails, region and id etc.</p><h4>Reporting</h4><p>I reported the vulnerability with all the Pocs and waited until next day, they responded &amp; acknowledged it as a cool finding and rewarded me with $1000 bounty</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VcH5JxBZe8ewQmsrHhg2pA.png" /></figure><blockquote>PDF: <a href="https://github.com/faiqu3/ssrf/blob/main/SSRF.pdf">SSRF.pdf</a></blockquote><p>Thank you for reading till here, I hope you guys learned something new from the write up. If you enjoyed make sure to give a clap and follow me on:</p><h4>Twitter: <a href="https://twitter.com/imfaiqu3">https://twitter.com/imfaiqu3</a></h4><h4>Instagram: <a href="https://www.instagram.com/faique.exe">https://www.instagram.com/faique.exe</a></h4><h4>LinkedIn: <a href="https://www.linkedin.com/in/faiqu3/">https://www.linkedin.com/in/faiqu3/</a></h4><h4>From Infosec Writeups: A lot is coming up in the Infosec every day that it’s hard to keep up with. <a href="https://weekly.infosecwriteups.com/">Join our weekly newsletter</a> to get all the latest Infosec trends in the form of 5 articles, 4 Threads, 3 videos, 2 GitHub Repos and tools, and 1 job alert for FREE!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5c4868680f5" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/story-of-a-1k-bounty-ssrf-d5c4868680f5">Story of a $1k bounty — SSRF to leaking access token and other sensitive information</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[Account takeover worth $1000]]></title>
            <link>https://infosecwriteups.com/account-takeover-worth-1000-611452063cf?source=rss-37bacdeff874------2</link>
            <guid isPermaLink="false">https://medium.com/p/611452063cf</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[infosec-write-ups]]></category>
            <category><![CDATA[infosecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Faique]]></dc:creator>
            <pubDate>Fri, 19 Aug 2022 17:40:02 GMT</pubDate>
            <atom:updated>2022-11-05T09:49:49.206Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aD3vGKi64LRcyyxB5pzeTA.jpeg" /></figure><h3>Introduction</h3><blockquote><em>Hello everyone, I am Faique a bug bounty hunter from India and I welcome you to my write-up on how I got an account takeover in one of the largest organizations using misconfigured 2FA and OAuth.</em></blockquote><p>I cannot disclose that target because it was a private invite. Before getting into the vulnerability I want you to get a foothold on how everything works especially authentication this will help you to understand the bug more clearly. There are multiple ways to sign in to the website but they can be categorized in two ways, First using normal email and password and the other is by using OAuth which includes Google, GitHub and …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*gDlUrd38cBFQ8LAmnhJVFQ.png" /></figure><p>A security feature that the website has is 2FA which played a major role in this bug. A customer can use it to add an extra security layer. Now let’s come to the procedure and the bug.</p><p>I started with basic recon but didn’t find anything. So I moved toward authentication testing, created an account and tested for duplicate registration, forgot password bugs, SQL injection and so on. Then I enabled 2FA and brute-forced the 2FA code I tried this with both email,password login and with Oauth login but nothing worked:(</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*loD8TJyvcrN6e2f3o6VWCg.png" /></figure><p>Next day I enabled 2FA on google oauth account and intercepted every request and send juicy one to repeater like when the website send 2FA code to the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xcGcrzw-IkbazZciS5KgQw.png" /></figure><p>I tested for some more 2FA bugs and then got fed up and stopped 2FA on the account, Then meanwhile after I was going to all my repeater requests I got stumbled on the above request again and sent that again and received a JWT token I thought why not change the authenticator code with some random code like 000000 and send the request again and guess what I received the JWT token</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V3MgCr_uo7OUdB4rfXQnuA.png" /></figure><p>Even after disabling 2FA on the account, I was able to get a JWT code using this request. This JWT token is basically the cookie that is used to authenticate users. To confirm this was actually a vulnerability I waited 1 day and then send the request again and yeah I received the JWT token. I was so excited at that point.</p><p>I just needed a way to directly login to the hacked account. So I started browsing the website logged in and I saw there was a feature to set password to the oauth account so that anyone can login using email &amp; password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*eZKrGhgyRoEV-XO0Iq3fcA.png" /></figure><p>I used set password request and replaced the JWT token to the one i received and send it.The password got added.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6FpzJUwOZhnhtlYMHbaYpw.png" /></figure><p>I can now login directly using the email and password bypassing oauth headache. This bug not only affect google oauth login but affects all oauth provider used by the site: GitHub, Microsoft, Bitbucket, Azure active directory</p><p><strong>Note</strong>: The bug is only possible if the customer had enabled and then disabled 2FA on their account</p><blockquote><strong><em>Impact:</em></strong></blockquote><blockquote><em>Once the attacker has access to the account</em></blockquote><blockquote><em>1. Attacker can see, and edit confidential details like API keys</em></blockquote><blockquote><em>2. Edit organisation &amp; product names</em></blockquote><blockquote><em>3. Invite members to the account</em></blockquote><blockquote><em>4. Remove users from the organisation</em></blockquote><blockquote><em>5. Add a password to the account</em></blockquote><blockquote><em>6. Delete the account</em></blockquote><p>Reported the bug to the site</p><blockquote><strong><em>Timeline</em></strong></blockquote><blockquote>00:09, 1 August:<em> Reported the bug</em></blockquote><blockquote>02:20, 1 August:<em> First rejected as they though this is false positive</em></blockquote><blockquote>03:00, 1 August:<em> Accepted it and asked for patience</em></blockquote><blockquote>01:20, 5 August:<em> Marked the bug as high business critical security issue and offered me $1000</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*mS659Kf5nx1ZU_NVfTMfaQ.jpeg" /></figure><h4><em>Thank you for reading till here I hope you enjoyed and learned something new from it. Feel free to Dm me if you have any query</em></h4><h4><em>Follow me on</em></h4><h4><em>Twitter: </em><a href="https://twitter.com/imfaiqu3"><em>https://twitter.com/imfaiqu3</em></a></h4><h4><em>Instagram: </em><a href="https://www.instagram.com/faique.exe">https://www.instagram.com/faique.exe</a></h4><h4><em>LinkedIn: </em><a href="https://www.linkedin.com/in/faiqu3/"><em>https://www.linkedin.com/in/faiqu3/</em></a></h4><p><em>From Infosec Writeups: A lot is coming up in the Infosec every day that it’s hard to keep up with. </em><a href="https://weekly.infosecwriteups.com/"><strong><em>Join our weekly newsletter</em></strong></a><em> to get all the latest Infosec trends in the form of 5 articles, 4 Threads, 3 videos, 2 Github Repos and tools, and 1 job alert for FREE!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=611452063cf" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/account-takeover-worth-1000-611452063cf">Account takeover worth $1000</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[First Bug Bounty from DOS: Taking the service down]]></title>
            <link>https://infosecwriteups.com/first-bug-bounty-from-dos-taking-the-service-down-30f9ad4e0246?source=rss-37bacdeff874------2</link>
            <guid isPermaLink="false">https://medium.com/p/30f9ad4e0246</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Faique]]></dc:creator>
            <pubDate>Sat, 16 Jul 2022 17:53:56 GMT</pubDate>
            <atom:updated>2023-03-19T16:57:07.932Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction</strong></h3><blockquote><em>Hello friends, This is Faique, a security researcher &amp; an ethical hacker from India, and this is a journey to my first bug bounty.<br>I can understand the pain and struggle newbie hunters face as I have gone through it. The past couple of months were not good for me as I was on bug bounties for almost a year but didn’t get any concrete results out of it, so this situation gave me a feeling of giving up, But yeah I stayed and the result is in front of you. For all newbie hunters, I have pro tips and resources for you at the bottom but for now, enjoy my write-up✌️</em></blockquote><p>Found the target using google dorking, The target was similar to google map and had multiple domains in scope like</p><ul><li>*.target.com</li><li>*.target.net</li><li>*.target.me</li></ul><p>First of all, I gathered all subdomains and did some basic recon. Then I started to hunt for functionality-level bugs and didn’t find any. I got frustrated;( and stopped hunting that day.</p><p>The next day I grabbed a cup of coffee, did meditation and started to hunt again, gathered all waybackurls of domains, On analyzing the waybackurls I found <em>photos.target.me </em>domain had strange Urls, the link had width, height and q in the parameter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fNr_KAXb63ERTI9aqNatkA.png" /></figure><p>I quickly opened my Burp suite, Intercepted the request and send it to the repeater. So I could work more properly. I changed the parameter value of height and width from 500 to something very high like 1000000000000000000 and q value to 1000 and sent the request, After sending the request the response took too long to come. my hacker brain said to repeat this process multiple times and So I sent the request to intruder and set payload type to null payloads and the value of it to 1000</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vi8K6XbvjrGeSjnPToSUFg.png" /></figure><p>After some requests, I started to get 502 &amp; 503 errors. At that point I knew it is a DOS but to confirm that the service actually stopped working, I opened <em>photos.target.me</em> from other network and actually the website returned error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fJsu3ba2_EsIkHJwbb18iQ.png" /></figure><p>I was nervous as the service stopped working for around 10–15 mins and this could lead me to trouble as this service was used to fetch user images and all other images used in the sites *target.com, *target.net, But thankfully the service restarted to work.</p><p>I stopped hunting as I didn’t want any trouble and Reported the bug and after around 3 days I got response from them</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*r3lABXtd-3qAVrxN2JKJCQ.jpeg" /></figure><h4><strong>Pro Tips:</strong></h4><ul><li>Hunt using dork, Dork I use <a href="https://github.com/sushiwushi/bug-bounty-dorks/blob/master/dorks.txt">https://github.com/sushiwushi/bug-bounty-dorks/blob/master/dorks.txt</a></li><li>Don’t force yourself to do bug hunting</li><li>Go for both manual and automated hunting</li><li>Follow me on twitter as I’ll help you achieve it: <a href="https://twitter.com/imfaiqu3">https://twitter.com/imfaiqu3</a></li></ul><h4><strong>Resources:</strong></h4><p><strong>Youtube channels</strong>: <a href="https://www.youtube.com/c/RanaKhalil101">RanaKhalil101</a>, <a href="https://www.youtube.com/channel/UCDl4jpAVAezUdzsDBDDTGsQ">zwik</a> ,<a href="https://www.youtube.com/c/InsiderPhD">InsiderPhD</a>, <a href="https://www.youtube.com/c/FarahHawa">FarahHawa</a>, <a href="https://www.youtube.com/channel/UCUCmz3fKMZpYPDNfHZh3alg">orwaatyat</a>, etc.</p><p><strong>Labs:</strong> <a href="https://portswigger.net/">portswigger</a>, <a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwiRyIvp6_34AhVw1zgGHXEjB4sQFnoECBMQAQ&amp;url=https%3A%2F%2Fwww.hackthebox.com%2F&amp;usg=AOvVaw0PVHn4XV1bDTqGHH0aqRYz">hackthebox</a>, <a href="https://pentesterlab.com/">pentesterlab</a></p><blockquote><em>Thanks for reading! Feel free to Dm me on Instagram or Twitter!</em></blockquote><p>Instagram: <a href="https://www.instagram.com/faique.exe/">https://www.instagram.com/faique.exe</a></p><p>Twitter: <a href="https://twitter.com/imfaiqu3">https://twitter.com/imfaiqu3</a></p><p>GitHub: <a href="https://github.com/faiqu3/">https://github.com/faiqu3/</a></p><p><em>From Infosec Writeups: A lot is coming up in the Infosec every day that it’s hard to keep up with. </em><a href="https://weekly.infosecwriteups.com/"><strong><em>Join our weekly newsletter</em></strong></a><em> to get all the latest Infosec trends in the form of 5 articles, 4 Threads, 3 videos, 2 Github Repos and tools, and 1 job alert for FREE!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30f9ad4e0246" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/first-bug-bounty-from-dos-taking-the-service-down-30f9ad4e0246">First Bug Bounty from DOS: Taking the service down</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>
    </channel>
</rss>