<?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 Shantanu Kulkarni on Medium]]></title>
        <description><![CDATA[Stories by Shantanu Kulkarni on Medium]]></description>
        <link>https://medium.com/@0xshantanukul?source=rss-91bc6f74a2a0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RpDBM4rCib3_-YvTRm1QHQ.jpeg</url>
            <title>Stories by Shantanu Kulkarni on Medium</title>
            <link>https://medium.com/@0xshantanukul?source=rss-91bc6f74a2a0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:46:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@0xshantanukul/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[HackTheBox — Spectra Machine Walkthrough]]></title>
            <link>https://infosecwriteups.com/hackthebox-spectra-machine-walkthrough-9339f01b65a0?source=rss-91bc6f74a2a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9339f01b65a0</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[spectra]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Shantanu Kulkarni]]></dc:creator>
            <pubDate>Fri, 02 Jul 2021 18:17:44 GMT</pubDate>
            <atom:updated>2021-07-04T07:30:10.459Z</atom:updated>
            <content:encoded><![CDATA[<h3>HackTheBox — Spectra Machine Walkthrough</h3><p>Hello all great hackers and penetration testers out there. My name is <a href="https://twitter.com/0xShantanuKul"><strong>Shantanu Kulkarni</strong></a>. I am <strong>Security Consultant</strong> and part time <strong>Bug Bounty Hunter</strong>. Recently I have started solving machines on HTB and I was able to pwned <strong>Spectra Machine</strong>. As this Machine is retired now, so I would like to tell you about how I was able to get root access of this machine. Lets start without wasting time.</p><p><strong>Reconnaissance:</strong></p><p>As always we start with checking open ports and running services using NMAP. So I started to scan the target as follows:</p><figure><img alt="NMAP Scan" src="https://cdn-images-1.medium.com/max/915/1*RHTmXvzI66xbnJwP6Qrnbg.png" /><figcaption>NMAP results</figcaption></figure><p>According to NMAP results, P<strong>ort 80</strong> is open so there must be Web application running on the target. Port <strong>22 is for SSH</strong>. So immediately I put an IP in browser and opened a Web APP.</p><h4>Enumeration:</h4><p>As guessed there is web app running on target which looks like a Issue tracking portal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jsduljNG5iDrwLseOEnThw.png" /><figcaption>Web Application running on Port 80</figcaption></figure><p>I have modified <strong>/etc/hosts </strong>file on my system to explore the Web application running on this <strong>Spectra</strong> Machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*xXR7a7eATlhyLktvyHr-Qw.png" /><figcaption>Spectra.htb added in /etc/hosts file</figcaption></figure><p>After clicks on <strong>“<em>Software issue tracker</em>”</strong> and <strong>“test”</strong> pages I see one of the page is directing to main page where we have blogs. If we observed the user for blog then we can see it as <strong>Administrator</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HyJQJ5NGGgrf0pHYheH6kA.png" /><figcaption>Blog Page by Administrator</figcaption></figure><p>At other page, we see multiple WordPress PHP files in <strong>testing</strong> folder. We have opened multiple file and we see credentials in the source code of wp-config.php.save</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FQcDzJEDZXcyRk5tsfR6dw.png" /><figcaption>source code of wp-config.php.save</figcaption></figure><p>So I tried using these credentials on <strong>WP Admin Login</strong> page but no luck.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*-xllqpPYboZsPcWeRf2vvg.png" /><figcaption>Wrong Credentials and Unknown Username Error</figcaption></figure><p>But, I see an error as <strong>Unknown Username</strong>. then I remembered we have a user as <strong>Administrator</strong> which we got it from blog page. Quickly I Entered <strong>user as Administrator</strong> and <strong>password:devteam01</strong> and I was successfully able to login as admin now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pkJd_o7RNgRRtTiOpr-qnA.png" /><figcaption>Logged in as Admin</figcaption></figure><p>For this version of WordPress there are several exploits on google, I tried many of them but I was not able to exploit is successfully. So then I decided to search for exploits using <strong>searchsploit</strong>.</p><h4>Meterpreter Shell:</h4><p>I started Metasploit in my Kali VM and searched for any known exploits of WP Admin Shell. I have found one more so started using it immediately. started using exploit, completed initial configs and I was able to get meterpreter shell successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kxiDDR-7F-cIB812Vo4RHg.png" /><figcaption>meterpreter Shell</figcaption></figure><p>Immediately I want to know how many users do we have? so I quickly did <strong>cat /etc/passwd </strong>and I noted as we have tow users here katie and nginx.</p><blockquote>nginx:x:20155:20156::/home/nginx:/bin/bash<br>katie:x:20156:20157::/home/katie:/bin/bash</blockquote><p><strong>User Flag:</strong></p><p>As I already had meterpreter shell so I started to use few commands and got to know as there we have <strong>opt folder. </strong>So I checked its contents and found a file for autologin.conf is there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*wpGzcvKd4VvHi6K7ZGUbhA.png" /><figcaption>autologin.conf.orig file contains</figcaption></figure><p>I checked the directory mentioned above and checked if any file is present over there. So basically it was using a passwd file for autologin. Checked the file and found a password in it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*uggZcvMcqpGwf7qlOa1ObA.png" /><figcaption>Password in autologin file.</figcaption></figure><p>Immediately I tried that password for our user <strong>Katie</strong> and I was able to SSH the target successfully using these credentials. Checked the contents of folder and found <strong>user.txt</strong> is present over there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*M3bJFSddOpxc1rIaSl-dIQ.png" /><figcaption>SSH and user.txt</figcaption></figure><p><strong>Privilege Escalation and Root Flag:</strong></p><p>After getting <strong>user.txt</strong> now its time to think on Privilege Escalation. In my Pentest process I found this part very hard and most interesting as well. It actually tests your knowledge, technical skills and logic. So checked <strong>sudo privileges</strong> and found this user can execute “<strong>/sbin/initctl</strong>” without password which is <strong>as equal as root</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*TOJrlKEXueBbpCqkke6Lrg.png" /><figcaption>sudo -l on Katie user</figcaption></figure><p>Then I quickly moved to that directory and checked what files it contains.</p><blockquote>katie@spectra /etc/init $ ls -la</blockquote><blockquote>rw-rw — — 1 root developers 478 Jun 29 2020 test.conf<br>-rw-rw — — 1 root developers 478 Jun 29 2020 test1.conf<br>-rw-rw — — 1 root developers 478 Jun 29 2020 test10.conf<br>-rw-rw — — 1 root developers 478 Jun 29 2020 test2.conf<br>-rw-rw — — 1 root developers 478 Jun 29 2020 test3.conf<br>-rw-rw — — 1 root developers 478 Jun 29 2020 test4.conf<br>-rw-rw — — 1 root developers 478 Jun 29 2020 test5.conf<br>-rw-rw — — 1 root developers 478 Jun 29 2020 test6.conf<br>-rw-rw — — 1 root developers 478 Jun 29 2020 test7.conf<br>-rw-rw — — 1 root developers 478 Jun 29 2020 test8.conf<br>-rw-rw — — 1 root developers 478 Jun 29 2020 test9.conf</blockquote><p>So we can use <strong>initctl</strong> to control starting and stopping processes as system. I have checked file test.conf and started exploring on it if we can get any path from here to be <strong>root user</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*LA9ntEqrK3wZglLggEdZKw.png" /><figcaption>cat test.conf</figcaption></figure><p>After going through lot of GitHub, medium, google links and also after trying few script I found this simple script can do our work so I quickly edited <strong>test.conf file</strong> and saved it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*39ITnaFyP0CKFAOa96xkqA.png" /><figcaption>Modified test.conf file</figcaption></figure><p>After that I again started the <strong>test process</strong> and used simple command for privilege escalation which is “<strong> /bin/bash -p</strong>”. I got root over there. Summitted the flag and successfully <strong>pwned Spectra</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*xHb7wyjwdGJ8dKFeQ7L3nQ.png" /><figcaption>cat root.txt</figcaption></figure><p>Both <strong>user.txt and root.txt</strong> flags are correct.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*6V4EDV8G0LT0tw3GBQPqFA.png" /><figcaption>Points Earned.</figcaption></figure><p>Though this was easy machine from HTB, but it is always challenging to work on this for many beginners like me. I have learned many things like WordPress exploits, Metasploit, bash and Privilege Escalation methods.</p><p>If you like my writeup then do connect me on <a href="https://twitter.com/0xShantanuKul"><strong>twitter</strong></a>.</p><p>Thank Again..!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9339f01b65a0" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/hackthebox-spectra-machine-walkthrough-9339f01b65a0">HackTheBox — Spectra Machine Walkthrough</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[Story of Interesting Bypass for recently resolved report on HackerOne.]]></title>
            <link>https://infosecwriteups.com/story-of-interesting-bypass-for-recently-resolved-report-on-hackerone-f1d24b782836?source=rss-91bc6f74a2a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1d24b782836</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bugcrowd]]></category>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hackerone]]></category>
            <dc:creator><![CDATA[Shantanu Kulkarni]]></dc:creator>
            <pubDate>Sat, 19 Jun 2021 07:49:34 GMT</pubDate>
            <atom:updated>2021-07-04T17:47:51.220Z</atom:updated>
            <content:encoded><![CDATA[<h3>Story of an Interesting Bypass for recently resolved report on HackerOne.</h3><p>Hello All amazing hackers out there. My name is<strong> </strong><a href="https://twitter.com/0xShantanuKul"><strong>Shantanu Kulkarni</strong></a><strong> </strong>. I am working as <em>Security Consultant</em> and <em>Lead penetration Tester</em> at a Security Consultancy firm in India. Also am a part time Bug Bounty Hunter. First of all, <em>Thank you</em> for your great response on my <a href="https://0xshantanukul.medium.com/cross-site-scripting-xss-in-hidden-parameter-47e41f08424e"><strong>first blog</strong></a>. This response inspired me to write about my one of the old and interesting finding. So without wasting time let us begin.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Fslimtheseafricanbushviper&amp;display_name=Gfycat&amp;url=https%3A%2F%2Fgfycat.com%2Fslimtheseafricanbushviper-john-wick-chapter-3-parabellum-let-us-begin&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FSlimTheseAfricanbushviper-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="1068" height="744" frameborder="0" scrolling="no"><a href="https://medium.com/media/977a556aed06744015317001e5fbd711/href">https://medium.com/media/977a556aed06744015317001e5fbd711/href</a></iframe><p>This one is a private program invite I have received in the month of APR 2021. As the program has good scope I accepted the invite and started looking at their domains, IPs and Live subdomains. When my recon process is going on, I generally spend time on understanding the target and sometimes simply google about it like “target.com vulnerability” etc. but haven&#39;t found anything special. Then I went to program page on H1 and saw many disclosed bugs are already there which can help me to understand more about the target. There was one recently (Feb 2021) resolved and disclosed report about XSS so I thought it can be perfect source of knowledge for me then, I immediately started reading it with out any assumptions.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Fpracticalsorrowfulcrane&amp;display_name=Gfycat&amp;url=https%3A%2F%2Fgfycat.com%2Fpracticalsorrowfulcrane-kevin-spacey&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FPracticalSorrowfulCrane-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="1000" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/0627166ecdb4bb920ed8f6e6f84529d5/href">https://medium.com/media/0627166ecdb4bb920ed8f6e6f84529d5/href</a></iframe><p>The report was very straight and simple, popping up the user cookies with Script Tag. The only thing it was blocking <strong>alert</strong> keyword. It was fixed and awarded with bounty of 200$. Again, I checked its behavior and got to know that is is blocking <strong>alert</strong> and <strong>script </strong>Keywords now. So it can be poorly implemented input sanitization from Developers so needed to dig-in and check. Then I started crafting payload for it and using the <strong>“onload”</strong> function of an <strong>Iframe</strong> I was able to get cookies with pop-up again..!!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Fzigzagboldguernseycow&amp;display_name=Gfycat&amp;url=https%3A%2F%2Fgfycat.com%2Fzigzagboldguernseycow-nick-offerman-ron-swanson-happy&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FZigzagBoldGuernseycow-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="500" height="282" frameborder="0" scrolling="no"><a href="https://medium.com/media/5515cc839cf33f4fea89e060c66d4979/href">https://medium.com/media/5515cc839cf33f4fea89e060c66d4979/href</a></iframe><p>Timeline:</p><p>April 9, 2021: Private Invite and Reported within 30 mins of Invite.</p><p>April 12, 2021: Triaged.</p><p>May 21, 2021: Resolved and awarded. Received bonus of 50$ for writing good report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*tj28xi26PgH0xPMfuAQ2RA.png" /></figure><p>Learning Lessons:</p><p>Check for old resolved reports of your target to understand the target.</p><p>Try to bypass the Fix for already resolved reports.</p><p>If you like my blog then you can always connect with me on <a href="https://twitter.com/0xShantanuKul"><strong>Twitter</strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1d24b782836" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/story-of-interesting-bypass-for-recently-resolved-report-on-hackerone-f1d24b782836">Story of Interesting Bypass for recently resolved report on HackerOne.</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[Cross Site Scripting(XSS) In Hidden Parameter.]]></title>
            <link>https://infosecwriteups.com/cross-site-scripting-xss-in-hidden-parameter-47e41f08424e?source=rss-91bc6f74a2a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/47e41f08424e</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[cross-site-scripting]]></category>
            <category><![CDATA[bugcrowd]]></category>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Shantanu Kulkarni]]></dc:creator>
            <pubDate>Wed, 16 Jun 2021 13:26:10 GMT</pubDate>
            <atom:updated>2021-07-04T17:48:18.579Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello All amazing Hackers out there…!!</p><p>My name is<strong> </strong><a href="https://twitter.com/0xShantanuKul"><strong>Shantanu Kulkarni</strong></a><strong> </strong>. I am working as <em>Security Consultant</em> and <em>Lead penetration Tester</em> at a Security Consultancy firm in India. Also am a part time Bug Bounty Hunter. Today I am writing about one of the interesting XSS bug I found while Bug hunting. So let’s get started..!!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Fsnappythirddodo&amp;display_name=Gfycat&amp;url=https%3A%2F%2Fgfycat.com%2Fsnappythirddodo&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FSnappyThirdDodo-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="400" height="202" frameborder="0" scrolling="no"><a href="https://medium.com/media/7f887b8911fafbadae7a83add9843e65/href">https://medium.com/media/7f887b8911fafbadae7a83add9843e65/href</a></iframe><p>Consider the target name as domain.com . Usually, I follows the approach for Recon as Subdomain Enumeration → Live Targets → URLs → Looking for bugs but this time I Decided to go for finding parameters rather than looking for URLs. So I tried few tools like <em>Arjun</em> and <em>ParamSpider</em> to collect parameters. After collecting output from them a parameter <strong>‘failure’ </strong>took my attention so I decided to test it further.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Fickybossyharvestmen&amp;display_name=Gfycat&amp;url=https%3A%2F%2Fgfycat.com%2Fickybossyharvestmen-school-of-rock-jack-black-hmm-uhh&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FIckyBossyHarvestmen-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/f2b62387a54bead1a266940727d1f6fe/href">https://medium.com/media/f2b62387a54bead1a266940727d1f6fe/href</a></iframe><p>After few tries, I observed as the failure parameter is accepting only two values 1 or 0 and other inputs are just displaying at the bottom of web page on the red Box. When we input it as 0 the page goes blank and if we input there as 1 the page gets loaded properly. So I started it with experimenting on user registration page, admin login, support login and also for login bypass which may leads to internal dashboard access but no luck…!!</p><p>So even if the page was not loading properly but the input on failure parameter is displaying on web Page so why not look for XSS? so I started Checking the Source code. Grabbed few payloads from PortSwigger/BruteLogic and started crafting it for pop-up. Again it was blocking alert keyword but accepting confirm and prompt. so got a pop-up finally..!!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Fachinggrosscub&amp;display_name=Gfycat&amp;url=https%3A%2F%2Fgfycat.com%2Fachinggrosscub-yes-ragnarok-thor&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FAchingGrossCub-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="348" height="262" frameborder="0" scrolling="no"><a href="https://medium.com/media/311e0c444107994bb02f84999d008fcc/href">https://medium.com/media/311e0c444107994bb02f84999d008fcc/href</a></iframe><p>Reported it with POC and showed an impact for cookie stealing. report is triaged as of now.</p><p><strong>Learning Lessons:</strong></p><p>Hidden parameters are important. Also, we can learn many vulnerabilities by trying multiple things on single parameter as I mentioned, rather than trying single vulnerability on many garbage parameters.</p><p>If you like my blog then feel free to connect me on <a href="https://twitter.com/0xShantanuKul">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47e41f08424e" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/cross-site-scripting-xss-in-hidden-parameter-47e41f08424e">Cross Site Scripting(XSS) In Hidden Parameter.</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>