Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed Security issue (#2131)
Fixed Insecure randomness vulnerability
  • Loading branch information
wr3nch0x1 committed Jun 28, 2021
1 parent e3868a6 commit f65c5eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenWork/Provider/Client.php
Expand Up @@ -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,
Expand Down

0 comments on commit f65c5eb

Please sign in to comment.