Rapid7 Vulnerability & Exploit Database

TrixBox CE endpoint_devicemap.php Authenticated Command Execution

Back to Search

TrixBox CE endpoint_devicemap.php Authenticated Command Execution

Disclosed
04/28/2020
Created
05/05/2020

Description

This module exploits an authenticated OS command injection vulnerability found in Trixbox CE version 1.2.0 to 2.8.0.4 inclusive in the "network" POST parameter of the "/maint/modules/endpointcfg/endpoint_devicemap.php" page. Successful exploitation allows for arbitrary command execution on the underlying operating system as the "asterisk" user. Users can easily elevate their privileges to the "root" user however by executing "sudo nmap --interactive" followed by "!sh" from within nmap.

Author(s)

  • Anastasios Stasinopoulos ( <Anastasios Stasinopoulos (@ancst)>

Platform

Linux,Unix

Architectures

cmd, x86, x64

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

;