CVE-2021-46850 (published 2022-10-24T14:15Z)

myVesta Control Panel before 0.9.8-26-43 and Vesta Control Panel before 0.9.8-26 are vulnerable to command injection. An authenticated and remote administrative user can execute arbitrary commands via the v_sftp_license parameter when sending HTTP POST requests to the /edit/server endpoint.

CVSS v3 base score: 7.2, HIGH (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H)

Weakness information:
cwe_id: CWE-88
cwe_name: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
description: The product constructs a string for a command to be executed by a separate component
in another control sphere, but it does not properly delimit the
intended arguments, options, or switches within that command string.
extended_description: 
            When creating commands using interpolation into a string, developers may assume that only the arguments/options that they specify will be processed.  This assumption may be even stronger when the programmer has encoded the command in a way that prevents separate commands from being provided maliciously, e.g. in the case of shell metacharacters.  When constructing the command, the developer may use whitespace or other delimiters that are required to separate arguments when the command. However, if an attacker can provide an untrusted input that contains argument-separating delimiters, then the resulting command will have more arguments than intended by the developer.  The attacker may then be able to change the behavior of the command.  Depending on the functionality supported by the extraneous arguments, this may have security-relevant consequences.
         
         

Fix information:
repo_url: https://github.com/myvesta/vesta
commit_details: repo_url: https://github.com/myvesta/vesta
author: myvesta
author_date: 2021-03-15 13:55:11+01:00
msg: Checking licence format

Credits to:  @numanturle Numan Türle
repository: repo_url: https://github.com/myvesta/vesta
repo_name: myvesta/vesta
description:  myVESTA Control Panel
repo_language: PHP
owner: myvesta
file_changes: filename: v-activate-vesta-license
change_type: ModificationType.MODIFY
diff: @@ -27,7 +27,7 @@ source $VESTA/conf/vesta.conf
 
 # Checking arg number
 check_args '2' "$#" 'MODULE LICENSE'
-
+is_user_format_valid "$license" "license"
 
 #----------------------------------------------------------#
 #                       Action                             #

programming_language: Shell
repo_url: https://github.com/serghey-rodin/vesta
commit_details: repo_url: https://github.com/serghey-rodin/vesta
author: Anton Reutov
author_date: 2021-07-26 16:41:04+03:00
msg: Checking licence format
repository: repo_url: https://github.com/serghey-rodin/vesta
repo_name: outroll/vesta
description: VESTA Control Panel
repo_language: PHP
owner: serghey-rodin
file_changes: filename: v-activate-vesta-license
change_type: ModificationType.MODIFY
diff: @@ -28,6 +28,7 @@ source $VESTA/conf/vesta.conf
 # Checking arg number
 check_args '2' "$#" 'MODULE LICENSE'
 
+is_user_format_valid "$license" "license"
 
 #----------------------------------------------------------#
 #                       Action                             #

programming_language: Shell