<?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 Sunny Kathuria on Medium]]></title>
        <description><![CDATA[Stories by Sunny Kathuria on Medium]]></description>
        <link>https://medium.com/@sunnyykathuria?source=rss-fed9d98616a1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8vXZuyxJyYs5NW-g</url>
            <title>Stories by Sunny Kathuria on Medium</title>
            <link>https://medium.com/@sunnyykathuria?source=rss-fed9d98616a1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 12:19:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sunnyykathuria/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[How I hacked MyGov.in?]]></title>
            <link>https://medium.com/@sunnyykathuria/how-i-hacked-mygov-in-3dec928edd73?source=rss-fed9d98616a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/3dec928edd73</guid>
            <dc:creator><![CDATA[Sunny Kathuria]]></dc:creator>
            <pubDate>Wed, 22 Sep 2021 14:11:58 GMT</pubDate>
            <atom:updated>2021-09-22T14:42:04.872Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi Guys!</p><p>In this blog, I am writing How I was able to find XSS bug in India’s PM website mygov.in That may lead to RCE on mygov.in and some of its subdomain like secure.mygov.in and innovation.mygov.in</p><p>The blog&#39;s title is very clickbaity, but the impact of vulnerability could be increased, but I didn’t try to exploit much more. As I don’t want to go to jail or don’t want to face any legal procedures.</p><p>So first, I will tell how I was able to find this vulnerability. There was some competition going on portal mygov.in, and my sister was participating. She asked to submit her submission. Due to heavy traffic on one of its subdomain, It was not responding. Then I stuck on the main domain mygov.in and tried to find some interesting thing.</p><p>I started reconnaissance/information gathering and got to know that it is using Angular for Frontend. Only a few days, I had read about some vulnerabilities in AngularJS, most famous was Template Injection. To read more about Template Injection, visit <a href="https://cyc10n3.medium.com/rce-via-server-side-template-injection-ad46f8e0c2ae">https://cyc10n3.medium.com/rce-via-server-side-template-injection-ad46f8e0c2ae</a>.</p><p>Then I tried entering some inputs in the search field like {7*7},{{7*7}}. And I got success in {{7*7}}, It was showing 49 on the main page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*Ue1WKyA1u1_Jcc7LVGBbrQ.jpeg" /></figure><p>Here, I got the hint that it has Template Injection Vulnerability.</p><p>Now, I just wanted to escalate it further. I just tried to find some payloads which chain Template Injection to Cross-Site-Scripting(XSS).</p><p>Payload: <strong>{{constructor.constructor(“prompt(document.domain)”)()}}</strong></p><p>This payload led Template Injection to Reflected XSS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*YS4tt55ZMvrLqRGYFXxM7g.jpeg" /></figure><p>Later on, I researched a lot and learned that It could be escalated to RCE(Source: <a href="https://www.blackhat.com/docs/us-15/materials/us-15-Kettle-Server-Side-Template-Injection-RCE-For-The-Modern-Web-App-wp.pdf">https://www.blackhat.com/docs/us-15/materials/us-15-Kettle-Server-Side-Template-Injection-RCE-For-The-Modern-Web-App-wp.pdf</a>, <a href="https://cyc10n3.medium.com/rce-via-server-side-template-injection-ad46f8e0c2ae">https://cyc10n3.medium.com/rce-via-server-side-template-injection-ad46f8e0c2ae</a>).</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3dec928edd73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Scraping helped me to prepare for Certification.]]></title>
            <link>https://medium.com/@sunnyykathuria/web-scraping-helped-me-to-prepare-for-certification-1aad8f4eb3c8?source=rss-fed9d98616a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1aad8f4eb3c8</guid>
            <dc:creator><![CDATA[Sunny Kathuria]]></dc:creator>
            <pubDate>Tue, 21 Sep 2021 13:19:39 GMT</pubDate>
            <atom:updated>2021-09-21T13:48:56.920Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Guys!</p><p>This is my first blog. If you find any mistakes in this blog. Please help and let me know to improve.</p><p>I am writing about a small script that I wrote during preparation for my CompTia Security+ Certification in this blog. I found a website with practice questions for the exam that was a gold mine for me or any other aspirant. But the problem was, There was only one question on a single page; I had to move to the next page for each question. That wasn&#39;t very pleasant for me, and I felt that I could prepare very well from this website, but it would consume so much time. I started to look at how the URL/page is changing while surfing through different pages.</p><p>https://website.com/comptia-security/comptia-security-question-m-1</p><p><a href="https://website.com/comptia-security/comptia-security-question-m-2">https://website.com/comptia-security/comptia-security-question-m-2</a></p><p>“https://website.com/comptia-security/comptia-security-question-m-{{question-number}}”</p><p>After observing the URL, I got a hint to bypass this annoying thing. In my college time, I was very interested in joining different Workshops/Webinars to gain some knowledge. I attended some workshops on Web Scraping. To learn more about web scraping, visit: <a href="https://medium.com/opex-analytics/simple-web-scraping-in-python-90d6fddfaeca">https://medium.com/opex-analytics/simple-web-scraping-in-python-90d6fddfaeca</a></p><p>So, I just started exploring more about it and wrote some lines of code to fetch the content of the web pages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_9w6PDXSMf_uEBvG-DUXLQ.png" /></figure><p>Ideally, It should print all the questions between 1 and 30, as the loop runs up to 31. But due to WAF being implemented on the webserver, I wasn’t able to send many requests. My program got terminated. This broke me one more time.</p><p>The game was not finished yet. I read some methods to bypass WAF. The way which worked for me was adding fake user agents. To read more about user-agent: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent</a></p><p>I modified the code to implement fake user-agent, and my code looks like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*70O37mVTD34VQU7WEzmiYQ.png" /></figure><p>By the above code, I was able to print all the pages as I wanted to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zo1JiZ0QwHaGxIM9IRehhw.png" /></figure><p>It was printing content having some HTML tags. I saved the output as a HTML file and opened it in the web browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fFZ-S4lypx_G63EH4gTmtw.png" /></figure><p>As you can see, there is <strong>Show Answer, </strong>and This was is working. So while practising person can confirm their answer is correct or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XMrb4l9mPGMrT_OQsXLVjw.png" /></figure><p>Here is the final portal <a href="https://secplus.netlify.app/">https://secplus.netlify.app</a> which I created for my certification preparation.</p><p>And My Hard work paid off! I cleared my certification exam in first attempt only.</p><p>To check out this project, visit: <a href="https://github.com/sunny-kathuria/Web-Scrap">https://github.com/sunny-kathuria/Web-Scrap</a></p><p>Thank you!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1aad8f4eb3c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>