F-Secure Products Malware Detection Bypass Vulnerability (Windows)

2009-06-17T00:00:00
ID OPENVAS:900362
Type openvas
Reporter Copyright (C) 2009 SecPod
Modified 2017-02-20T00:00:00

Description

This host is installed with F-Secure Product and is prone to Malware Detection Bypass Vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_fsecure_prdts_sec_bypass_vuln_win.nasl 5369 2017-02-20 14:48:07Z cfi $
#
# F-Secure Products Malware Detection Bypass Vulnerability (Windows)
#
# Authors:
# Sharath S <sharaths@secpod.com>
#
# Copyright:
# Copyright (c) 2009 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 let the attacker craft malwares in a 
  archive file and spread it across the network to gain access to sensitive
  information or cause damage to the system.
  Impact Level: System";
tag_affected = "F-Secure Anti-Virus 2009 and earlier
  F-Secure Client Security 8.0 and earlier
  F-Secure Internet Security 2009 and earlier
  F-Secure Anti-Virus for MIMEsweeper 5.61 and earlier
  F-Secure Anti-Virus for Workstations 8.0 and earlier
  F-Secure Anti-Virus for Windows Servers 8.00 and earlier
  F-Secure Internet Gatekeeper for Windows 6.61 and earlier
  F-Secure Anti-Virus for Microsoft Exchange 7.10 and earlier";
tag_insight = "This flaw is due to bug in the antivirus scanning engine which doesn't process
  the malformed crafted malware archives.";
tag_solution = "Apply patch
  http://www.f-secure.com/en_EMEA/support/security-advisory/fsc-2009-1.html";
tag_summary = "This host is installed with F-Secure Product and is prone to
  Malware Detection Bypass Vulnerability.";

if(description)
{
  script_id(900362);
  script_version("$Revision: 5369 $");
  script_tag(name:"last_modification", value:"$Date: 2017-02-20 15:48:07 +0100 (Mon, 20 Feb 2017) $");
  script_tag(name:"creation_date", value:"2009-06-17 17:54:48 +0200 (Wed, 17 Jun 2009)");
  script_tag(name:"cvss_base", value:"6.8");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:P");
  script_cve_id("CVE-2009-1782");
  script_bugtraq_id(34849);
  script_name("F-Secure Products Malware Detection Bypass Vulnerability (Windows)");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/35008");
  script_xref(name : "URL" , value : "http://xforce.iss.net/xforce/xfdb/50346");
  script_xref(name : "URL" , value : "http://www.vupen.com/english/advisories/2009/1262");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2009 SecPod");
  script_family("Malware");
  script_dependencies("secpod_reg_enum.nasl");
  script_mandatory_keys("SMB/WindowsVersion");
  script_require_ports(139, 445);
  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:"registry");
  script_tag(name:"solution_type", value:"VendorFix");
  exit(0);
}


include("smb_nt.inc");
include("version_func.inc");
include("secpod_smb_func.inc");

if(!get_kb_item("SMB/WindowsVersion")){
  exit(0);
}

if(!registry_key_exists(key:"SOFTWARE\Data Fellows\F-Secure")){
  exit(0);
}

# Get the path for F-Secure Anti-Virus, Client Security, Workstation,
# Anti-Virus for Windows Servers and Internet Security
fsPath = registry_get_sz(key:"SOFTWARE\Data Fellows\F-Secure\Anti-Virus",
                         item:"Path");
if(!fsPath)
{
  # Get the path for Internet Gatekeeper and Anti-Virus for Microsoft Exchange
  fsPath = registry_get_sz(key:"SOFTWARE\Data Fellows\F-Secure" +
                               "\Content Scanner Server", item:"Path");
  if(!fsPath){
    exit(0);
  }
}

fsPath = fsPath + "\fm4av.dll";
share = ereg_replace(pattern:"([a-zA-Z]):.*", replace:"\1$", string:fsPath);
file = ereg_replace(pattern:"[a-zA-Z]:(.*)", replace:"\1", string:fsPath);

dllVer = GetVer(file:file, share:share);
if(!dllVer){
  exit(0);
}

# Grep for fm4av.dll version prior to 3.1.15160.1
if(version_is_less(version:dllVer, test_version:"3.1.15160.1")){
  security_message(0);
}