GithubHelp home page GithubHelp logo

taley's Introduction

UCMS_v1.6.0 Arbitrary file upload vulnerability

vendor: http://uuu.la/

UCMS 1.6 installation package: http://uuu.la/uploadfile/file/ucms_1.6.zip

Vulnerability type:

V 1.6.0

Recurrence environment:

Windows 10

phpstudy

Vulnerability description:

The vulnerability lies in /ucms/sadmin/fileedit.php file, The file suffix verification can be bypassed by modifying the POST packet, so as to achieve arbitrary file upload.

Loophole recurrence:

ucms/sadmin/fileedit.php The code exists in the fileif(!@fwrite($fp,$content) && strlen($content)<>0){

image

Then track the parameters of the fwrite function $fp = @fopen($alldir.$filename,"w"); It is found that $fp is the receiving file, and fopen uses writing. If there is no such file, a new file will be created. $content is the value of co, which is the content written in. Then continue to track filename

image

Found that filename is the value of file. The file suffix verification can be bypassed by modifying the POST packet, so as to achieve arbitrary file upload.

image

First upload a txt type file, then edit and change the content to a php Trojan.

image

Save the modified file, then grab the data request package,In the process, change file=result.txt to file=333.php.

image

Then access the uploaded file 333.php. Get webshell.

image

taley's People

Contributors

yztale avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.