Lucene search

K
openvasCopyright (C) 2015 Greenbone Networks GmbHOPENVAS:1361412562310106006
HistoryJun 11, 2015 - 12:00 a.m.

SysAid < 15.2 Unauthenticated File Upload Vulnerability

2015-06-1100:00:00
Copyright (C) 2015 Greenbone Networks GmbH
plugins.openvas.org
13

CVSS2

6.8

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

AI Score

6.6

Confidence

Low

EPSS

0.9

Percentile

98.8%

SysAid Help Desktop Software is prone to a unauthenticated file
upload vulnerability

# Copyright (C) 2015 Greenbone Networks GmbH
# 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-or-later
#
# 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.

CPE = "cpe:/a:sysaid:sysaid";

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.106006");
  script_version("2022-08-29T10:21:34+0000");
  script_tag(name:"last_modification", value:"2022-08-29 10:21:34 +0000 (Mon, 29 Aug 2022)");
  script_tag(name:"creation_date", value:"2015-06-11 10:02:43 +0700 (Thu, 11 Jun 2015)");
  script_tag(name:"cvss_base", value:"6.8");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:P");

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

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

  script_cve_id("CVE-2015-2995");

  script_name("SysAid < 15.2 Unauthenticated File Upload Vulnerability");

  script_category(ACT_GATHER_INFO);

  script_copyright("Copyright (C) 2015 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("gb_sysaid_help_desk_http_detect.nasl");
  script_require_ports("Services/www", 8080);
  script_mandatory_keys("sysaid/http/detected");

  script_tag(name:"summary", value:"SysAid Help Desktop Software is prone to a unauthenticated file
  upload vulnerability");

  script_tag(name:"vuldetect", value:"- Sends a crafted HTTP GET request and checks the response.

  - Checks if a vulnerable version is present on the target host.");

  script_tag(name:"insight", value:"The vulnerability exists in the RdsLogsEntry servlet which
  accepts unauthenticated file uploads and handles zip file contents in an insecure way. Note that this
  will only work if the target is running Java 6 or 7 up to 7u25, as Java 7u40 and above introduce a protection
  against null byte injection in file names.");

  script_tag(name:"impact", value:"An unauthenticated attacker can upload arbitrary files which could
  lead to remote code execution.");

  script_tag(name:"affected", value:"SysAid Help Desktop version 15.1.x and before.");

  script_tag(name:"solution", value:"Update to version 15.2 or later.");

  script_xref(name:"URL", value:"https://www.security-database.com/detail.php?alert=CVE-2015-2995");

  exit(0);
}

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

if (!port = get_app_port(cpe: CPE, service: "www"))
  exit(0);

if (!infos = get_app_version_and_location(cpe: CPE, port: port, exit_no_version: TRUE))
  exit( 0 );

vers = infos["version"];
dir = infos["location"];

if (dir == "/")
  dir = "";

url = dir + "/rdslogs?rdsName=" + rand_str(length: 4);
req = string('POST ', url, ' HTTP/1.1\r\n',
             'Host: ', get_host_name(), '\r\n\r\n');
buf = http_keepalive_send_recv(port: port, data: req);

if (buf =~ "^HTTP/1\.[01] 200" && version_is_less(version: vers, test_version: "15.2")) {
  report = report_fixed_ver(installed_version: vers, fixed_version: "15.2", install_path: dir);
  report += '\n' + http_report_vuln_url(port: port, url: url);
  security_message(port: port, data: report);
  exit(0);
}

exit(99);

CVSS2

6.8

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

AI Score

6.6

Confidence

Low

EPSS

0.9

Percentile

98.8%