Skip to content
RCE Write-up Intermediate

This Kibana Vulnerability Can Give You Rce In A Snap Kibana Cve 2019 7609

Kibana versions before 6.6.1 contain a prototype pollution flaw in the Timelion and Canvas features that allows an attacker to inject environment variables and achieve remote code execution. An attacker with access to the Kibana web interface could run arbitrary commands on the server, leading to a reverse shell.

FreakyDodo Follow

Published on systemweakness.com

Going with a frantic schedule doesn’t spare you much time to play CTF’s but the love for hacking always leads me to solve spawn a machine and get some flags. As the saying goes “ A Hacker does for love, what other wouldn’t do for money”

FreakyDodo, on systemweakness.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a prototype pollution vulnerability in the Timelion expression parser that allows setting environment variables such as NODE_OPTIONS, which Node.js then uses to load a malicious file.

What the attacker needed

Access to Kibana web interface; Kibana version before 6.6.1; attacker-controlled listener

The fix

Kibana should be upgraded to version 6.6.1 or later, which fixes the vulnerability.

How it was found

  1. Go to the Timelion panel and enter a crafted expression that sets environment variables.
  2. Replace the IP address and port in the payload with the attacker's own.
  3. Start a listener on the chosen port on the attacker's machine.
  4. Go to the Canvas panel and wait for a reverse shell connection.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Kibana is a tool for making charts from data. A bug in its Timelion and Canvas features let an attacker run their own commands on the server, which is called remote code execution. This means the attacker could take full control of the machine.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by FreakyDodo

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.