Skip to content

Commit 5f68c1b

Browse files
author
Serghey Rodin
committed
Timing attack fix from security experts https://arcturussecurity.com
1 parent 67a0e8d commit 5f68c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/reset/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
if ( $return_var == 0 ) {
4949
$data = json_decode(implode('', $output), true);
5050
$rkey = $data[$user]['RKEY'];
51-
if ($rkey == $_POST['code']) {
51+
if (hash_equals($rkey, $POST[‘code’])) {
5252
$v_password = tempnam("/tmp","vst");
5353
$fp = fopen($v_password, "w");
5454
fwrite($fp, $_POST['password']."\n");

0 commit comments

Comments
 (0)