Skip to content
Crypto Disclosed report Intermediate CVE-2021-4240

Insufficient Entropy in PHPServerMon PRNG

The password reset token generator in PHPServerMon used a predictable random number algorithm, making tokens guessable. An attacker could potentially predict or brute-force reset tokens to take over accounts.

phpservermon/phpservermon

Originally disclosed on huntr

A vulnerability, which was classified as problematic, was found in phpservermon. This affects the function generatePasswordResetToken of the file src/psm/Service/User.php. The manipulation leads to use of predictable algorithm in random number generator. The exploit has been disclosed to the public and may be used. The name of the patch is 3daa804d5f56c55b3ae13bfac368bb84ec632193. It is recommended to apply a patch to fix this issue. The identifier VDB-213717 was assigned to this vulnerability.

From the GitHub Advisory Database (GHSA-97w9-gcc7-vr8g, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the password reset token was generated using a non-cryptographically secure pseudo-random number generator, making the tokens predictable.

Impact

An attacker could predict password reset tokens and potentially take over user accounts.

What the attacker needed

Access to password reset function

The fix

The issue was fixed by applying a patch; the text recommends applying it.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When you ask for a password reset, the site creates a special code (a token) that proves you own the account. This code must be random so nobody can guess it. Here, the code was made with a weak random method, so an attacker might guess the code and reset someone else's password.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

More from phpservermon/phpservermon

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.