This host has ClamAV installed, and is prone to buffer overflow
vulnerability.
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_clamav_pdf_bof_vuln_lin.nasl 5263 2017-02-10 13:45:51Z teissa $
#
# ClamAV 'find_stream_bounds() Buffer Overflow Vulnerability
#
# Authors:
# Antu Sanadi <[email protected]>
#
# Copyright:
# Copyright (c) 2010 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.
###############################################################################
tag_impact = "Successful exploitation could allow attackers to execute arbitrary code
on the system with clamd privileges or cause the application to crash.
Impact Level: Application";
tag_affected = "ClamAV version before 0.96.3 on Linux";
tag_insight = "The flaw exists due to a buffer overflow error in 'find_stream_bounds()'
function in 'pdf.c' file within the libclamav.";
tag_solution = "Upgrade to ClamAV 0.96.3 or later,
http://www.clamav.net/";
tag_summary = "This host has ClamAV installed, and is prone to buffer overflow
vulnerability.";
if(description)
{
script_id(801519);
script_version("$Revision: 5263 $");
script_tag(name:"last_modification", value:"$Date: 2017-02-10 14:45:51 +0100 (Fri, 10 Feb 2017) $");
script_tag(name:"creation_date", value:"2010-10-07 09:42:58 +0200 (Thu, 07 Oct 2010)");
script_tag(name:"cvss_base", value:"9.3");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:C/I:C/A:C");
script_cve_id("CVE-2010-3434");
script_name("ClamAV 'find_stream_bounds()' function Buffer Overflow Vulnerability");
script_xref(name : "URL" , value : "http://www.vupen.com/english/advisories/2010/2455");
script_xref(name : "URL" , value : "https://wwws.clamav.net/bugzilla/show_bug.cgi?id=2226");
script_xref(name : "URL" , value : "http://security-tracker.debian.org/tracker/CVE-2010-3434");
script_xref(name : "URL" , value : "http://git.clamav.net/gitweb?p=clamav-devel.git;a=blob_plain;f=ChangeLog;hb=clamav-0.96.3");
script_category(ACT_GATHER_INFO);
script_family("Buffer overflow");
script_copyright("Copyright (C) 2010 Greenbone Networks GmbH");
script_dependencies("gb_clamav_detect_lin.nasl", "gb_clamav_remote_detect.nasl",
"gather-package-list.nasl");
script_require_keys("ssh/login/uname");
script_tag(name : "impact" , value : tag_impact);
script_tag(name : "affected" , value : tag_affected);
script_tag(name : "insight" , value : tag_insight);
script_tag(name : "solution" , value : tag_solution);
script_tag(name : "summary" , value : tag_summary);
script_tag(name:"qod_type", value:"executable_version");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("version_func.inc");
osCheck = get_kb_item("ssh/login/uname");
if(isnull(osCheck) && "Linux" >!< osCheck){
exit(0);
}
port = get_kb_item("Services/clamd");
if(!port){
port = 0;
}
clamVer = get_kb_item("ClamAV/remote/Ver");
if(!clamVer){
clamVer = get_kb_item("ClamAV/Lin/Ver");
}
if(!clamVer){
exit(0);
}
if(version_is_less(version:clamVer, test_version:"0.96.3")){
security_message(port:port);
}