Resolve DiscuzX3.3 Login page password plaintext transmission problem

Source: Internet
Author: User
Tags md5 php file

1, uc_server login page modification:
D:\Apache24\htdocs\uc_server\data\view\admin_login.php
The third line adds:

<script type= "Text/javascript" src= ". /static/js/md5.js "></script>

33 Line modified to:

<p> Password: <input type= "password" name= "password" class= "TXT" tabindex= "2" id= "password" onblur= "this.value = hex_ MD5 (this.value); " /></p>

Background modification:
D:\Apache24\htdocs\uc_server\control\admin\user.php function Onlogin () method
76 lines:

$MD 5password =  MD5 (MD5 ($PASSWORD). Uc_foundersalt);

Revision changed to

$MD 5password =  MD5 ($password. Uc_foundersalt);

86 lines:

$MD 5password =  MD5 (MD5 ($PASSWORD). $admin [' salt '];

Revision changed to

$MD 5password =  MD5 ($password. $admin [' salt '];

2, discuz Management Center login page Modified:
D:\Apache24\htdocs\source\admincp\admincp_login.php file
55 rows added:

<script type= "Text/javascript" src= ". /static/js/md5.js "></script>

120 lines:

<p class= "LoginForm" ><input name= "Admin_password" tabindex= "1" type= "password" class= "TXT" autocomplete= " Off "/></p>

Revision changed to

<p class= "LoginForm" ><input name= "Admin_password" tabindex= "1" type= "password" class= "TXT" autocomplete= " Off "onblur=" This.value=hex_md5 (this.value) "/></p>

D:\Apache24\htdocs\uc_client\model\user.php Check_login (username, username, password, & $user) method
123 lines:

ElseIf ($user [' password ']! = MD5 (MD5 ($PASSWORD). $user [' salt '])

Revision changed to

ElseIf ($user [' password ']! = MD5 ($password. $user [' salt '])

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.