Rapid7 Vulnerability & Exploit Database

Xymon useradm Command Execution

Back to Search

Xymon useradm Command Execution

Disclosed
02/14/2016
Created
07/12/2019

Description

This module exploits a command injection vulnerability in Xymon versions before 4.3.25 which allows authenticated users to execute arbitrary operating system commands as the web server user. When adding a new user to the system via the web interface with `useradm.sh`, the user's username and password are passed to `htpasswd` in a call to `system()` without validation. This module has been tested successfully on Xymon version 4.3.10 on Debian 6.

Author(s)

  • Markus Krell
  • bcoles <bcoles@gmail.com>

Platform

BSD,Linux,Solaris,Unix

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/unix/webapp/xymon_useradm_cmd_exec
msf exploit(xymon_useradm_cmd_exec) > show targets
    ...targets...
msf exploit(xymon_useradm_cmd_exec) > set TARGET < target-id >
msf exploit(xymon_useradm_cmd_exec) > show options
    ...show and set options...
msf exploit(xymon_useradm_cmd_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

;