There was an error while loading. Please reload this page.
2 parents e8fd506 + dda6b12 commit 56b11a0Copy full SHA for 56b11a0
1 file changed
vulnerabilities/weak_id/source/impossible.php
@@ -3,7 +3,7 @@
3
$html = "";
4
5
if ($_SERVER['REQUEST_METHOD'] == "POST") {
6
- $cookie_value = sha1(mt_rand() . time() . "Impossible");
+ $cookie_value = bin2hex(random_bytes(20));
7
setcookie("dvwaSession", $cookie_value, time()+3600, "/vulnerabilities/weak_id/", $_SERVER['HTTP_HOST'], true, true);
8
}
9
?>
0 commit comments