vendor:
MaxDB
by:
Luigi Auriemma
7.5
CVSS
HIGH
Remote Command Execution
78
CWE
Product Name: MaxDB
Affected Version From: <= 7.6.03 build 007
Affected Version To: 7.6.03 build 007
Patch Exists: YES
Related CWE: N/A
CPE: a:sap:maxdb
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Windows, Linux and Solaris
2008
SAP MaxDB pre-auth remote commands execution
The MaxDB server executes 'cons.exe DATABASE COMMAND' through system() when some special commands are called by the user. Some of these special commands are 'show' and 'exec_sdbinfo' and this last one is just one of the small amount of commands which can be executed by the unauthenticated users before logging in. The usage of system() for executing the cons program allows an external unauthenticated attacker to execute any command he wants on the target SAP MaxDB server simply passing the '&&' or other patterns for the execution of multiple commands in the shell.
Mitigation:
Upgrade to version 7.6.04 or later.