Description
admin/libraries/view.functions.php in FreePBX 2.9 before 2.9.0.14, 2.10 before 2.10.1.15, 2.11 before 2.11.0.23, and 12 before 12.0.1alpha22 does not restrict the set of functions accessible to the API handler, which allows remote attackers to execute arbitrary PHP code via the function and args parameters to admin/config.php.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
FreePBX config.php Remote Code Execution
exploit/unix/webapp/freepbx_config_exec
Exploit-DB 2
- FreePBX - 'config.php' Remote Code Execution (Metasploit) EDB-32512 · remote · Mar 25, 2014 · verified
- FreePBX 2.11.0 - Remote Command Execution EDB-32214 · webapps · Mar 12, 2014 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://github.com/0x00string/oldays/blob/master/CVE-2014-1903.pl
- 103240 vdb-entry
- http://code.freepbx.org/changelog/FreePBX_Framework?cs=a29382efeb293ef4f42aa9b841dfc8eabb2d1e03
- http://code.freepbx.org/changelog/FreePBX_SVN?cs=16429
- 20140211 Re: Freepbx , php code execution exploit mailing-list
- http://packetstormsecurity.com/files/125215/FreePBX-2.9-Remote-Code-Execution.html
- 20140211 Freepbx , php code execution exploit mailing-list
- http://issues.freepbx.org/browse/FREEPBX-7123
- http://www.freepbx.org/news/2014-02-06/security-vulnerability-notice
- http://issues.freepbx.org/browse/FREEPBX-7117
- http://packetstormsecurity.com/files/125166/FreePBX-2.x-Code-Execution.html
- 20140211 [CVE-2014-1903] FreePBX 2.9 through 12 RCE mailing-list