Lucene search
K

OCS Inventory NG Persistent Cross-site Scripting Vulnerability

🗓️ 15 Nov 2011 00:00:00Reported by Copyright (C) 2011 SecPodType 
openvas
 openvas
🔗 plugins.openvas.org👁 19 Views

OCS Inventory NG Persistent Cross-site Scripting Vulnerability in version 2.0.1 and prior. Successful exploitation allows remote attackers to insert arbitrary HTML and script code, executing in a user's browser session

Related
Refs
Code
##############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_ocs_inventory_ng_xss_vuln.nasl 7044 2017-09-01 11:50:59Z teissa $
#
# OCS Inventory NG Persistent Cross-site Scripting Vulnerability
#
# Authors:
# Madhuri D <[email protected]>
#
# Copyright:
# Copyright (c) 2011 SecPod, http://www.secpod.com
#
# 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.
###############################################################################

tag_impact = "Successful exploitation will allow remote attackers to insert arbitrary HTML
  and script code, which will be executed in a user's browser session in
  context of an affected site when the malicious data is being viewed.
  Impact Level: Application/System";
tag_affected = "OCS Inventory NG version 2.0.1 and prior";

tag_insight = "The flaw exists due to certain system information passed via a 'POST' request
  to '/ocsinventory' is not properly sanitised before being used.";
tag_solution = "Upgrade to OCS Inventory NG version 2.0.2 or later
  For updates refer to http://www.ocsinventory-ng.org/fr/";
tag_summary = "This host is running OCS Inventory NG and is prone to cross site
  scripting vulnerability.";

if(description)
{
  script_id(902749);
  script_version("$Revision: 7044 $");
  script_cve_id("CVE-2011-4024");
  script_bugtraq_id(50011);
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
  script_tag(name:"last_modification", value:"$Date: 2017-09-01 13:50:59 +0200 (Fri, 01 Sep 2017) $");
  script_tag(name:"creation_date", value:"2011-11-15 16:35:51 +0530 (Tue, 15 Nov 2011)");
  script_name("OCS Inventory NG Persistent Cross-site Scripting Vulnerability");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/46311");
  script_xref(name : "URL" , value : "http://xforce.iss.net/xforce/xfdb/70406");
  script_xref(name : "URL" , value : "http://www.exploit-db.com/exploits/18005/");

  script_tag(name:"qod_type", value:"remote_banner");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2011 SecPod");
  script_family("Web application abuses");
  script_dependencies("secpod_ocs_inventory_ng_detect.nasl");
  script_require_ports("Services/www", 80);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  script_tag(name : "impact" , value : tag_impact);
  script_tag(name : "affected" , value : tag_affected);
  exit(0);
}


include("http_func.inc");
include("version_func.inc");

ocsPort = get_http_port(default:80);
if(!get_port_state(ocsPort)){
  exit(0);
}

## Get version from KB
if(!ocsVer = get_version_from_kb(port:ocsPort,app:"OCS_Inventory_NG")){
  exit(0);
}

## Check OCS Inventory NG version < 2.0.2
if(version_is_less(version:ocsVer, test_version:"2.0.2")){
  security_message(ocsPort);
}

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

01 Sep 2017 00:00Current
5.8Medium risk
Vulners AI Score5.8
EPSS0.10895
19