Rapid7 Vulnerability & Exploit Database

FreeNAS exec_raw.php Arbitrary Command Execution

Back to Search

FreeNAS exec_raw.php Arbitrary Command Execution

Disclosed
11/06/2010
Created
05/30/2018

Description

This module exploits an arbitrary command execution flaw in FreeNAS 0.7.2 < rev.5543. When passing a specially formatted URL to the exec_raw.php page, an attacker may be able to execute arbitrary commands. NOTE: This module works best with php/meterpreter payloads.

Author(s)

  • MC <mc@metasploit.com>

Platform

PHP

Architectures

php

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

;