Rapid7 Vulnerability & Exploit Database

Solaris ypupdated Command Execution

Back to Search

Solaris ypupdated Command Execution

Disclosed
12/12/1994
Created
05/30/2018

Description

This exploit targets a weakness in the way the ypupdated RPC application uses the command shell when handling a MAP UPDATE request. Extra commands may be launched through this command shell, which runs as root on the remote host, by passing commands in the format '|'. Vulnerable systems include Solaris 2.7, 8, 9, and 10, when ypupdated is started with the '-i' command-line option.

Author(s)

  • I)ruid <druid@caughq.org>

Platform

Solaris,Unix

Architectures

cmd

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/solaris/sunrpc/ypupdated_exec
msf exploit(ypupdated_exec) > show targets
    ...targets...
msf exploit(ypupdated_exec) > set TARGET < target-id >
msf exploit(ypupdated_exec) > show options
    ...show and set options...
msf exploit(ypupdated_exec) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;