module

Kibana Upgrade Assistant Telemetry Collector Prototype Pollution

Disclosed
2020-04-17
Created
2023-10-07

Description

Kibana before version 7.6.3 suffers from a prototype pollution bug within the
Upgrade Assistant. By setting a new constructor.prototype.sourceURL value we're
able to execute arbitrary code.
Code execution is possible through two different ways. Either by sending data
directly to Elastic, or using Kibana to submit the same queries. Either method
enters the polluted prototype for Kibana to read.

Kibana will either need to be restarted, or collection happens (unknown time) for
the payload to execute. Once it does, cleanup must delete the .kibana_1 index
for Kibana to restart successfully. Once a callback does occur, cleanup will
happen allowing Kibana to be successfully restarted on next attempt.

Authors

h00die
Alex Brasetvik (alexbrasetvik)

Platform

Linux

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

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.