Description

A critical vulnerability has been uncovered in the Vesta Control Panel, a popular web interface for managing Linux servers, potentially allowing attackers to take over admin accounts. Adrian Tiron, a Cloud Application Security Consultant at Fortbridge, identified that the vulnerability exploits weaknesses in the entropy of Bash’s $RANDOM variable. Vesta is favored for its user-friendly design, which facilitates the management of hosting, domains, and databases. However, this focus on usability has led to security oversights. The password reset functionality relies on bash scripts that use $RANDOM to generate tokens. Unfortunately, this method is not cryptographically secure, making it vulnerable to brute-force attacks. When someone requests a password reset, a token is created, emailed to the user, and saved in their settings. Tiron demonstrated that by using a tool called BashRandomCracker, attackers can reverse-engineer the seed used by $RANDOM, allowing them to predict future values, including those for password reset tokens. The vulnerability stems from how Bash initializes its random number generator, using only the lower 20 bits of the timestamp, significantly reducing entropy. This allows attackers to narrow their brute-force efforts and successfully reset admin passwords. To mitigate this risk, users of Vesta Control Panel should enhance their security practices, particularly regarding password resets, and consider using stronger token generation methods. Regular monitoring for unauthorized access and frequent password changes are also highly recommended.