[14569] 2019-09-10_ModSecurity:一款优秀的开源WAF

文档创建者:s7ckTeam
浏览次数:7
最后更新:2025-01-18
2019-09-10_ModSecurity:一款优秀的开源WAF M o d S e c u r i t y W A F o w e n s k y   F r e e B u f   2 0 1 9 - 0 9 - 1 0 M o d S e c u r i t y 3 . 0 M o d S e c u r i t y W e b W A F A p a c h e I I S N g i n x T r u s t w a v e S p i d e r L a b s W A F M o d S e c u r i t y H T T P H T T P M o d S e c u r i t y n g i n x n g i n x W A F O W A S P 3 . 0 n g i n x I n c T r u s t w a v e M o d S e c u r i t y S Q L   I n j e c t i o n   ( S Q L i ) S Q L C r o s s   S i t e   S c r i p t i n g   ( X S S ) L o c a l   F i l e   I n c l u s i o n   ( L F I ) R e m o t e   F i l e   I n c l u s i o n e ( R F I ) R e m o t e   C o d e   E x e c u t i o n   ( R C E ) P H P   C o d e   I n j e c t i o d P H P H T T P   P r o t o c o l   V i o l a t i o n s H T T P 访 H T T P o x y S h e l l s h o c k S h e l l s h o c k S e s s i o n   F i x a t i o n S e s s i o n I D S c a n n e r   D e t e c t i o n M e t a d a t a / E r r o r   L e a k a g e s / P r o j e c t   H o n e y   P o t   B l a c k l i s t G e o I P   C o u n t r y   B l o c k i n g I P I P n g i n x s u b _ f i l t e r O W A S P 9 5 X O W A S P D D o S R E Q U E S T - 9 1 2 - D O S -   P R O T E C T I O N . c o n f , n g i n x D D o S c e n t O S 7 . 6 n g i n x h t t p : / / n g i n x . o r g / e n / l i n u x _ p a c k a g e s . h t m l # m a i n l i n e y u m   u p d a t e y u m   i n s t a l l   y u m - u t i l s v i m   / e t c / y u m . r e p o s . d / n g i n x . r e p o [ n g i n x - s t a b l e ] n a m e = n g i n x   s t a b l e   r e p o b a s e u r l = h t t p : / / n g i n x . o r g / p a c k a g e s / c e n t o s / $ r e l e a s e v e r / $ b a s e a r c h / g p g c h e c k = 1 e n a b l e d = 1 g p g k e y = h t t p s : / / n g i n x . o r g / k e y s / n g i n x _ s i g n i n g . k e y [ n g i n x - m a i n l i n e ] n a m e = n g i n x   m a i n l i n e   r e p o b a s e u r l = h t t p : / / n g i n x . o r g / p a c k a g e s / m a i n l i n e / c e n t o s / $ r e l e a s e v e r / $ b a s e a r c h / g p g c h e c k = 1
E r r o r :   C a n n o t   r e t r i e v e   m e t a l i n k   f o r   r e p o s i t o r y :   e p e l .   P l e a s e   v e r i f y   i t s   p a t h   a n d   t r y   a g a i n / e t c / y u m . r e p o s . d / e p e l . r e p o 3 1 . [ e p e l ] 2 . n a m e = E x t r a   P a c k a g e s   f o r   E n t e r p r i s e   L i n u x   6   -   $ b a s e a r c h 3 . b a s e u r l = h t t p : / / d o w n l o a d . f e d o r a p r o j e c t . o r g / p u b / e p e l / 6 / $ b a s e a r c h 4 . # m i r r o r l i s t = h t t p s : / / m i r r o r s . f e d o r a p r o j e c t . o r g / m e t a l i n k ? r e p o = e p e l - 6 & a r c h = $ b a s e a r c h G i t H u b : f a t a l :   N o   n a m e s   f o u n d ,   c a n n o t   d e s c r i b e   a n y t h i n g . M o d S e c u r i t y N G I N X N G I N X M o d S e c u r i t y : : n g i n x M o d S e c u r i t y   3 D e m o   w e b v i m   / e t c / n g i n x / n g i n x . c o n f n g i n x : n g i n x   - s   r e l o a d n g i n x : c u r l   - D   -   h t t p : / / l o c a l h o s t D e m o   w e b / e t c / n g i n x / m o d s e c m k d i r   / e t c / n g i n x / m o d s e c M o d S e c u r i t y v i m   m o d s e c u r i t y . c o n f   # S e c R u l e E n g i n e   D e t e c t i o n O n l y g p g c h e c k = 1 e n a b l e d = 0 g p g k e y = h t t p s : / / n g i n x . o r g / k e y s / n g i n x _ s i g n i n g . k e y y u m   i n s t a l l   n g i n x y u m   i n s t a l l   e p e l - r e l e a s e y u m   i n s t a l l   g c c - c + +   f l e x   b i s o n   y a j l   y a j l - d e v e l   c u r l - d e v e l   c u r l   G e o I P - d e v e l   d o x y g e n   z l i b - d e v e l   p c r e   p c r e - d e v e l   l i b x m l 2   l i b x m l 2 - d e v e l   a u t o c o n f   a u t o m a k e   l m d b - d e v e l   s s d e e p - d e v e l   s s d e e p - l i b s   l u a - d e v e l   l i b m a x m i n d d b - d e v e l   g i t   a p t - u t i l s   a u t o c o n f   a u t o m a k e   b u i l d - e s s e n t i a l   g i t   l i b c u r l 4 - o p e n s s l - d e v   l i b g e o i p - d e v   l i b l m d b - d e v   i b p c r e + + - d e v   l i b t o o l   l i b x m l 2 - d e v   l i b y a j l - d e v   p k g c o n f   w g e t   z l i b 1 g - d e v g i t   c l o n e   - - d e p t h   1   - b   v 3 / m a s t e r   - - s i n g l e - b r a n c h   h t t p s : / / g i t h u b . c o m / S p i d e r L a b s / M o d S e c u r i t y $   c d   M o d S e c u r i t y $   g i t   s u b m o d u l e   i n i t $   g i t   s u b m o d u l e   u p d a t e $   . / b u i l d . s h $   . / c o n f i g u r e $   m a k e $   m a k e   i n s t a l l g i t   c l o n e   - - d e p t h   1   h t t p s : / / g i t h u b . c o m / S p i d e r L a b s / M o d S e c u r i t y - n g i n x . g i t [ r o o t @ g u i g u   M o d S e c u r i t y ] #   n g i n x   - v n g i n x   v e r s i o n :   n g i n x / 1 . 1 7 . 3 w g e t   h t t p : / / n g i n x . o r g / d o w n l o a d / n g i n x - 1 . 1 7 . 3 . t a r . g z t a r   z x v f   n g i n x - 1 . 1 7 . 3 . t a r . g z c d   n g i n x - 1 . 1 7 . 3 # . / c o n f i g u r e   - - w i t h - c o m p a t   - - a d d - d y n a m i c - m o d u l e = . . / M o d S e c u r i t y - n g i n x $   m a k e   m o d u l e s c p   o b j s / n g x _ h t t p _ m o d s e c u r i t y _ m o d u l e . s o   / e t c / n g i n x / m o d u l e s / l o a d _ m o d u l e / e t c / n g i n x / n g i n x . c o n f m a i n l o a d _ m o d u l e   m o d u l e s / n g x _ h t t p _ m o d s e c u r i t y _ m o d u l e . s o ; n g i n x   - t s e r v e r   { l i s t e n   8 0 8 5 ; l o c a t i o n   /   {         d e f a u l t _ t y p e   t e x t / p l a i n ;         r e t u r n   2 0 0   " T h a n k   y o u   f o r   r e q u e s t i n g   $ { r e q u e s t _ u r i } n " ;         } } w g e t   h t t p s : / / r a w . g i t h u b u s e r c o n t e n t . c o m / S p i d e r L a b s / M o d S e c u r i t y / v 3 / m a s t e r / m o d s e c u r i t y . c o n f - r e c o m m e n d e d m v   m o d s e c u r i t y . c o n f - r e c o m m e n d e d   m o d s e c u r i t y . c o n f
S e c R u l e E n g i n e   O n M o d S e c u r i t y I n c l u d e   t h e   r e c o m m e n d e d   c o n f i g u r a t i o n A   t e s t   r u l e [ e m e r g ]   m o d s e c u r i t y _ r u l e s _ f i l e   d i r e c t i v e   R u l e s   e r r o r . n g i n x v i m   / e t c / n g i n x / c o n f . d / p r o x y . c o n f i n c l u d e   / e t c / n g i n x / c o n f . d / * . c o n f ;   # 8 0 / v a r / l o g / n g i n x / e r r o r . l o g O W A S P C R S C o r e   R u l e   S e t n i k t o C R S O W A S P   C R S m o d s e c u r i t y i n c l u d e   C R S I n c l u d e   t h e   r e c o m m e n d e d   c o n f i g u r a t i o n O W A S P   C R S   v 3   r u l e s C R S M o d S e c u r i t y 2 0 0 , , N i k t o 2 0 0 , 8 3 n i k t o v i m   / e t c / n g i n x / m o d s e c / m a i n . c o n f I n c l u d e   / e t c / n g i n x / m o d s e c / m o d s e c u r i t y . c o n f S e c R u l e   A R G S : t e s t p a r a m   " @ c o n t a i n s   t e s t "   " i d : 1 2 3 4 , d e n y , l o g , s t a t u s : 4 0 3 " v i m   / e t c / n g i n x / m o d s e c / m o d s e c u r i t y . c o n f # S e c U n i c o d e M a p F i l e   u n i c o d e . m a p p i n g   2 0 1 2 7 s e r v e r   { l i s t e n   8 0 ;         m o d s e c u r i t y   o n ;         m o d s e c u r i t y _ r u l e s _ f i l e   / e t c / n g i n x / m o d s e c / m a i n . c o n f ;         l o c a t i o n   /   {         p r o x y _ p a s s   [ h t t p : / / 0 . 0 . 0 . 0 : 8 0 8 5 ; ] ( h t t p : / / 0 . 0 . 0 . 0 : 8 0 8 5 / )         p r o x y _ s e t _ h e a d e r   H o s t   $ h o s t ;         } n g i n x   - s   r e l o a d         # n g i n x c u r l   - D   -   h t t p : / / l o c a l h o s t / f o o ? t e s t p a r a m = 1 2 3         # T h a n k   y o u   f o r   r e q u e s t i n g   / f o o ? t e s t p a r a m = 1 2 3 c u r l   - D   -   h t t p : / / l o c a l h o s t / f o o ? t e s t p a r a m = t e s t         # " 4 0 3   F o r b i d d e n " m o d s e c u r i y t e s t p a r a m t e s t g i t   c l o n e   h t t p s : / / g i t h u b . c o m / s u l l o / n i k t o         # n i k t o c d   n i k t o p e r l   p r o g r a m / n i k t o . p l   - h   l o c a l h o s t         # n i k t o n g i n x w e b +   7 6 8 7   r e q u e s t s :   0   e r r o r ( s )   a n d   3 0 8   i t e m ( s )   r e p o r t e d   o n   r e m o t e   h o s t         # 3 0 8 c d   / e t c / n g i n x / m o d s e c / w g e t   h t t p s : / / g i t h u b . c o m / S p i d e r L a b s / o w a s p - m o d s e c u r i t y - c r s / a r c h i v e / v 3 . 0 . 2 . t a r . g z         # O W A S P   C R S c d   o w a s p - m o d s e c u r i t y - c r s - 3 . 0 . 2 / c p   c r s - s e t u p . c o n f . e x a m p l e   c r s - s e t u p . c o n f v i m   / e t c / n g i n x / m o d s e c / m a i n . c o n f I n c l u d e   / e t c / n g i n x / m o d s e c / m o d s e c u r i t y . c o n f I n c l u d e   / u s r / l o c a l / o w a s p - m o d s e c u r i t y - c r s - 3 . 0 . 2 / c r s - s e t u p . c o n f I n c l u d e   / u s r / l o c a l / o w a s p - m o d s e c u r i t y - c r s - 3 . 0 . 2 / r u l e s / * . c o n f n g i n x   - s   r e l o a d         # n g i n x c u r l   h t t p : / / l o c a l h o s t         # T h a n k   y o u   f o r   r e q u e s t i n g   / c u r l   - H   " U s e r - A g e n t :   N i k t o "   h t t p : / / l o c a l h o s t         # 4 0 3   F o r b i d d e n W A F u s e r - a g e n t p e r l   n i k t o / p r o g r a m / n i k t o . p l   - h   l o c a l h o s t         # n i k t o n g i n x w e b +   7 6 8 7   r e q u e s t s :   0   e r r o r ( s )   a n d   8 3   i t e m ( s )   r e p o r t e d   o n   r e m o t e   h o s t         # 8 3 3 0 8 c p   n i k t o / p r o g r a m / n i k t o . c o n f . d e f a u l t   n i k t o / p r o g r a m / n i k t o . c o n f
v i m   n i k t o / p r o g r a m / n i k t o . c o n f   # 7 6 ; - s i t e f i l e s n i k t o +   7 5 8 3   r e q u e s t s :   0   e r r o r ( s )   a n d   7   i t e m ( s )   r e p o r t e d   o n   r e m o t e   h o s t 7 M o d S e c u r i t y r e s p o n s e n i k t o h t t p s : / / w w w . n g i n x . c o m / r e s o u r c e s / l i b r a r y / m o d s e c u r i t y - 3 - n g i n x - q u i c k - s t a r t - g u i d e / h t t p s : / / g i t h u b . c o m / S p i d e r L a b s / M o d S e c u r i t y h t t p s : / / g i t h u b . c o m / S p i d e r L a b s / M o d S e c u r i t y / t r e e / v 3 / m a s t e r * o w e n s k y F r e e B u f . C O M c p   n i k t o / p r o g r a m / n i k t o . c o n f . d e f a u l t   n i k t o / p r o g r a m / n i k t o . c o n f @ @ D E F A U L T = @ @ A L L ; - @ @ E X T R A S ; t e s t s ( r e p o r t : 5 0 0 ) ; - s i t e f i l e s p e r l   p r o g r a m / n i k t o . p l   - h   l o c a l h o s t
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则