admin 发表于 2022-2-12 17:55:48

xss标签和属性爆破


<p>当网站过滤了大部分的HTML标签和属性,我们就尝试爆破一下,看哪些标签和属性没有没过滤。</p>
<h2>爆破的步骤:</h2>
<p>  1. 首先在测试点输入我们正常的exp,并抓包发送到Intruder模块。</p>
<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211213553022-1529348382.png" ></p>
<p>&nbsp;  2.&nbsp;将exp改为 &lt;§§&gt; ,以创建有效载荷位置。</p>
<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211213706671-202348246.png" ></p>
<p>&nbsp;  3.&nbsp;在xss备忘单中点击:Copy tags to clipboard,点击Paste粘贴到Intruder的payload位置。</p>
<p>  https://portswigger.net/web-security/cross-site-scripting/cheat-sheet</p>
<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211213910208-9621953.png" ></p>
<p>&nbsp;  4. 进行爆破。发现body标签没有被过滤。</p>
<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211214019819-944940889.png" ></p>
<p>&nbsp;  5. 将有效载荷设置为:&lt;body%20§§=1&gt;</p>
<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211214230292-1546309510.png" ></p>
<p>&nbsp;  6.&nbsp;在xss备忘单中点击:将事件复制到粘贴板,点击Paste粘贴到Intruder的payload位置。</p>
<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211214535613-35221747.png" ></p>
<p>&nbsp;  7. 进行攻击。发现onresize属性没有被过滤。</p>
<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211215313601-1834234454.png" ></p>
<p>&nbsp;  8. 构造payload,在测试位置输入,并用F12打开调试窗口时,就会弹窗。</p>
<p>  因为onresize属性就是窗口或框架被调整大小时触发。</p>
<div class="cnblogs_code">
<pre>&lt;body onresize=alert(3)&gt;</pre>
</div>
<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211220602121-1842422690.png" ></p>
<p>&nbsp;</p>
页: [1]
查看完整版本: xss标签和属性爆破