Oracle Virtual Server Agent Command Injection Vulnerability
13 Oct. 2010
Summary
Injection flaws, such as SQL, OS, and LDAP injection, occur in Oracle Virtual Server Agent when untrusted data is sent to an interpreter as part of a command or query. The attacker s hostile data can trick the interpreter into executing unintended commands or accessing unauthorized data.
Vulnerable Systems:
*Oracle Virtual Server release 2.2.0 with Oracle VM Agent 2.3
Immune Systems:
* Oracle Virtual Server release 2.2.1
Oracle VS Agent is prone to a remote command execution vulnerability because the software fails to adequately sanitize user-supplied input.
Oracle VS Agent exposes through XML-RPC several functions. One of these functions is validate_master_ip, which receives four parameters. The second parameter "proxy", is vulnerable to command injection, because it is not properly sanitized and its content is concatenated in an operative system command, executed as a highly privileged user (typically root).
The following POST message can be sent to the VM Agent XML-RPC port. By doing this, the ping command is executed as follows: