Unprotected Lexmark Printer

2013-03-28T00:00:00
ID OPENVAS:1361412562310103686
Type openvas
Reporter Copyright (C) 2013 Greenbone Networks GmbH
Modified 2020-04-01T00:00:00

Description

The remote Lexmark Printer is not protected by a password and/or permissions for default users are too lose.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
#
# Unprotected Lexmark Printer
#
# Authors:
# Michael Meyer <michael.meyer@greenbone.net>
#
# Copyright:
# Copyright (C) 2013 Greenbone Networks GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.103686");
  script_version("2020-04-01T10:41:43+0000");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_tag(name:"last_modification", value:"2020-04-01 10:41:43 +0000 (Wed, 01 Apr 2020)");
  script_tag(name:"creation_date", value:"2013-03-28 11:51:27 +0100 (Thu, 28 Mar 2013)");

  script_name("Unprotected Lexmark Printer");

  script_category(ACT_ATTACK);

  script_family("Default Accounts");
  script_copyright("Copyright (C) 2013 Greenbone Networks GmbH");
  script_dependencies("gb_lexmark_printer_consolidation.nasl", "gb_default_credentials_options.nasl");
  script_mandatory_keys("lexmark_printer/http/detected", "lexmark_printer/model");

  script_tag(name:"summary", value:"The remote Lexmark Printer is not protected by a password and/or permissions
  for default users are too lose.");

  script_tag(name:"impact", value:"This issue may be exploited by a remote attacker to gain access
  to sensitive information or modify system configuration without requiring authentication.");

  script_tag(name:"solution", value:"Set a password and/or restrict permissions for default users.");

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

  exit(0);
}

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

CPE_PREFIX = "cpe:/o:lexmark:";

if( ! infos = get_app_port_from_cpe_prefix( cpe:CPE_PREFIX, service:"www" ) )
  exit( 0 );

port = infos["port"];
cpe = infos["cpe"];

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

model = get_kb_item( "lexmark_printer/model" );
if( ! model )
  exit( 0 );

ret = check_lexmark_default_login( model:model, port:port );
if( ret && ret == 2 ) {
  security_message( port:port );
  exit( 0 );
}

exit( 99 );