Sophos Anti-Virus For Windows CAB File Scan Evasion

2009-06-18T00:00:00
ID SOPHOS_2_87_1.NASL
Type nessus
Reporter This script is Copyright (C) 2009-2018 Tenable Network Security, Inc.
Modified 2020-04-02T00:00:00

Description

According to its engine number, the version of Sophos Anti-Virus running on the remote Windows host has a scan evasion vulnerability. Specially crafted CAB files can exploit this to bypass antivirus scanning.

                                        
                                            #
# (C) Tenable Network Security, Inc.
#


include("compat.inc");


if (description)
{
  script_id(39448);
  script_version("1.11");
  script_cvs_date("Date: 2018/08/07 16:46:51");

  script_bugtraq_id(35402);
  script_xref(name:"Secunia", value:"35467");

  script_name(english:"Sophos Anti-Virus For Windows CAB File Scan Evasion");
  script_summary(english:"Checks the virus engine number");

  script_set_attribute(attribute:"synopsis", value:
"The remote host is running antivirus software with a file scan
evasion vulnerability.");
  script_set_attribute(attribute:"description", value:
"According to its engine number, the version of Sophos Anti-Virus
running on the remote Windows host has a scan evasion vulnerability.
Specially crafted CAB files can exploit this to bypass antivirus
scanning.");
  script_set_attribute(attribute:"solution", value:"Upgrade to Sophos Anti-Virus engine version 2.87.1 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");
  script_set_attribute(attribute:"plugin_publication_date", value:"2009/06/18");
  script_set_attribute(attribute:"patch_publication_date", value:"2009/06/16");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:sophos:sophos_anti-virus");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

  script_copyright(english:"This script is Copyright (C) 2009-2018 Tenable Network Security, Inc.");

  script_dependencies("sophos_installed.nasl");
  script_require_keys("Antivirus/Sophos/installed", "Antivirus/Sophos/eng_ver");

  exit(0);
}


include("global_settings.inc");
include("misc_func.inc");

# Get the signature database update for the target.
engine = get_kb_item("Antivirus/Sophos/eng_ver");
if (!engine) exit(1, "Sophos virus engine version wasn't detected");

ver = split(engine, sep:'.', keep:FALSE);
for (i=0; i<max_index(ver); i++)
  ver[i] = int(ver[i]);

fix = split("2.87.1", sep:'.', keep:FALSE);
for (i=0; i<max_index(fix); i++)
  fix[i] = int(fix[i]);

for (i=0; i<max_index(ver); i++)
  if ((ver[i] < fix[i]))
  {
    ver = string(ver[0], ".", ver[1], ".", ver[2]);
    report = string(
      "\n",
      "Virus engine version : ", ver, "\n",
      "Should be            : 2.87.1\n"
    );
    security_warning(port:get_kb_item("SMB/transport"), extra:report);
    exit(0);
    break;
  }
  else if (ver[i] > fix[i])
    break;

exit(1, "The virus engine is not vulnerable");