|
$ u- f* q; {% j9 x/ k5 j" I<p>当网站过滤了大部分的HTML标签和属性,我们就尝试爆破一下,看哪些标签和属性没有没过滤。</p>
. l9 U' F6 o* ]. I# |8 j<h2>爆破的步骤:</h2>
. `) ]3 c. J; n+ n( z- O& A<p> 1. 首先在测试点输入我们正常的exp,并抓包发送到Intruder模块。</p>9 `: f. q5 a5 I# f4 w% a* t+ _3 d
<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211213553022-1529348382.png" ></p>( K1 J2 c7 ?' }2 @
<p> 2. 将exp改为 <§§> ,以创建有效载荷位置。</p>
. K/ }. o9 B, Y; Z9 z9 R5 d<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211213706671-202348246.png" ></p>
, y8 ?2 I" X8 j `<p> 3. 在xss备忘单中点击:Copy tags to clipboard,点击Paste粘贴到Intruder的payload位置。</p>0 M5 Q: C9 S$ m- Q
<p> https://portswigger.net/web-security/cross-site-scripting/cheat-sheet</p>
" |) b& a7 E6 U8 s* ?8 }, B. h- j<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211213910208-9621953.png" ></p>- W6 C( j2 v/ }7 [0 D# a- n/ e1 J
<p> 4. 进行爆破。发现body标签没有被过滤。</p>( ]' _+ g# Z8 P: l/ [5 C) @
<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211214019819-944940889.png" ></p>6 p1 O8 s; ~( Q1 ?
<p> 5. 将有效载荷设置为:<body%20§§=1></p>
0 p4 }$ W. _7 Z<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211214230292-1546309510.png" ></p>. V4 Z5 K- s) `( w
<p> 6. 在xss备忘单中点击:将事件复制到粘贴板,点击Paste粘贴到Intruder的payload位置。</p>+ E. \ Z" y! n( Q2 m
<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211214535613-35221747.png" ></p>
+ k6 b2 H. c3 L4 }# [, i<p> 7. 进行攻击。发现onresize属性没有被过滤。</p>
8 H2 S5 ?$ N9 D% Q6 I V6 i<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211215313601-1834234454.png" ></p>
/ H4 r* m& m- }$ e. n<p> 8. 构造payload,在测试位置输入,并用F12打开调试窗口时,就会弹窗。</p>5 w% A" \2 ]9 l9 p
<p> 因为onresize属性就是窗口或框架被调整大小时触发。</p>
' r% C( i! q! H, ~<div class="cnblogs_code"># P ]3 K. `. i# `( G2 e9 R8 {
<pre><body onresize=alert(3)></pre>
. U3 X: N+ P z/ X6 \</div>
7 z: E& }* N7 a! R3 [' f<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211220602121-1842422690.png" ></p>7 W2 w. P5 y$ R( l7 j! b$ _
<p> </p>
4 k2 `3 G1 W$ O: `0 W |
|