Microsys Promotic Multiple Vulnerabilities (Windows)

2013-06-17T00:00:00
ID OPENVAS:1361412562310803660
Type openvas
Reporter Copyright (c) 2013 Greenbone Networks GmbH
Modified 2018-09-15T00:00:00

Description

This host is installed with Microsys Promotic and is prone to multiple vulnerabilities.

                                        
                                            ##############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_microsys_promotic_mult_vuln_win.nasl 11401 2018-09-15 08:45:50Z cfischer $
#
# Microsys Promotic Multiple Vulnerabilities (Windows)
#
# Authors:
# Arun kallavi <karun@secpod.com>
#
# Copyright:
# Copyright (c) 2013 Greenbone Networks GmbH, http://www.greenbone.net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), 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.803660");
  script_version("$Revision: 11401 $");
  script_cve_id("CVE-2011-4520", "CVE-2011-4519", "CVE-2011-4518");
  script_bugtraq_id(50133);
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_tag(name:"last_modification", value:"$Date: 2018-09-15 10:45:50 +0200 (Sat, 15 Sep 2018) $");
  script_tag(name:"creation_date", value:"2013-06-17 17:30:15 +0530 (Mon, 17 Jun 2013)");
  script_name("Microsys Promotic Multiple Vulnerabilities (Windows)");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (c) 2013 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("find_service.nasl", "http_version.nasl", "os_detection.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("Host/runs_windows");
  script_exclude_keys("Settings/disable_cgi_scanning");

  script_xref(name:"URL", value:"http://secunia.com/advisories/46430");
  script_xref(name:"URL", value:"http://www.promotic.eu/en/pmdoc/News.htm#ver80105");
  script_xref(name:"URL", value:"http://aluigi.altervista.org/adv/promotic_1-adv.txt");
  script_xref(name:"URL", value:"http://ics-cert.us-cert.gov/advisories/ICSA-12-024-02");

  script_tag(name:"impact", value:"Successful exploitation allows attackers to cause stack or heap based buffer
  overflow or disclose sensitive information or execute arbitrary code within
  the context of the affected application.");
  script_tag(name:"affected", value:"Promotic versions prior to 8.1.5 on Windows");
  script_tag(name:"insight", value:"Multiple flaws due to,

  - Error in PmWebDir object in the web server.

  - Error in 'vCfg' and 'sID' parameters in 'SaveCfg()'and 'AddTrend()' methods
    within the PmTrendViewer ActiveX control.");
  script_tag(name:"solution", value:"Upgrade to Promotic version 8.1.5 or later,
  For updates refer to http://www.promotic.eu/en/index.htm");
  script_tag(name:"summary", value:"This host is installed with Microsys Promotic and is prone to
  multiple vulnerabilities.");

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

  exit(0);
}

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

port = get_http_port( default:80 );

sndReq = http_get( item:"/webdir/index.htm", port:port );
rcvRes = http_send_recv( port:port, data:sndReq );

if( rcvRes &&  ">Promotic" >< rcvRes ) {

  files = traversal_files( "windows" );

  foreach file( keys( files ) ) {
    url = string("/webdir/",crap(data:"../",length:3*15), files[file]);

    if( http_vuln_check( port:port, url:url, pattern:file ) ) {
      report = report_vuln_url( port:port, url:url );
      security_message( port:port, data:report );
      exit( 0 );
    }
  }
  exit( 99 );
}

exit( 0 );