Using MySQL implicit type conversion in SQL injection to bypass WAF Detection

Source: Internet
Author: User

Web applications generally use form-based authentication (as shown in Figure). The processing logic is to pass the user name and password submitted in the form to the background database for query, determine whether the authentication is successful Based on the query results. For web applications with LAMP architecture, PHP is used for processing logic, and MySQL is used for background databases. In this process, due to poor processing, many serious vulnerabilities may occur. Apart from weak passwords and brute-force cracking, the most common one is SQL injection. SQL injection can be performed inSQLNuke -- mysql injection load_file Fuzz ToolThe focus of this blog is to use MySQL's invisible type conversion to bypass WAF detection. The following example shows the process. Bytes

 

 



Id = "form1" name = "form1" method = "post" action = "login. php">
UserName
Name = "user" type = "text" id = "user"/>



Password
Name = "password" type = "text" id = "password"/>




Name = "login" type = "submit" id = "login" value = "Login"/>


(2) login. php Authentication
 

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.