A wonderful file upload on ZTE bypasses GetShell

Source: Internet
Author: User

A wonderful file upload on ZTE bypasses GetShell

After a long time, I finally uploaded it. Come to the homepage ~

http://www.appstar.com.cn

On the ZTE application star website, we saw a Common File Upload Bypass Vulnerability.

Next let's take a look at the wonderful file upload.


#1. First, you must go to the upload location and find a place to create a graphic APP. During the process, you will be asked to upload the relevant files, upload a correct docx document before uploading the jsp file. The following message is displayed:





#2 originally intended to use the burp interception for bypassing, and found that no message was intercepted, So I analyzed it for a long time and found this:

The file upload format is controlled by the imgTextBook. js file.



#3. log out of the website, clear all the caches, enable the interception server with burp, and wait for the imgTextBook to be loaded again. js request, and then put the requested imgTextBook. the js file has been changed and has been blocked for a long time:

Okay, the js file has been changed:





#4 next, you can directly upload the jsp shell. You can easily find the uploaded file path by checking the js Code:





Shell address:Http://www.appstar.com.cn/upload/itBook/2015010507709/it201503010048023471/word/J.jsp

 

 

Solution:

Filter

 

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.