Rapid7 Vulnerability & Exploit Database

Apache CouchDB Arbitrary Command Execution

Back to Search

Apache CouchDB Arbitrary Command Execution

Disclosed
04/06/2016
Created
07/25/2018

Description

CouchDB administrative users can configure the database server via HTTP(S). Some of the configuration options include paths for operating system-level binaries that are subsequently launched by CouchDB. This allows an admin user in Apache CouchDB before 1.7.0 and 2.x before 2.1.1 to execute arbitrary shell commands as the CouchDB user, including downloading and executing scripts from the public internet.

Author(s)

  • Max Justicz
  • Joan Touzet
  • Green-m <greenm.xxoo@gmail.com>

Platform

Linux

Architectures

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

;