Default password router Pirelli AGE mB

2005-11-03T00:00:00
ID OPENVAS:136141256231012641
Type openvas
Reporter Copyright (C) 1999 Anonymous
Modified 2019-08-30T00:00:00

Description

The remote host is a Pirelli AGE mB (microBusiness) router with its default password set (admin/microbusiness).

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
#
# Default password router Pirelli AGE mB
#
# Authors:
# Anonymous
#
# Copyright:
# Copyright (C) 1999 Anonymous
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2,
# as published by the Free Software Foundation
#
# 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.12641");
  script_version("2019-08-30T13:00:30+0000");
  script_tag(name:"last_modification", value:"2019-08-30 13:00:30 +0000 (Fri, 30 Aug 2019)");
  script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
  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_cve_id("CVE-1999-0502");
  script_name("Default password router Pirelli AGE mB");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 1999 Anonymous");
  script_family("Default Accounts");
  script_dependencies("telnetserver_detect_type_nd_version.nasl", "gb_default_credentials_options.nasl");
  script_require_ports("Services/telnet", 23);
  script_mandatory_keys("telnet/banner/available");
  script_exclude_keys("default_credentials/disable_default_account_checks");

  script_tag(name:"solution", value:"Telnet to this router and set a password immediately.");

  script_tag(name:"summary", value:"The remote host is a Pirelli AGE mB (microBusiness) router with its
  default password set (admin/microbusiness).");

  script_tag(name:"impact", value:"An attacker could telnet to it and reconfigure it to lock the owner out
  and to prevent him from using his Internet connection, and do bad things.");

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

  exit(0);
}

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

# If optimize_test = no
if( get_kb_item( "default_credentials/disable_default_account_checks" ) ) exit( 0 );

port = telnet_get_port( default:23 );

banner = telnet_get_banner( port:port );
if( ! banner || "USER:" >!< banner ) exit( 0 );

soc = open_sock_tcp( port );
if( soc ) {

  r = recv_until( socket:soc, pattern:"(USER:|ogin:)" );
  if ( "USER:" >!< r ) {
    close( soc );
    exit( 0 );
  }

  s = string( "admin\r\nmicrobusiness\r\n" );
  send( socket:soc, data:s );
  r = recv_until( socket:soc, pattern:"Configuration" );
  close( soc );

  if( r && "Configuration" >< r ) {
    security_message( port:port );
    exit( 0 );
  }
}

#Second try as User (reopen soc because wrong pass disconnect)
soc = open_sock_tcp( port );
if( soc ) {

  r = recv_until( socket:soc, pattern:"(USER:|ogin:)" );
  if ( "USER:" >!< r ) {
    close( soc );
    exit( 0 );
  }

  s = string( "user\r\npassword\r\n" );
  send( socket:soc, data:s );
  r = recv_until( socket:soc, pattern:"Configuration" );
  close( soc );

  if( r && "Configuration" >< r ) {
    security_message( port:port );
  }
}

exit( 0 );