dedecms system backend login prompts that the username or password does not exist.

Published: 2013-06-19

dedecms has recently been reported to have a very large number of security vulnerabilities. Recently, some users have reported that although the backend administrator account password has not been changed, they cannot log in normally and receive a prompt that the username does not exist. Research has found that it is a program vulnerability in which the administrator has been directly tampered with. The solution is as follows.

1. First, please use phpmyadmin to log in to mysql management. For virtual hosting, you can click Database on the left side of the control panel, then click Manage mysql Database Online to enter phpmyadmin to manage the database.

image.png

After logging in, check whether the user in the dede_admin table has been tampered with to spider  Click Edit, directly change spider to the administrator you need, and replace pwd with 962ac59075b964b07152. This password is 123. After making the changes, please log in to the website backend promptly to change the password.

 

2. Download /include/dedesql.class.php and /include/dedesqli.class.php

Find the following code:

    if(isset($GLOBALS['arrs1']))

    {

    $v1 = $v2 = '';

    for($i=0;isset($arrs1[$i]);$i++)

    {

    $v1 .= chr($arrs1[$i]);

    }

    for($i=0;isset($arrs2[$i]);$i++)

    {

    $v2 .= chr($arrs2[$i]);

    }

    $GLOBALS[$v1] .= $v2;

    }

    Change to:

    $GLOBALS['arrs1']=array();//fixedbyknownsec.com 2013.06.07

    if(isset($GLOBALS['arrs1']))

    {

    $v1 = $v2 = '';

    for($i=0;isset($arrs1[$i]);$i++)

    {

    $v1 .= chr($arrs1[$i]);

    }

    for($i=0;isset($arrs2[$i]);$i++)

    {

    $v2 .= chr($arrs2[$i]);

    }

    $GLOBALS[$v1] .= $v2;

 }

Some versions of dedesqli.class.php do not contain this code. Please make a backup before modifying, and then re-upload. The source of this temporary patch method for this vulnerability is: http://www.cctime.com/html/2013-6-8/2013681021556610.htm Our company has only tested that this method is effective in patching the account vulnerability. We have not tested whether it has any impact on other functions of the system. If there is any impact, please restore and test. dedecms has many and very serious vulnerabilities. Please pay attention to upgrading and updating patches in a timely manner.