<?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 K on Medium]]></title>
        <description><![CDATA[Stories by Shivam K on Medium]]></description>
        <link>https://medium.com/@sechunter?source=rss-a5a3585f2b17------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qF47TtWstfS--fvEHfHJkA.jpeg</url>
            <title>Stories by Shivam K on Medium</title>
            <link>https://medium.com/@sechunter?source=rss-a5a3585f2b17------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 12:48:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sechunter/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[JS is love ❤️.]]></title>
            <link>https://sechunter.medium.com/js-is-love-%EF%B8%8F-ca393a4849e9?source=rss-a5a3585f2b17------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca393a4849e9</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Shivam K]]></dc:creator>
            <pubDate>Fri, 09 Oct 2020 06:50:53 GMT</pubDate>
            <atom:updated>2020-10-09T12:51:02.529Z</atom:updated>
            <content:encoded><![CDATA[<h3>JS is l0ve ❤️.</h3><p>Hello Everyone (Ram Ram Ji),</p><p>In this article, I will share one of my recent finding which is basically related to JS files. In which, i will tell you that how these JS files will help you to find a High Severity bugs.</p><p>If you are too lazy then I suggest you please use this tool i.e LinkFinder. It’s a tool to discover JS endpoints which is written by GerbenJavado. You can find it here, <a href="https://github.com/GerbenJavado/LinkFinder">LinkFinder</a>.</p><p>But, I personally prefer doing this stuff as manually. Because sometimes Automated tools don’t come out useful &amp; they skipped out some important things. So, Let’s get Started.</p><h3>Phase 1: Extracting JS Files &amp; Beautify them :</h3><ol><li>Extract JS Files from source code of redacted.com</li><li>Bash I used for extracting .js files using <a href="https://github.com/tomnomnom/waybackurls"><strong>waybackurl</strong></a>:</li></ol><blockquote>Extraction(){</blockquote><blockquote>waybackurl $1| grep -iE “\.js$” | uniq | sort</blockquote><blockquote>}</blockquote><p>3. For Beautifying the JS Code I used <a href="https://www.npmjs.com/package/js-beautify"><strong>js-beautify</strong></a> for pretty print js code (Quite Easy).</p><blockquote>js-beautify &lt;file.js&gt; | tee -a &lt;beautify.js&gt;</blockquote><p>You can install it from the given link below:</p><p><a href="https://www.npmjs.com/package/js-beautify">js-beautify</a></p><h3>Phase 2: Searching for Patterns &amp; Endpoints in JS files:</h3><ol><li>These are few patterns that i use while reading any JS file.</li></ol><blockquote>{api_key, api-key, apikey , api , access , AccessToken , gmap , gmaps , algolia_api_key , credentials, etc..}</blockquote><p>2. Mapping of Endpoints that you found while reading the JS file. <strong>(Important one)</strong></p><p>3. Most of the bug hunter’s skip the second point just because they can’t map out the correct endpoints which leads to high severity security bugs &amp; loses their chances to getting High severity bugs.</p><blockquote><strong>NOTE:</strong> Read every path and try to mapping that endpoints until you succeed. Because JS file contains all the solutions related to mapping of endpoints.</blockquote><h3>Phase 3. Searching for Respective Documentation:</h3><ol><li>If you found any Rest-Api-Key then go for it’s Api Documentation (search on google about respective Api docs) &amp; understand how it works &amp; how you will use it to gain access of target system.</li><li><a href="https://github.com/streaak/keyhacks"><strong>Keyhacks</strong></a> (This will help you for quick exploitation. Because this Repository contain’s 50+ Working Exploitable Endpoints of Different Rest-API-Keys).</li></ol><blockquote>Now, lets take a look at my disclosed report where i found a HelpShift-Rest-Api-Key using that i can modified the content of accounts &amp; also i can delete the accounts of redacted.com</blockquote><h3>Steps to Reproduce (Acc. to Report):</h3><h4>Finding API Key:</h4><ol><li>Go to “<a href="https://redacted.com/dist/main.7be5c75d761008c183e6.min.js">https://redacted.com/dist/main.7be5c75d761008c183e6.min.js</a>&quot;.</li><li>Analyzing the JS Code &amp; you will found base64 value in HelfShiftApiKey parameter.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*tdmtjQJW4kqcepfl-cd0OA.png" /><figcaption>HelpShift Rest API Key</figcaption></figure><h4>Full Exploitation:</h4><ol><li>Go to “<a href="https://apidocs.helpshift.com/">https://apidocs.helpshift.com</a>&quot; &amp; Enter Required details that is needed.</li><li>You got Swagger API &amp; Successfully Logged In. Now do whatever you want to do.</li></ol><p>Note: You can also use curl command :</p><blockquote>curl -X PUT — header ‘Content-Type: application/x-www-form-urlencoded’ — header ‘Accept: application/json’ — header ‘Authorization: Basic &lt;base64_API_Key&gt;’ -d ‘username=&lt;username&gt;’ ‘<a href="https://api-a.helpshift.com/v1/">https://api-a.helpshift.com/v1/</a>&lt;domain_name&gt;/users/&lt;profile_id&gt;&#39;</blockquote><p>you can get all profile id’s from getUser query.</p><h3>Timeline:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*teRF1ZmnCAq5ESsE6qqCsw.png" /><figcaption>Bounty Rewarded</figcaption></figure><p>Sept 26, 2020 — Reported to private program<br>Sept 26, 2020 — Report Triaged<br>Sept 29, 2020 — Vulnerability Fixed <br>Oct 08, 2020 — Bounty of $5000 USD awarded</p><p>Special thanks to <a href="https://twitter.com/nullr3x">nullr3x</a> for this (Big Bad Brother 🤑)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca393a4849e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ATO via Host Header Poisoning]]></title>
            <link>https://sechunter.medium.com/ato-via-host-header-poisoning-dc5c29d2fd0d?source=rss-a5a3585f2b17------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc5c29d2fd0d</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[account-takeover]]></category>
            <dc:creator><![CDATA[Shivam K]]></dc:creator>
            <pubDate>Thu, 08 Oct 2020 13:04:19 GMT</pubDate>
            <atom:updated>2020-10-08T13:04:19.911Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Everyone (Ram Ram Ji),</p><p>This article is about an account takeover bug via host header poisoning. Redacted.com was vulnerable to host header injection in which remote attackers can exploit it to takeover any account of redacted.com.</p><h3>Attacking Scenario:</h3><p>As an attacker, I modified the POST request in which first I change the value of the Host header to evil.com but nothing happened then I add the X-Forwarded-Host header with evil.com value again nothing happened. It was my third attempt now, this time I changed the value of the Referrer header too and put the same value as the X-Forwarded-Host header value and it got worked for me.</p><h4>Request was looked like:</h4><blockquote>POST /forgot HTTP/1.1<br>Host: redacted.com<br>X-Forwarded-Host: evil.com<br>Referrer: <a href="https://evil.com/">https://evil.com</a></blockquote><blockquote>username=&lt;username&gt;&amp;_csrf_token=5905477eb5efbc742cb051b922df433a775ae92e</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0XH2kTAeOPrHLk7o1QfPoA.png" /><figcaption>Request Looks Like</figcaption></figure><p>After sending the request I got email with host as evil.com looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*vLi6piBzOm8wFSPWdDxsMA.png" /><figcaption>Got email with malicious host</figcaption></figure><h3>Step to Reproduce (Acc. to Report):</h3><ol><li>Navigate to “​<a href="https://redacted.com/forgot">https://redacted.com/forgot</a>&quot;.</li><li>Then enter your username &amp; intercept that request with the help of Burp Suite.</li><li>Now add these two headers into the POST request:</li></ol><blockquote>X-Forwarded-Host: evil.com<br>Referrer: https://evil.com</blockquote><p>4. Now forward that request and check your email that is linked with your username.</p><h3>Timeline:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*9fLHEFCqtfvOHthnYWs9QA.png" /><figcaption>Bounty Rewarded</figcaption></figure><p>June 26, 2019 — Reported to private program<br>August 01, 2019 — Report Triaged<br>August 08, 2019 — Bounty of $2000 USD awarded<br>October 24, 2019 — Vulnerability fixed</p><p>Special thanks to <a href="https://twitter.com/nullr3x">nullr3x</a> (Big Bad Brother 🤑 )</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc5c29d2fd0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploiting Admin Panel Like a Boss]]></title>
            <link>https://sechunter.medium.com/exploiting-admin-panel-like-a-boss-fc2dd2499d31?source=rss-a5a3585f2b17------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc2dd2499d31</guid>
            <category><![CDATA[admin-panel]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bypass]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Shivam K]]></dc:creator>
            <pubDate>Thu, 08 Oct 2020 11:19:42 GMT</pubDate>
            <atom:updated>2020-10-08T11:39:19.801Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Everyone (Ram Ram Ji),</p><p>Today I wanna talk about one of my unique &amp; quickest finding on HackerOne’s Private Program. It was all about an Admin Panel Access. So let’s get started.</p><h3>Scenario:</h3><h4>1) Bypassing Scenario for admin login page:</h4><p>I picked up one of their assets from that program and while accessing that URL i simply put /admin directory at the end of that asset. I got a 403 error on that page. So I thought why not to give a shot to bypass that 403 error after that, I perform some techniques to bypass that 403 error but no success. Later, I thought why not change the host header value of that request. Then what I was noticed that the 403 error disappeared and Admin Panel Login Page appears with 200 Ok status code.</p><h4>Request was looked like:</h4><h4>Original Request/Response:</h4><p>GET /admin HTTP/1.1 <br> Host: redacted.com</p><p>HTTP/1.1 403 Forbidden<br>Access Denied</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-xZ8H__gr_jwC4XEu9aN5w.jpeg" /><figcaption>Access Denied | Forbidden Page</figcaption></figure><h4>Modified Request/Response (Bypass):</h4><p>GET /admin HTTP/1.1 <br> Host: google.com</p><p>HTTP/1.1 200 Ok<br> Admin Panel Login Page(Source Code)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*Z9YtEauv25ybBcKEa5YMJA.png" /><figcaption>200 OK with Wrong Credentials</figcaption></figure><h4>2) Accessing the admin panel:</h4><p>This is a favorite part of my finding. Well, whenever I testing any admin panel my first priority is that I always enter admin admin as username &amp; password, and luckily this thing works here and I got access to the admin panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*rIzvMlzO22wqjtUNX9t7sA.png" /><figcaption>Admin Panel Access</figcaption></figure><h3>Steps to Reproduce (According to Report):</h3><ol><li>Navigate to “​<a href="https://redacted.com/admin">https://redacted.com/admin</a>&quot; give (403 error).</li><li>Then intercept that request with the help of Burp Suite.</li><li>After intercept that request simply change the host header value from redacted.com to​​ google.com &amp; hit Go.</li><li>You will found that the server does not validate that request properly. It simply opens up an admin panel login page.</li><li>Now Error Changes into 403 Forbidden to 200 OK (Bypassing Done)</li><li>But now I don’t have the right credentials to get access to the admin panel.</li><li>Luckily I tried ‘admin’ as a username and ‘admin’ as a password.</li><li>Got Success.</li></ol><h3>Timeline:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*-Z9jgRi3wnCAW9M4ryvcdw.png" /><figcaption>Bounty Reward</figcaption></figure><p>June 30, 2018 — Reported to Private Program<br>June 30, 2018 — Report Triaged<br>July 05, 2018 — Vulnerability fixed<br>July 22, 2018 — Bounty of $1500 USD awarded</p><p>Special thanks to <a href="https://twitter.com/nullr3x">nullr3x</a> (Big Bad Bro 🤑)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc2dd2499d31" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>