Rapid7

module

Apache NiFi API Remote Code Execution

Disclosed
Oct 3, 2020
Created
Dec 3, 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

Graeme Robinson

Platform

Unix,Windows

Architectures

cmd

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

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.