Multiple versions of Discuz NT File Upload Vulnerability

Source: Internet
Author: User

Affected Versions:It seems that all of them are affected.


Vulnerability file: tools/ajax. aspx

 

Vulnerability Analysis: ajax requests on this page do not have permission verification, so visitors can call all of the methods in the page with the permission, which is very dangerous. Therefore, the following vulnerability occurs.

 

 

When the filename and upload parameters are not empty at the same time, obtain the input value, decrypt and generate the uid, then call UploadTempAvatar (uid) to upload the Avatar, and continue to follow up the UploadTempAvatar method:


 

 

Then, the uploaded file IIS6 will be executed directly to obtain the webshell.

Example:

1. Target Site: http://www.xxxxer.net

2. Forged reference, because the ajax page only verifies the reference.

3. construct the value of the input parameter, because our goal is to assign a value to the uid "test. asp; ", uid is decrypted by input, which is located in/config/general. config), for "test ;. asp "encrypted to obtain the input value" 20176iiayany7w0695pyvdoa = ".

4. Construct request parameters:

 

 

After the upload is successful, the shell address will be displayed directly,

 

 

Webshell is obtained successfully:


 

However, in the actual test, some of them failed, and they were too reluctant to find the reason. If you are interested, continue to study ^. ^. Cut off the official website and read the following:

 



Supplementary description of Jannock:

 

In fact, this is not universal. The Passwordkey will be regenerated during normal installation. It is estimated that you have used the source code for installation. However, there are other ways to use system generation.



Author: rebeyond from: I .S. T. O Information Security Team

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.