|
+ H& L: F% h( @& p: v4 R9 u3 y
<p>当网站过滤了大部分的HTML标签和属性,我们就尝试爆破一下,看哪些标签和属性没有没过滤。</p>5 A0 i, T- n1 T% [; V$ p( t; g; P# S
<h2>爆破的步骤:</h2>7 W% Z; @9 }' f
<p> 1. 首先在测试点输入我们正常的exp,并抓包发送到Intruder模块。</p>
' t) N5 {: _' K5 J; ~; F& E<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211213553022-1529348382.png" ></p>/ l- g1 e' p! b# Y+ [5 P2 a
<p> 2. 将exp改为 <§§> ,以创建有效载荷位置。</p>
$ j+ @' O) @) D8 v( I8 c8 A<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211213706671-202348246.png" ></p>0 b' C+ J/ x% Y! d/ I1 K
<p> 3. 在xss备忘单中点击:Copy tags to clipboard,点击Paste粘贴到Intruder的payload位置。</p>4 ]9 |' ?8 R B5 F P
<p> https://portswigger.net/web-security/cross-site-scripting/cheat-sheet</p>( H* L( w1 Z* N j* ?$ k
<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211213910208-9621953.png" ></p>( O" X7 n/ T4 Z$ }5 o
<p> 4. 进行爆破。发现body标签没有被过滤。</p>
$ a# d( W5 }8 u+ s! Q<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211214019819-944940889.png" ></p>6 U$ `( y3 W5 {3 v/ j. k
<p> 5. 将有效载荷设置为:<body%20§§=1></p>
3 b. e5 w u5 w; g3 v5 q7 t<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211214230292-1546309510.png" ></p>1 J1 _+ l1 g# H5 W% V+ _" j
<p> 6. 在xss备忘单中点击:将事件复制到粘贴板,点击Paste粘贴到Intruder的payload位置。</p>" [$ i) q/ C1 F3 @
<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211214535613-35221747.png" ></p>
$ Y0 ]0 x& X. k; S, v% c<p> 7. 进行攻击。发现onresize属性没有被过滤。</p>
: u e; c" H) u5 M3 W, r! X$ }<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211215313601-1834234454.png" ></p>
' e3 s2 u. G+ h0 c$ H<p> 8. 构造payload,在测试位置输入,并用F12打开调试窗口时,就会弹窗。</p>( ~6 Y1 m. M6 M1 o* C, y! ]
<p> 因为onresize属性就是窗口或框架被调整大小时触发。</p>
% C2 x5 t y- j<div class="cnblogs_code">- r& @6 x, D: H2 z
<pre><body onresize=alert(3)></pre>% _- g& S/ [. u% U
</div>- }/ g J" o5 ] [, y
<p><img src="https://img2022.cnblogs.com/blog/2742124/202202/2742124-20220211220602121-1842422690.png" ></p>
6 B. L* a& e% [" @; a# g4 V<p> </p>1 y7 m5 v3 J' s
|
|