Skip to content
Permalink
Browse files
Fixed Security issue (#2131)
Fixed Insecure randomness vulnerability
  • Loading branch information
wr3nch0x1 committed Jun 28, 2021
1 parent e3868a6 commit f65c5ebb067b5e1fb37fca4dd99b752e51053800
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/OpenWork/Provider/Client.php
@@ -44,7 +44,7 @@ public function __construct(ServiceContainer $app)
public function getLoginUrl(string $redirectUri = '', string $userType = 'admin', string $state = '')
{
$redirectUri || $redirectUri = $this->app->config['redirect_uri_single'];
$state || $state = rand();
$state || $state = random_bytes(64);
$params = [
'appid' => $this->app['config']['corp_id'],
'redirect_uri' => $redirectUri,

0 comments on commit f65c5eb

Please sign in to comment.