PT-2020-11366 · Vestacp · Vesta Control Panel

0Xecute

·

Published

2020-03-10

·

Updated

2020-03-20

·

CVE-2019-9859

CVSS v2.0

9.0

High

VectorAV:N/AC:L/Au:S/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions Vesta Control Panel (VestaCP) versions 0.9.7 through 0.9.8-23
Description The issue concerns an authenticated command execution that can result in remote root access on the server. VestaCP uses PHP as the frontend language and shell scripts to execute system actions, with PHP executing shell scripts through the exec function. This function can be dangerous if arguments passed to it are not filtered. Although VestaCP filters user input with the escapeshellarg function, which adds single quotes around a string and quotes/escapes any existing single quotes, it uses this function incorrectly in several places.
Recommendations For Vesta Control Panel (VestaCP) versions 0.9.7 through 0.9.8-23, consider disabling the exec function until a patch is available to prevent exploitation. Restrict access to shell scripts to minimize the risk of exploitation. Avoid using user input as arguments for the exec function until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

OS Command Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2019-9859

Affected Products

Vesta Control Panel