Lucene search
+L

Inim SmartLAN Hardcoded Credentials (Telnet)

🗓️ 17 Dec 2019 00:00:00Reported by Copyright (C) 2019 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 27 Views

Inim SmartLAN Hardcoded Credentials (Telnet) vulnerability allows unauthorized system acces

Related
Refs
Code
# SPDX-FileCopyrightText: 2019 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

CPE = "cpe:/a:inim:smartlan_g";

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.143258");
  script_version("2026-01-21T05:50:46+0000");
  script_tag(name:"last_modification", value:"2026-01-21 05:50:46 +0000 (Wed, 21 Jan 2026)");
  script_tag(name:"creation_date", value:"2019-12-17 03:16:07 +0000 (Tue, 17 Dec 2019)");
  script_tag(name:"cvss_base", value:"7.8");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:N/A:N");
  script_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2026-01-08 00:15:59 +0000 (Thu, 08 Jan 2026)");

  script_cve_id("CVE-2019-25291");

  script_tag(name:"qod_type", value:"exploit");

  script_tag(name:"solution_type", value:"WillNotFix");

  script_name("Inim SmartLAN Hardcoded Credentials (Telnet)");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2019 Greenbone AG");
  script_family("Default Accounts");
  script_dependencies("gb_inim_smartlan_consolidation.nasl",
                      "gb_default_credentials_options.nasl");
  script_mandatory_keys("inim/smartlan/telnet/detected");
  script_require_ports("Services/telnet", 23);
  script_exclude_keys("default_credentials/disable_default_account_checks");

  script_tag(name:"summary", value:"SmartLAN devices utilize hardcoded credentials within its Linux
  distribution image.");

  script_tag(name:"vuldetect", value:"The script tries to login via Telnet with the default
  credentials.");

  script_tag(name:"insight", value:"The devices utilize hard-coded credentials within its Linux
  distribution image. These sets of credentials are never exposed to the end-user and cannot be
  changed through any normal operation of the smart home device.");

  script_tag(name:"impact", value:"An attacker could exploit this vulnerability by logging in and
  gain system access");

  script_tag(name:"solution", value:"No known solution was made available for at least one year
  since the disclosure of this vulnerability. Likely none will be provided anymore. General
  solution options are to upgrade to a newer release, disable respective features, remove the
  product or replace the product by another one.");

  script_xref(name:"URL", value:"https://www.zeroscience.mk/en/vulnerabilities/ZSL-2019-5546.php");

  exit(0);
}

if (get_kb_item("default_credentials/disable_default_account_checks"))
  exit(0);

include("dump.inc");
include("host_details.inc");
include("misc_func.inc");
include("telnet_func.inc");

if (!port = get_app_port(cpe: CPE, service: "telnet"))
  exit(0);

if (!get_app_location(cpe: CPE, port: port, nofork:TRUE))
  exit(0);

creds = make_array("root", "pass",
                   "logout", "logout");
found = make_array();

foreach user (keys(creds)) {
  soc = open_sock_tcp(port);
  if (!soc)
    continue;

  recv = telnet_negotiate(socket: soc);
  if ("login:" >< recv) {
    send(socket: soc, data: user + '\r\n');
    recv = recv(socket: soc, length: 512);
    if ("Password:" >< recv) {
      send(socket: soc, data: creds[user] + '\r\n');
      recv = recv(socket:soc, length:1024);

      if ("Login incorrect" >!< recv) {
        send(socket: soc, data: 'id\r\n');
        recv = recv(socket:soc, length:1024);
        if (recv =~ "uid=[0-9]+.*gid=[0-9]+.*")
          found[user] = creds[user];
      }
    }
  }

  close(soc);
}

foreach user (keys(found))
  report += '\nUsername: ' + user + "   Password: " + found[user];

if (report) {
  report = 'It was possible to login with the following credentials:\n' + report;
  security_message(port: port, data: report);
  exit(0);
}

exit(99);

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

21 Jan 2026 00:00Current
5.3Medium risk
Vulners AI Score5.3
CVSS 3.17.5
CVSS 49.3
EPSS0.00373
SSVC
27