This host has XnView installed and is prone to multiple integer
overflow vulnerabilities.
Vulnerabilities Insight:
The flaws are due to integer overflow errors within the parsing of PSD
record types and can be exploited to cause buffer overflows via a specially
crafted PSD image.
###############################################################################
# OpenVAS Vulnerabilities Test
# $Id: gb_xnview_psd_integer_overflow_vuln_win.nasl 6018 2017-04-24 09:02:24Z teissa $
#
# XnView PSD Record Type Parsing Integer Overflow Vulnerabilities (Windows)
#
# Authors:
# Antu Sanadi <[email protected]>
#
# Copyright:
# Copyright (c) 2012 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_summary = "This host has XnView installed and is prone to multiple integer
overflow vulnerabilities.
Vulnerabilities Insight:
The flaws are due to integer overflow errors within the parsing of PSD
record types and can be exploited to cause buffer overflows via a specially
crafted PSD image.";
tag_impact = "Successful exploitation will allow attackers to execute arbitrary code on the
system or cause a denial of service condition.
Impact Level: System/Application";
tag_affected = "XnView versions 1.98.2 and prior on windows";
tag_solution = "Update to XnView version 1.98.5 or later,
For updates refer to http://www.xnview.com/";
if(description)
{
script_id(802443);
script_version("$Revision: 6018 $");
script_cve_id("CVE-2012-0684", "CVE-2012-0685");
script_bugtraq_id(51546);
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_tag(name:"last_modification", value:"$Date: 2017-04-24 11:02:24 +0200 (Mon, 24 Apr 2017) $");
script_tag(name:"creation_date", value:"2012-07-24 14:02:14 +0530 (Tue, 24 Jul 2012)");
script_name("XnView PSD Record Type Parsing Integer Overflow Vulnerabilities (Windows)");
script_xref(name : "URL" , value : "http://secunia.com/advisories/47600/");
script_xref(name : "URL" , value : "http://technet.microsoft.com/en-us/security/msvr/msvr12-001");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (c) 2012 Greenbone Networks GmbH");
script_family("Buffer overflow");
script_dependencies("secpod_xnview_detect_win.nasl");
script_require_keys("XnView/Win/Ver");
script_tag(name : "impact" , value : tag_impact);
script_tag(name : "affected" , value : tag_affected);
script_tag(name : "solution" , value : tag_solution);
script_tag(name : "summary" , value : tag_summary);
script_tag(name:"qod_type", value:"registry");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("version_func.inc");
# Variable Initialization
xnviewVer = NULL;
## Get XnView from KB
xnviewVer = get_kb_item("XnView/Win/Ver");
if(isnull(xnviewVer)){
exit(0);
}
## Check if the version is <= 1.98.2
if(version_is_less_equal(version:xnviewVer, test_version:"1.98.2")){
security_message(0);
}