<?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 Bilal Khan on Medium]]></title>
        <description><![CDATA[Stories by Bilal Khan on Medium]]></description>
        <link>https://medium.com/@bilalmerokhel?source=rss-d11a5a46a7a4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uu0DTIXzoxBw7R-Z6CEj7w.jpeg</url>
            <title>Stories by Bilal Khan on Medium</title>
            <link>https://medium.com/@bilalmerokhel?source=rss-d11a5a46a7a4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 15 Nov 2026 00:14:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bilalmerokhel/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[Pakistan’s Dirty Politics: Why Emigration is Not the Solution]]></title>
            <link>https://bilalmerokhel.medium.com/pakistans-dirty-politics-why-emigration-is-not-the-solution-36d09c909ecd?source=rss-d11a5a46a7a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/36d09c909ecd</guid>
            <category><![CDATA[corruption-in-pakistan]]></category>
            <category><![CDATA[pakistan-politics]]></category>
            <category><![CDATA[pakistan-economy]]></category>
            <category><![CDATA[pakistan]]></category>
            <category><![CDATA[corruption]]></category>
            <dc:creator><![CDATA[Bilal Khan]]></dc:creator>
            <pubDate>Wed, 15 Feb 2023 22:45:22 GMT</pubDate>
            <atom:updated>2023-02-15T22:45:22.882Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*F92W3FWpG31BeYTaSItdMA.jpeg" /></figure><p>Pakistan has seen a significant number of its citizens emigrating to other countries in recent years, and one of the main reasons for this has been the country’s dirty politics. The constant infighting, corruption, and lack of accountability among the political elite have made life difficult for ordinary citizens, leading many to seek a better future elsewhere.</p><p>However, leaving Pakistan is not a solution to the country’s problems. It is the responsibility of the government and the people of Pakistan to work towards a brighter future for their nation. This can be achieved through a combination of political reforms, greater accountability, and a focus on economic development.</p><p>One of the key reasons why people leave Pakistan is the lack of job opportunities and economic development. Pakistan has a young and rapidly growing population, but the country has been unable to create enough jobs to meet the needs of its people. As a result, many young and talented individuals are forced to look for work in other countries.</p><p>To address this issue, the Pakistani government needs to prioritize economic development and job creation. This can be achieved through policies that promote entrepreneurship, investment, and the growth of small and medium-sized businesses. In addition, the government should invest in education and vocational training to equip its citizens with the skills they need to succeed in the modern economy.</p><p>Another reason why people leave Pakistan is the corruption and lack of accountability among the political elite. The country has a long history of political scandals and controversies, and many people feel that their voices are not being heard or that their votes do not matter. This lack of accountability has led to a sense of frustration and disillusionment among the people of Pakistan.</p><p>To address this issue, the government needs to implement political reforms that promote greater transparency and accountability. This can be achieved through measures such as strengthening anti-corruption laws, promoting freedom of the press and speech, and creating independent oversight bodies to monitor the actions of elected officials. In addition, the government should work to restore public trust in the political process by engaging with citizens, listening to their concerns, and taking concrete steps to address their needs.</p><p>Finally, it is important to recognize that leaving Pakistan is not a solution to the country’s problems. Emigration can have a devastating impact on families and communities, and it can lead to a brain drain that undermines the country’s long-term economic and social development. Instead of leaving, the people of Pakistan need to work together to build a brighter future for their nation.</p><p>In conclusion, the dirty politics of Pakistan have driven many of its citizens to emigrate in search of a better life. However, leaving is not a solution to the country’s problems. Instead, the government and people of Pakistan need to work together to promote economic development, political reform, and greater accountability. By doing so, they can build a stronger, more prosperous, and more democratic nation that can provide a better future for all of its citizens.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36d09c909ecd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One Param => $10k]]></title>
            <link>https://bilalmerokhel.medium.com/one-param-10k-9d80a33f5eb5?source=rss-d11a5a46a7a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d80a33f5eb5</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Bilal Khan]]></dc:creator>
            <pubDate>Sun, 17 May 2020 18:46:54 GMT</pubDate>
            <atom:updated>2020-05-17T18:46:54.521Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everyone, 8 months before I was invited to a private program on BugCrowd, where I reported 8 bugs and all of them were marked as duplicate. I was so depressed. I left that program and started hunting other programs on BugCrowd. After 8 months I got an email saying the following bugs have been resolved, I just ignored that email, at that time I was hunting a private program, suddenly I just thought let&#39;s give it a try and see if the bugs are really fixed. I fired up my burp suite and started digging.</p><h3>About the web-application</h3><p>The web application was built on react, there was role-based authentication, they were using <a href="https://swagger.io/docs/specification/authentication/bearer-authentication/">Bearer Authentication</a>, which means no chance for CSRF, CORS etc.</p><h3>Param</h3><p>I found nothing, I was going through my burp HTTP history, saw an endpoint where a lot of parameters were there, I thought let&#39;s try each parameter in every request and see what happens, I didn’t even know what I will end up with. I tried the parameters in every request in <strong>GET</strong> and <strong>POST</strong>. found nothing then I realize, let&#39;s save them in a file and make a wordlist of it and then try them on their <strong>API</strong>. there was an HTTP request like this.</p><pre>GET /v2/ HTTP/1.1<br>Host: api.redacted.com<br>Connection: close<br>Content-Length: 159<br>Accept: application/json, text/plain, */*<br>authorization: Bearer {token}<br>x-redacted-client: web/7.80.0<br>x-connection-id: 94881378-e4dsb-4cf4-8569-fb5e434223b61<br>User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36<br>Content-Type: application/json;charset=UTF-8<br>Origin: https://api.redacted.com<br>Sec-Fetch-Site: same-site<br>Sec-Fetch-Mode: cors<br>Sec-Fetch-Dest: empty<br>Accept-Encoding: gzip, deflate<br>Accept-Language: en-GB,en-US;q=0.9,en;q=0.8</pre><p>Now here I had to use my brain more because every request has their own method and parameters, what to be done in every request?. I send the request to the intruder and select the positions like this.</p><pre>§CHECK§ /v2/§one§?§two§=§three§ HTTP/1.1<br>Host: api.reacted.com<br>Connection: close<br>Accept: application/json, text/plain, */*<br>authorization: Bearer {token}<br>x-reacted-client: web/7.76.2<br>x-connection-id: 94881378-eassb-4cf4-5569-fb5as334223b61<br>User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36<br>Origin: https://app.reacted.com<br>Sec-Fetch-Site: same-site<br>Sec-Fetch-Mode: cors<br>Sec-Fetch-Dest: empty<br>Accept-Encoding: gzip, deflate<br>Accept-Language: en-GB,en-US;q=0.9,en;q=0.8</pre><p>I ran the intruder and came up with some interesting results like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9TgmT6TCnJQfNvTnsUdpmA.png" /><figcaption>Password Disclosure</figcaption></figure><p>Sorry I can not disclose the param and the company name but try to understand the scenario here.</p><p>After reporting it I got their reply with $1k bounty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P4X8gzs4wKkzQnrnsK1a_A.png" /><figcaption>1k$ bounty. but</figcaption></figure><h3>Bounty Time</h3><p>After the bounty, I thought let&#39;s try one parameter everywhere but, how about changing requests like changing GET to POST and POST to GET and just like that PUT to POST and GET, not just that let&#39;s play around with Content-Type and change the content type as application/JSON to application/x-www-form-urlencoded vice versa. The results were so surprising I got a lot of endpoints, all of them were disclosing sensitive information including passwords (plain text 😁). The parameters I used doesn&#39;t actually belong to the original request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7r2laPZJpoXfMCQ8GrDaag.png" /><figcaption>$10k ❤</figcaption></figure><p>Always go through your burp HTTP history and note every parameter make a list of it and fuzz as much as you can. Try everything in every format like if there is a <strong>GET</strong> request try that request in <strong>POST</strong>, <strong>PUT</strong>, <strong>PATCH </strong>and <strong>DELETE</strong>, play around with the content-type and you will get there ❤</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d80a33f5eb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chained Bugs [ Account TakeOver ]]]></title>
            <link>https://bilalmerokhel.medium.com/chained-bugs-account-takeover-ceff67d1d55a?source=rss-d11a5a46a7a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ceff67d1d55a</guid>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Bilal Khan]]></dc:creator>
            <pubDate>Sat, 16 May 2020 17:48:56 GMT</pubDate>
            <atom:updated>2020-05-16T17:48:56.380Z</atom:updated>
            <content:encoded><![CDATA[<p>Assalam-O-Alaikum fellas hope you all are fine, it has been a while I&#39;ve not contributed to the community so, today I will share chained bugs which led to account takeover. The program doesn&#39;t allow public disclosure so I will set the name, to <strong>chintu.com</strong>.<strong> </strong>First I will explain how I was able to get the <strong>IDOR</strong> and then how the account takeover part has taken place via <strong>XSS</strong> so, let&#39;s get started.</p><h3>Story101.</h3><p>The bug I reported was an <strong>IDOR </strong>with which, I was able to change the profile data but not the primary email which is used to login to an account, so I saw another field the <strong>secondary email</strong>,<strong> </strong>I thought maybe this email could be used to login to the account I didn’t try it and reported to the <strong>chintu.com</strong>, with the title <strong>[ Critical ] IDOR leads to Account TakeOver, </strong>After few days the report was <strong>Triaged </strong>and I was so happy, within few days I got a reply with <strong>$</strong><em>1250</em> bounty, but suddenly on the same day the <strong>ASE </strong>change the reward to <em>200</em><strong>$</strong> and set the priority to <strong>P4 </strong>and created a blocker to answer their question. the argument was.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mjvTYNMrA4GDHpx9igKqIg.png" /><figcaption>Blocker</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q6Li2Epu4YZ5sbS_oxvXLw.png" /></figure><p>I was so mad about the reward, so I started digging the application and while doing further recon and testing I came across an endpoint which was showing the latest profile points where the username was reflected and was not sanitized properly, I thought let&#39;s try <strong>XSS </strong>and I succeeded, what I did was change the username field via <strong>IDOR</strong> with the <strong>XSS</strong> payload and sent the <strong>Auth </strong>token to my server via <strong>XSS</strong>, after reporting this to the <strong>chintu.com </strong>their reply was.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FqBoCAEmiiZzOrMqd246ig.png" /><figcaption>P2 -&gt; 1050$</figcaption></figure><p>Always try harder, thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ceff67d1d55a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking Twitter for $$]]></title>
            <link>https://bilalmerokhel.medium.com/hacking-twitter-for-profit-349a7063e57a?source=rss-d11a5a46a7a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/349a7063e57a</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[bugcrowd]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[owasp]]></category>
            <dc:creator><![CDATA[Bilal Khan]]></dc:creator>
            <pubDate>Sun, 12 Jan 2020 17:00:46 GMT</pubDate>
            <atom:updated>2021-02-02T15:05:29.698Z</atom:updated>
            <content:encoded><![CDATA[<p>I was hunting with my bros for $$ and we choose a private redacted.com to hunt. After spending 2 hrs we found nothing as the redacted.com was very small, only a few of the functionalities were there so one of my friends decided to go for the API and test their backend the application backend was built upon Lua and frontend jQuery so, while scrolling down I saw social links for <strong>Facebook</strong> and <strong>Twitter. </strong>I accidentally clicked on <strong>Follow us on Twitter</strong> link and it has redirected me to the redacted.com Twitter page where the T<strong>witter</strong> said <strong>Sorry, that page doesn’t exist!</strong>.<strong> </strong>We claimed that username and wrote a tweet just for the PoC and reported it to the company it is also known as broken link hijacking.</p><figure><img alt="BugBounty" src="https://cdn-images-1.medium.com/max/1024/1*KX5sRpBFIOCxayCWrMH65g.png" /><figcaption>Social links</figcaption></figure><figure><img alt="Pentesting Bug Hunting" src="https://cdn-images-1.medium.com/max/1024/1*A1FuxmQGOrsPBev1PIJf2w.png" /><figcaption>Claimed company username</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=349a7063e57a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Breach JIO]]></title>
            <link>https://bilalmerokhel.medium.com/data-breach-jio-7a55e9624e09?source=rss-d11a5a46a7a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a55e9624e09</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[red-teaming]]></category>
            <category><![CDATA[bugcrowd]]></category>
            <dc:creator><![CDATA[Bilal Khan]]></dc:creator>
            <pubDate>Thu, 24 Oct 2019 12:41:55 GMT</pubDate>
            <atom:updated>2021-02-02T15:02:01.275Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I was testing <a href="https://www.jio.com/">JIO</a>. If you didn’t read my article “ <a href="https://medium.com/@bilalmerokhel/recon-to-network-takeover-688309b17721">Recon To Network Takeover</a> ” where I explained in details how to discover the subnet and do some Goole Dorking to find hidden assets, portals, API gateways and etc..</p><p>When I was going through their subnets I found a portal, which was for supervisors where they would log in and interact with their customer&#39;s data like their internet connections configurations, etc. Developers often make some stupid mistakes after enumerating a little bit I saw a registration page where anyone can signup as a supervisor. I signed up there as a supervisor the application was developed in NodeJS, After signing in there were few functionalities like adding devices, configuring networks, but I would have to add them first to interact with them, my instance of the portal was empty no devices or network connection details.</p><p>I decided to test the application itself for other bugs and I switched to their API started enumerating fuzzing and notice that when I visit my profile an XHR request was sent which look like this,</p><pre><a href="https://pp.boapi.cats.jvts.net/accounts/api/users/5db18183e4b00bda10cf7313?ugs_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJCT1JRUyBVR1MgU0VSVkVSIiwiaWF0IjoxNTcxOTE0Mjg4LCJqdGkiOiI1ZGIxODE4M2U0YjAwYmRhMTBjZjczMTMiLCJhdWQiOiJ1c2VyIiwiZXhwIjoxNTcyMDAwNjg4LCJzdWIiOiJVc2VyIEFjY2VzcyBUb2tlbiJ9.yQwSmzeOKRLYe7qYQi7cL5z6aOZdD0h4dt2Yh3V4AHQ&amp;tsp=1571914533638">https://redacted.redacted.redacted.jio.com/accounts/api/users/5db18183e4b00bda10cf7313?ugs_token=</a>eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c<a href="https://pp.boapi.cats.jvts.net/accounts/api/users/5db18183e4b00bda10cf7313?ugs_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJCT1JRUyBVR1MgU0VSVkVSIiwiaWF0IjoxNTcxOTE0Mjg4LCJqdGkiOiI1ZGIxODE4M2U0YjAwYmRhMTBjZjczMTMiLCJhdWQiOiJ1c2VyIiwiZXhwIjoxNTcyMDAwNjg4LCJzdWIiOiJVc2VyIEFjY2VzcyBUb2tlbiJ9.yQwSmzeOKRLYe7qYQi7cL5z6aOZdD0h4dt2Yh3V4AHQ&amp;tsp=1571914533638">&amp;tsp=1571914533638</a></pre><p>Being an N00B I first tried to make another account and think of changing the id to someone else account id and It was unexpected, what data I received!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bSUXpKeI9se9onCLnDdkgw.png" /><figcaption>Unexpected Output with OTP token and password hash</figcaption></figure><p>I was so surprised and thought what if I can bruteforce the user id’s but it was very random for me as I am not that good with cryptography so mistakenly I removed the id and sent the request and I was surprised I got some other users details but not all of the users so, I attached a limit param just guessed it like,</p><pre><a href="https://pp.boapi.cats.jvts.net/accounts/api/users/5db18183e4b00bda10cf7313?ugs_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJCT1JRUyBVR1MgU0VSVkVSIiwiaWF0IjoxNTcxOTE0Mjg4LCJqdGkiOiI1ZGIxODE4M2U0YjAwYmRhMTBjZjczMTMiLCJhdWQiOiJ1c2VyIiwiZXhwIjoxNTcyMDAwNjg4LCJzdWIiOiJVc2VyIEFjY2VzcyBUb2tlbiJ9.yQwSmzeOKRLYe7qYQi7cL5z6aOZdD0h4dt2Yh3V4AHQ&amp;tsp=1571914533638">https://redacted.redacted.redacted.jio.com/accounts/api/users/5db18183e4b00bda10cf7313?ugs_token=</a>eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c<a href="https://pp.boapi.cats.jvts.net/accounts/api/users/5db18183e4b00bda10cf7313?ugs_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJCT1JRUyBVR1MgU0VSVkVSIiwiaWF0IjoxNTcxOTE0Mjg4LCJqdGkiOiI1ZGIxODE4M2U0YjAwYmRhMTBjZjczMTMiLCJhdWQiOiJ1c2VyIiwiZXhwIjoxNTcyMDAwNjg4LCJzdWIiOiJVc2VyIEFjY2VzcyBUb2tlbiJ9.yQwSmzeOKRLYe7qYQi7cL5z6aOZdD0h4dt2Yh3V4AHQ&amp;tsp=1571914533638">&amp;tsp=1571914533638</a>&amp;limit=1000</pre><p>Got all users details each and everything, not just that, I can delete and update the user&#39;s details too by changing the request method from GET to POST or PUT and sending the DELETE request on /users will delete all the users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4o2LTSym79HREmt2HK6tMw.png" /><figcaption>Pwned them all</figcaption></figure><blockquote>Thank you for READING</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a55e9624e09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recon to network takeover]]></title>
            <link>https://bilalmerokhel.medium.com/recon-to-network-takeover-688309b17721?source=rss-d11a5a46a7a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/688309b17721</guid>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[bugcrowd]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Bilal Khan]]></dc:creator>
            <pubDate>Sat, 14 Sep 2019 19:24:23 GMT</pubDate>
            <atom:updated>2021-02-02T15:02:19.260Z</atom:updated>
            <content:encoded><![CDATA[<h3>Recon To Network Takeover</h3><h3>Disclaimer</h3><p><em>I am not responsible for any illegal actions taken by you, this guide/tutorial/blog is just for educational purposes. The content, shown in this article are permitted by the company whom I was testing.</em></p><p>I was requested by my friend to pentest a company in my country, as they offered good money, they allowed me to test each and every phase of their company. It was full scope Pentesting. There are always many options when there is full scope Pentesting it really depends on the pentester that he choose which way, I went for the network first and search their domains IP addresses and then I search that IP addresses on <a href="https://en.wikipedia.org/wiki/Regional_Internet_registry">Internet Number Registry</a>, and I was surprised they were using huge ranges of IP addresses and different types of subnets for their Infrastructure, so lets begin the hack.</p><h4>Who Got Time For Scanning/Nmap</h4><p>When you see such huge subnets and IP ranges, there is one thing that comes in mind, its gonna take a long, long time. Scanning is good options but when you want to hunt for bugs more quickly with such huge IP ranges and subnets all you need to do is to work smart.</p><h4>Gear UP</h4><p>Lets gear up our toolbox that we will need during testing you can go for the other ones but this is my gearbox, tell me if I need to add more things in there. First, we need to think of a few things here what kind of servers/services/devices etc.. we are going to face?. so here is my list when I do such Pentesting.</p><ol><li><a href="https://github.com/threat9/routersploit">Routersploit</a>.</li><li><a href="https://www.exploit-db.com/searchsploit">Searchsploit</a>.</li><li>Metasploit.</li><li>Self scripted tools.</li></ol><p>Let&#39;s Begin.</p><h4>Google Dorking The Noob Way</h4><p>If you read the blogs on the internet about the <a href="https://www.exploit-db.com/google-hacking-database">Google Dorking</a>, this is the great one I’ve found, let us consider the IP ranges and subnet as the following.</p><ol><li>N.N.80.0/20</li><li>N.N.84.0/8</li><li>N.N.48.0/16</li><li>N.N.32.0/20</li><li>N.N.0.0/12</li></ol><p>Consider N any number in your mind, but don&#39;t change it lets do some Google Dorking on these ranges. If we type this dork site:N.N.80.0 we will get no result or very few but let&#39;s use the wild card here like this site:N.N.*.* and now we have a large number of results many of which contains internally connected routers exposed to the public we can also filter the result with specific ports like this site:N.N.*.* -intext:9000 inurl:9000 this will show the result of containing the port number 9000 but, this is not that fun at all let&#39;s combine it with other dorks like this site:N.N.*.* intext:&quot;Wifi&quot; and we got wifi routers you can use other dorks with it according to your choice, but what’s next? well in my case the company was using some old devices and some devices with default credentials which includes their network firewalls, routers, IP cameras and other network devices and luckily I was able to take over the max of them. below are the screenshots please help me to learn more by giving your response on this blog, Thank You.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bE_57NRdF7SInqDd8XfulQ.png" /><figcaption>Google Dorking</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*H-_N9WFJKFDXAGNE-0qYrA.png" /><figcaption>Some more Dorking</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yCrNb2C1a7Se62rU17k4iQ.png" /><figcaption>Routersploit in action</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f6lh4-J4OHU84nJRanmoyw.png" /><figcaption>N00b</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_nuDNR0ZOW7Ynv3iAv0x3g.png" /><figcaption>N00b</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bW8MKGSEnp1k8nl--zhiWA.png" /><figcaption>N00b</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wZh5yz57hiE-tOU93HcElw.png" /><figcaption>N00b</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fxnbKFzpaagn2WOCwHSlTQ.png" /><figcaption>N00b</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Lt5K5MQYT1M_BR_pWHwPA.png" /><figcaption>Sonic Wall N00b</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EWGOpvaZYCO1WaZ2qcY7FQ.png" /><figcaption>H3C N00b</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CwVX9gaigP7Mfgt8wlY-Ow.png" /><figcaption>Aruba N00b</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KpMwyu18RVKr1dDXMwOJyw.png" /><figcaption>ABB N00b</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uL3ZT25Ns0wUzgkmM0Ri1A.png" /><figcaption>Something Extra N00b</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bac0RjodOyHOMtIPBBF3DA.png" /><figcaption>Planet N00b</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=688309b17721" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pwn Them All #BugBounty]]></title>
            <link>https://bilalmerokhel.medium.com/pwn-them-all-bugbounty-4ee60e13c83?source=rss-d11a5a46a7a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ee60e13c83</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bugcrowd]]></category>
            <dc:creator><![CDATA[Bilal Khan]]></dc:creator>
            <pubDate>Wed, 11 Sep 2019 20:07:59 GMT</pubDate>
            <atom:updated>2021-02-02T15:04:31.691Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently I was Pentesting a private program The web app was built on “<a href="http://www.rubyonrails.org/"><em>Ruby on Rails</em></a><em>”, </em>I was testing ‘forgot password’ functionality, of course, why not?</p><p>I was surprised when I saw that the endpoint was vulnerable to Host-Header Injection so, here are the steps of how I was able to exploit it. First I fired up python local server running on port 8080 along with ngrok on port 80</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P4Hu-NkBwDSwo5n62tWGAg.jpeg" /><figcaption>python server with ngrok</figcaption></figure><p>I fired up my burp and firefox typed the URL again to capture the request for further testing. I typed my email in the forgot password form, when I intercept the request first I tried every header like</p><pre>X-Host: evil.com<br>X-Server: evil.com<br>X-Forwarded-For: evil.com<br>X-Forwarded-Host: evil.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*41pIXUwv8_5PVy6TXT1DwQ.png" /><figcaption>password reset form</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SbUi6EdEOFBh-SSrrHSHFg.png" /><figcaption>captured request</figcaption></figure><p>I tried every header and the one which worked for me here was</p><pre>X-Forwarded-Host: evil.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pkRS6-GLn2oUPa3BYdsAEA.png" /><figcaption>confirmation</figcaption></figure><p>Got confirmation about the email has been sent to my email</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Eg9m_FGbckBHY3mlyhmxQ.png" /><figcaption>the host changed to mine host</figcaption></figure><p>Original Host replaced by the evil host (ngrok/mine host). Now victims click the link and I GET a request with the password token of the user</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9CsQ6S-WdY89BKEuFhYPcQ.png" /><figcaption>victims click and code sent to my server</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ee60e13c83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Client ==> Firewall Access]]></title>
            <link>https://bilalmerokhel.medium.com/client-firewall-access-4dff7043875e?source=rss-d11a5a46a7a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4dff7043875e</guid>
            <category><![CDATA[live-chat-agent]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[social-engineering]]></category>
            <category><![CDATA[e-commerce-business]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Bilal Khan]]></dc:creator>
            <pubDate>Wed, 05 Sep 2018 09:11:41 GMT</pubDate>
            <atom:updated>2021-02-02T15:06:54.585Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently I ordered two juicer machines from <a href="http://www.daraz.pk/">Daraz</a>. I got delivery within 12 days, when I opened my package there were two juicer machines, the juicer jugs of both were cracked and one was broken totally. I searched on YouTube about <a href="http://www.daraz.pk/">Daraz</a> there is a list of unhappy customers complaining about their experience with <a href="http://www.daraz.pk/">Daraz</a>.</p><p>Later sometime I visited <a href="http://www.daraz.pk/">Daraz</a> and wrote a complaint feedback about my experience and within 2 days I got a call from customer care telling me about their 7 days refund policy which they didn’t mention clearly on their web app. Well, I was browsing YouTube and saw an e-commerce platform goto.com.pk Ad, mistakenly I typed goto.pk instead of goto.com.pk and I saw a URL shortener service.</p><p>I thought something evil, I fired up my Terminal, switched to beef, configured my no-IP, forward my port and shorten my hooked URL with goto.pk, and I got something like “<a href="http://goto.pk/5wcdw">http://goto.pk/5wcdw</a>”. So, Continue to <a href="http://www.daraz.pk/">Daraz</a> I saw a live chat agent, well I thought it an awesome opportunity to test, I start a live chat session with one of their agents.</p><p>I asked him about some products if they are available on <a href="http://www.daraz.pk/">Daraz</a>, the agent told me to send the link to that product, finally he clicked on that link and I got his browser there was nothing interesting but one thing which was not good for them as I got access to their network firewall <em>( pfsense =&gt; firewall/router )</em> .</p><p>The methodology was, I scanned that public IP and noticed that port 80 is open which was pointing me to the pfsense admin interface as a n00b I tried <strong>admin/admin</strong>, <strong>admin/password</strong> and all common usernames and passwords, nothing happened but then google helped me with the default credentials for pfsense <strong>admin/pfsense</strong> and believe me I got access to their firewall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hTkBCUW5FD8OQEpje8TJaQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zQ6Ln-OfQ_d0nJ2QjMwrQg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4dff7043875e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>