CVE-2021-4240 phpservermon User.php generatePasswordResetToken predictable algorithm in random number generator
Predictable password reset tokens in phpservermon allow attackers to hijack user accounts.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-4240?
CVE-2021-4240 is a low-severity vulnerability in unspecified phpservermon, published on 15 Nov 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2021-4240?
2 open source packages ship an affected version, including phpservermon/phpservermon. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
phpservermon/phpservermon Packagist | All versions | 3.6.0 |
phpservermon/phpservermon Packagist | All versions | 3.6.0 |
Products include Phpservermonitor Php Server Monitor.
How do I fix CVE-2021-4240?
Upgrade phpservermon/phpservermon to 3.6.0 or later.
Is CVE-2021-4240 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-4240 exists.
Other vulnerabilities in unspecified phpservermon
Sources
Also known as GHSA-97w9-gcc7-vr8g.