Dvbbs 8.2 SQL Injection Vulnerability Analysis

Source: Internet
Author: User
Vulnerability announcement: http://seclists.org/bugtraq/2008/May/0330.html

Method of exploits: a typical SQL injection vulnerability, as described in the announcement

Password = 123123 & codestr = 71 & cookiedate = 2 & userhidden = 2 & comeurl = index. asp & submit = % u7acb % u5373 % u767b % u5f55 & ajaxpost = 1 & AM

Vulnerability analysis: the mobile network is also a relatively old program in the ASP field. This time there is a low-level error in the new version 8.2. The vulnerability code is about 118 lines in login. asp.

......
Username = trim (dvbbs. checkstr (Request ("username ")))
If ajaxpro then username = Unescape (username)
......

The obtained username is checked first and then decoded by Unescape. As a result, the urlencode mode can be used for any checks, which is similar to the injection caused by urldecode in PHP, for example, you can use % 2527 to submit.

Patch solution: patch is also very simple. Change the above Code

......
Username = trim (dvbbs. checkstr (Request ("username ")))
If ajaxpro then username = trim (dvbbs. checkstr (Unescape (username )))
......

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.