Fix phpmyadmin-security#254 CSRF allowing password reset
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
parent
6c03ebad38
commit
7d3f203131
@ -43,11 +43,11 @@ if ($cfg['Server']['auth_type'] == 'config' || ! $cfg['ShowChgPassword']) {
|
||||
* If the "change password" form has been submitted, checks for valid values
|
||||
* and submit the query or logout
|
||||
*/
|
||||
if (isset($_REQUEST['nopass'])) {
|
||||
if ($_REQUEST['nopass'] == '1') {
|
||||
if (isset($_POST['nopass'])) {
|
||||
if ($_POST['nopass'] == '1') {
|
||||
$password = '';
|
||||
} else {
|
||||
$password = $_REQUEST['pma_pw'];
|
||||
$password = $_POST['pma_pw'];
|
||||
}
|
||||
$change_password_message = $userPassword->setChangePasswordMsg();
|
||||
$msg = $change_password_message['msg'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user