###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_avg_detection_bypass_vuln_lin.nasl 2477 2009-06-01 15:51:24Z jun $
#
# AVG AntiVirus Engine Malware Detection Bypass Vulnerability (Linux)
#
# Authors:
# Sujit Ghosal <sghosal@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.
###############################################################################

if(description)
{
  script_id(900720);
  script_version("$Revision: 1.0 $");
  script_tag(name:"cvss_base", value:"10.0");
  script_tag(name:"risk_factor", value:"Critical");
  script_cve_id("CVE-2009-1784");
  script_bugtraq_id(34895);
  script_name("AVG AntiVirus Engine Malware Detection Bypass Vulnerability (Linux)");
  desc = "

  Overview: This host is installed with AVG AntiVirus Server Edition for Linux
  and is prone to Malware Detection Bypass Vulnerability.

  Vulnerability Insight:
  Error in the file parsing engine can be exploited to bypass the anti-virus
  scanning functionality via a specially crafted ZIP or RAR file.

  Impact:
  Successful exploitation will let the attacker craft malwares in a crafted
  archive file and spread it across the network to gain access to sensitive
  information or cause damage to the remote system.

  Impact Level: System

  Affected Software/OS:
  AVG Anti-Virus Server Edition prior to 8.5.323 on Linux

  Fix: Upgrade to the AVG Anti-Virus Scanning Engine build 8.5.323
  http://www.avg.com/download

  References:
  http://xforce.iss.net/xforce/xfdb/50426
  http://blog.zoller.lu/2009/04/avg-zip-evasion-bypass.html

  CVSS Score:
    CVSS Base Score     : 10.0 (AV:N/AC:L/Au:N/C:C/I:C/A:C)
    CVSS Temporal Score : 7.4
  Risk factor: High";

  script_description(desc);
  script_summary("Check for the Version of AVG AntiVirus Server Edition");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2009 SecPod");
  script_family("Remote file access");
  script_dependencies("gb_avg_av_detect_lin.nasl");
  script_require_keys("AVG/AV/Linux/Ver");
  exit(0);
}


include("version_func.inc");

version = get_kb_item("AVG/AV/Linux/Ver");
if(!version){
  exit(0);
}

# Check for AntiVirus Server Edition version prior to 8.5.323
if(version_is_less(version:version, test_version:"8.5.323")){
  security_hole(0);
}
