Rapid7 Vulnerability & Exploit Database

Xymon useradm Command Execution

Back to Search

Xymon useradm Command Execution



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.


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




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
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