Solutions for SQL injection, file upload, and Restoration

Source: Internet
Author: User

 

Author: Lu renjia

Brief description:

1. On the qianniu file upload page, you can modify the URL parameter id and upload the file to any registered user directory.

Cause: the identity of the Uploader is not verified before the file is uploaded.

2. SQL Injection exists at the same time, and the database root permission can be used to remotely read data.

Cause: user input, cookie, and post data are not filtered.

Details: Both vulnerabilities are on this URL.

Http://upload.qiannao.com/tomos/ui/qnupload.jsp? Id = dazqh

1. If the parameter of the modified id is admin, you can upload the file to the file directory of the admin user.

 

2. At the same time, this URL has a serious injection vulnerability.


 

 

Proof of vulnerability:

 

 

The injection effect can be achieved through pangolin.

Solution: Authenticate the uploaded user.

Filter parameters on the upload page.

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.