Lucene search
+L

CVS Malformed Entry Modified and Unchanged Flag Insertion Heap Overflow Vulnerability

🗓️ 05 Oct 2009 00:00:00Reported by This script is Copyright (C) 2009 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 30 Views

CVS remote heap overflow vulnerability due to malformed entry handlin

Related
Refs
Code
###############################################################################
# OpenVAS Vulnerability Test
# $Id: cvs_pserver_heap_overflow.nasl 4574 2016-11-18 13:36:58Z teissa $
#
# CVS Malformed Entry Modified and Unchanged Flag Insertion Heap Overflow Vulnerability
#
# Authors:
# Michael Meyer
#
# Copyright:
# Copyright (c) 2009 Greenbone Networks GmbH
#
# 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_summary = "CVS is prone to a remote heap overflow vulnerability. This issue
presents itself during the handling of user-supplied input for entry
lines with 'modified' and 'unchanged' flags. This vulnerability can
allow an attacker to overflow a vulnerable buffer on the heap,
possibly leading to arbitrary code execution.

CVS versions 1.11.15 and prior and CVS feature versions 1.12.7 and
prior are prone to this issue.

**UPDATE: Symantec has confirmed that this vulnerability is being
actively exploited in the wild. Administrators are urged to
upgrade and block external access to potentially vulnerable
servers, if possible.";


tag_solution = "CVS versions 1.11.16 and 1.12.8 have been released to address
this issue.";

if (description)
{
 script_id(100289);
 script_version("$Revision: 4574 $");
 script_tag(name:"last_modification", value:"$Date: 2016-11-18 14:36:58 +0100 (Fri, 18 Nov 2016) $");
 script_tag(name:"creation_date", value:"2009-10-05 19:43:01 +0200 (Mon, 05 Oct 2009)");
 script_bugtraq_id(10384);
 script_cve_id("CVE-2004-0396");
 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("CVS Malformed Entry Modified and Unchanged Flag Insertion Heap Overflow Vulnerability");

 script_xref(name : "URL" , value : "http://www.securityfocus.com/bid/10384");
 script_xref(name : "URL" , value : "http://security.e-matters.de/advisories/072004.html?SID=384b888de96e3bce19306db8577fca26");
 script_xref(name : "URL" , value : "http://support.coresecurity.com/impact/exploits/62024ecea12fe1bbd01479065b3a1797.html");
 script_xref(name : "URL" , value : "http://ccvs.cvshome.org/");
 script_xref(name : "URL" , value : "http://marc.theaimsgroup.com/?l=openbsd-security-announce&m=108508894405639&w=2");
 script_xref(name : "URL" , value : "http://rhn.redhat.com/errata/RHSA-2004-190.html");
 script_xref(name : "URL" , value : "http://www.us-cert.gov/cas/techalerts/TA04-147A.html");

 script_category(ACT_GATHER_INFO);
  script_tag(name:"qod_type", value:"remote_banner");
 script_family("General");
 script_copyright("This script is Copyright (C) 2009 Greenbone Networks GmbH");
 script_dependencies("cvspserver_version.nasl");
 script_require_ports("Services/cvspserver", 2401);
 script_tag(name : "solution" , value : tag_solution);
 script_tag(name : "summary" , value : tag_summary);
 exit(0);
}

include("version_func.inc");

port = get_kb_item("Services/cvspserver");
if(!port)port = 2401;

if(!get_port_state(port))exit(0);

if(!version = get_kb_item(string("cvs/", port, "/version")))exit(0);
if(!isnull(version)) {

  if(version_is_less(version: version, test_version: "1.11.15") ||
     version_in_range(version: version, test_version: "1.12", test_version2: "1.12.7")) {
      security_message(port:port);
      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