Rapid7 Vulnerability & Exploit Database

Apache NiFi API Remote Code Execution

Back to Search

Apache NiFi API Remote Code Execution

Disclosed
10/03/2020
Created
12/03/2020

Description

This module uses the NiFi API to create an ExecuteProcess processor that will execute OS commands. The API must be unsecured (or credentials provided) and the ExecuteProcess processor must be available. An ExecuteProcessor processor is created then is configured with the payload and started. The processor is then stopped and deleted. Verified against 1.12.1, 1.12.1-RC2, and 1.20.0

Author(s)

  • Graeme Robinson

Platform

Linux,OSX,Unix,Windows

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

;