Skip to content

Commit 242a5b8

Browse files
committed
fix bypass player pw remote.php
1 parent e25a203 commit 242a5b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/remote.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private function auth()
102102
if ($password_info['algo'] == 0) {
103103
$password_match = $this->player->password == sha1(OB_HASH_SALT . $_REQUEST['pw']);
104104
} else {
105-
$password_match = true; // password_verify($_REQUEST['pw'] . OB_HASH_SALT, $this->player->password);
105+
$password_match = password_verify(($_REQUEST['pw'] ?? '') . OB_HASH_SALT, $this->player->password);
106106
}
107107
} else {
108108
$password_match = false;

0 commit comments

Comments
 (0)