Lucene search
+L

LG Smart IP Device Default Credentials (HTTP)

🗓️ 18 Sep 2018 00:00:00Reported by Copyright (C) 2018 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 14 Views

LG Smart IP Device Default Credentials (HTTP) vulnerability detected, allows unauthorized access with default 'admin:admin' credentials, affecting all LG Smart IP Devices. Mitigation involves changing the default password

Code
# SPDX-FileCopyrightText: 2018 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

if( description )
{
  script_oid("1.3.6.1.4.1.25623.1.0.113271");
  script_version("2023-07-20T05:05:17+0000");
  script_tag(name:"last_modification", value:"2023-07-20 05:05:17 +0000 (Thu, 20 Jul 2023)");
  script_tag(name:"creation_date", value:"2018-09-18 13:12:13 +0200 (Tue, 18 Sep 2018)");
  script_tag(name:"cvss_base", value:"10.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");

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

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

  script_name("LG Smart IP Device Default Credentials (HTTP)");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2018 Greenbone AG");
  script_family("Default Accounts");
  script_dependencies("gb_lg_smart_ip_device_detect.nasl", "gb_default_credentials_options.nasl");
  script_require_ports("Services/www", 8081);
  script_mandatory_keys("lg/smart_ip/detected");
  script_exclude_keys("default_credentials/disable_default_account_checks");

  script_tag(name:"summary", value:"The administrator account on LG Smart IP Devices uses
  the default username 'admin' and the default password 'admin'.");

  script_tag(name:"affected", value:"All LG Smart IP Devices.");

  script_tag(name:"solution", value:"Change the default password.");

  exit(0);
}

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

CPE = "cpe:/h:lg:smart_ip";

include( "host_details.inc" );
include( "http_func.inc" );
include( "http_keepalive.inc" );
include( "misc_func.inc" );

if( ! port = get_app_port( cpe: CPE ) )
  exit( 0 );

if( ! location = get_app_location( cpe: CPE, port: port ) )
  exit( 0 );

if( location == "/" )
  location = "";

url = location + "/httpapi?GetUserLevel&ipAddress=";
auth_header = make_array("Authorization", "Basic " + base64( str: "admin:admin" ));

req = http_get_req( port: port, url: url, add_headers: auth_header, accept_header: "*/*" );
res = http_keepalive_send_recv( data: req, port: port );

if( res =~ "^HTTP/1\.[01] 200" && res !~ 'Error' && res =~ 'UserLevel[ ]*:[ ]*USER_ADMIN' ) {
  report = "It was possible to login using the username 'admin' and the password 'admin'.";
  security_message( data: report, port: port );
  url = location + '/httpapi?GetVersion';
  req = http_get_req( port: port, url: url, add_headers: auth_header, accept_header: "*/*" );
  res = http_keepalive_send_recv( data: req, port: port );
  swVer = eregmatch( string: res, pattern: 'swVersion[ ]*:[ ]*([0-9.]+)', icase: TRUE );
  hwVer = eregmatch( string: res, pattern: 'hwVersion[ ]*:[ ]*([0-9.]+)', icase: TRUE );
  fwVer = eregmatch( string: res, pattern: 'fwVersion[ ]*:[ ]*([0-9.]+)', icase: TRUE );
  if( ! isnull( swVer[1] ) )
    set_kb_item( name: "lg/smart_ip/sw_version", value: swVer[1] );
  if( ! isnull( hwVer[1] ) )
    set_kb_item( name: "lg/smart_ip/hw_version", value: hwVer[1] );
  if( ! isnull( fwVer[1] ) )
    set_kb_item( name: "lg/smart_ip/fw_version", value: fwVer[1] );
  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