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

PHPServerMon PRNG has Insufficient Entropy

The setUserLoggedIn function in phpservermon uses a predictable random number generator, which could allow an attacker to guess session tokens or other security-sensitive values. The exploit has been publicly disclosed and may be used.

phpservermon/phpservermon

Originally disclosed on huntr

A vulnerability, which was classified as problematic, was found in phpservermon. Affected is the function setUserLoggedIn 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 bb10a5f3c68527c58073258cb12446782d223bc3. It is recommended to apply a patch to fix this issue. The identifier of this vulnerability is VDB-213744.

From the GitHub Advisory Database (GHSA-hc4j-7mqg-cxjj, 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 setUserLoggedIn function uses a non-cryptographic random number generator, making generated values predictable.

What the attacker needed

None

The fix

It is recommended to apply the patch with commit [redacted] to fix this issue.

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.

A random number generator is used to create unpredictable values, like session IDs. If it is predictable, an attacker might guess those values and impersonate users. This report says the function that logs users in uses such a weak generator.

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.