Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2021-4240 — phpservermon

⚪ Unknown ✅ No Known Exploit CWE-1241 OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Insufficient Entropy in PHPServerMon PRNG

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.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality low, integrity none, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: Low — limited, and the attacker does not choose what is affected.
  • Integrity impact: None.
  • Availability impact: None.

Weakness class

CVE-2021-4240 is classified as CWE-1241: Use of Predictable Algorithm in Random Number Generator. The device uses an algorithm that is predictable and generates a pseudo-random number.

Affected software

CVE-2021-4240 is recorded against 1 package.

  • phpservermon/phpservermon (fixed in 3.6.0)

Timeline and source

Published on 16 November 2022 and last revised on 20 February 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

nvd.nist.gov (Advisory)
github.com (Web)
github.com (Package)
huntr.dev (Web)
vuldb.com (Web)

Other advisories for this package

phpservermon/phpservermon has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-1241: Use of Predictable Algorithm in Random Number Generator) in other software:

Details

Severity Unknown
CVSS Score N/A
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CWE CWE-1241
Public Exploit ✅ No
Source OSV
Published 2022-11-16
Updated 2026-08-20
Modified 2024-02-20
Fix URL N/A

Affected Packages

Software From version Fixed in
phpservermon/phpservermon 3.6.0

Similar Threats

Free Vulnerability Check

Is your site affected by CVE-2021-4240?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2021-4240 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVE