How to upgrade the DiscuzX3 Forum security patch in bae

Source: Internet
Author: User
Yesterday we saw that we could set up the discuz forum on the BAE, and we tried it. the installation was successful, but the upload package provided by the author was not the latest and there were two SQL security vulnerabilities, if we log on to the background, we will be prompted to upgrade, but we cannot upgrade. Therefore, we can only upgrade it manually. In fact, many people know that apart from the 0-day attack, we can build it on BAE yesterday. DiscuzAfter the forum, I tried it. the installation was successful, but the upload package provided by the author is not the latest. There are two SQL security vulnerabilities. if we log on to the background, you will be prompted for the upgrade, but you cannot upgrade it.
Therefore, we can only upgrade it manually.

In fact, many people know that apart from 0-day attacks, there are also 1-day attacks and 2-day attacks, that is, after Microsoft releases a security patch, it compares the file conditions before and after the patch, function conditions, and manual reproduction of vulnerabilities, I quickly analyzed the vulnerabilities and used them to complete the upgrade today.
I am not very familiar with the source code of discuz. I can only get started.

First, I downloaded the old version of discuz 2.5 utf8 and installed it. a lot of files were generated in the web Directory, backed up, and saved.
Then, upgrade discuz and compare the files.



The above is the upgraded code. Based on this, we can directly modify it in the webpage edition editing of bae.
Log on to the background and select repair again.




This article hopes to provide a way of thinking, rather than how to solve this problem. In fact, there are differences in the data directory under the discuz directory, after I modified discuz_database.php, I can upgrade it.
If you cannot, you can also manually upgrade all content.

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.