Attackers can bypass the faisunzip. php compression program to package the entire site program.

Source: Internet
Author: User

As required by JJ, write an analysis source code process:


Attackers can bypass the faisunzip compression program to package the entire site program.
When I scanned the website today, I found a compressed file program: zip. php.



Why can't I enter the code? Here I want to bypass the program and check the program code:


 

Then, I constructed the parameters through the hidden domain of Firefox login to this step:

 

Click to submit:

 

Tip: No file is selected or the directory description is helpful:

I continue to check that the Code does exist.

 

Let's look up;

 

Okay, let's look for the dfile array control.

 


Okay. We can still construct these parameters on the login page.


 
After the two statements are added, an error is reported when the package is large, but the operation still succeeds. When an error is reported, the path can be exposed.


 
And construct the following html to do this.
<Input type = "hidden" value = "dozip" id = "myaction" name = "myaction">
<Input name = "dfile []" type = 'checkbox' value = "/usr/home/hmu080012" checked>
Package again.
The prompt is packed.

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.