Use of Predictable Algorithm in Random Number Generator Affecting phpservermon/phpservermon package, versions >=0.0.0


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (36th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use of Predictable Algorithm in Random Number Generator vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-PHPSERVERMONPHPSERVERMON-3121043
  • published16 Nov 2022
  • disclosed16 Nov 2022
  • creditAkshay Jain

Introduced: 16 Nov 2022

CVE-2021-4241  (opens in a new tab)
CWE-1241  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

phpservermon/phpservermon is a PHP Server Monitor.

Affected versions of this package are vulnerable to Use of Predictable Algorithm in Random Number Generator in the setUserLoggedIn() function in src/psm/Service/User.php, which uses the cryptographically insecure mt_rand() function to generate receipts. An attacker who has compromised a secret key could predict these values.

CVSS Scores

version 3.1