Lucene search
+L

ExaGrid Default Credentials (HTTP)

🗓️ 07 Apr 2016 00:00:00Reported by Copyright (C) 2016 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 904 Views

ExaGrid Default Credentials (HTTP) vulnerability allows attackers to obtain sensitive information

Code
# SPDX-FileCopyrightText: 2016 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.105598");
  script_version("2023-07-20T05:05:17+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_name("ExaGrid Default Credentials (HTTP)");

  script_tag(name:"impact", value:"Attackers can exploit this issue to obtain sensitive information that may lead to further attacks.");

  script_tag(name:"vuldetect", value:"Try to login with default credentials 'support:support'.");

  script_tag(name:"solution", value:"Update to 4.8 P26 or later");

  script_tag(name:"summary", value:"The remote ExaGrid device has default credentials set.");

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

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

  script_tag(name:"last_modification", value:"2023-07-20 05:05:17 +0000 (Thu, 20 Jul 2023)");
  script_tag(name:"creation_date", value:"2016-04-07 17:41:14 +0200 (Thu, 07 Apr 2016)");
  script_category(ACT_ATTACK);
  script_family("Default Accounts");
  script_copyright("Copyright (C) 2016 Greenbone AG");
  script_dependencies("gb_get_http_banner.nasl", "gb_default_credentials_options.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("ExaGrid/banner");
  script_exclude_keys("default_credentials/disable_default_account_checks");

  exit(0);
}

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

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

port = http_get_port( default:80 );
banner = http_get_remote_headers( port:port );

if( ! banner || "Server: ExaGrid" >!< banner )
  exit( 0 );

user = "support";
pass = "support";

userpass = user + ":" + pass;
userpass64 = base64( str:userpass );

post_data = '<?xml version="1.0"?>
<IsysMessage>
   <header>
      <p2pVersion major="1" minor="0"/>
      <messageVersion major="1" minor="0"/>
   </header>
   <body>
      <action>ListAssets</action>
      <status>0</status>
      <parameters>
      </parameters>
   </body>
</IsysMessage>';

len = strlen( post_data );
useragent = http_get_user_agent();
host = http_host_name( port:port );

req = 'POST /init HTTP/1.1\r\n' +
      'Host: ' + host + '\r\n' +
      'User-Agent: ' + useragent + '\r\n' +
      'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n' +
      'Accept-Language: en-US,en;q=0.5\r\n' +
      'Accept-Encoding: identify\r\n' +
      'Content-Type: text/plain; charset=UTF-8\r\n' +
      'Content-Length: ' + len + '\r\n' +
      'Cookie: tree_GridTree_state=7\r\n' +
      'Authorization: Basic ' + userpass64 + '\r\n' +
      'Connection: close\r\n' +
      '\r\n' +
      post_data;
res = http_keepalive_send_recv( port:port, data:req );

if( res =~ "^HTTP/1\.[01] 200" && "listAssetsResponse" >< res && "Repository name" >< res ) {
  report = 'It was possible to login into the remote ExaGrid device using username `support` and password `support`.';
  security_message( port:port, data:report );
  exit( 0 );
}

exit( 0 );

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