SyncBack Profile Import Buffer Overflow Vulnerability

2010-05-28T00:00:00
ID OPENVAS:902057
Type openvas
Reporter Copyright (C) 2010 SecPod
Modified 2017-02-20T00:00:00

Description

This host is installed with SyncBack Freeware and is prone to buffer overflow vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_syncback_freeware_bof_vuln.nasl 5368 2017-02-20 14:34:16Z cfi $
#
# SyncBack Profile Import Buffer Overflow Vulnerability
#
# Authors:
# Madhuri D <dmadhuri@secpod.com>
#
# Copyright:
# Copyright (c) 2010 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 allow remote attackers to execute arbitrary code.
  Impact Level: Application.";
tag_affected = "SyncBack Freeware version prior to 3.2.21";

tag_insight = "The flaw exists due to boundary error when importing 'SyncBack' profiles,
  which leads to stack-based buffer overflow when a user opens a specially
  crafted '.sps' file.";
tag_solution = "Upgrade to the SyncBack Freeware version 3.2.21
  For updates refer to http://www.2brightsparks.com/downloads.html#freeware";
tag_summary = "This host is installed with SyncBack Freeware and is prone
  to buffer overflow vulnerability.";

if(description)
{
  script_id(902057);
  script_version("$Revision: 5368 $");
  script_tag(name:"last_modification", value:"$Date: 2017-02-20 15:34:16 +0100 (Mon, 20 Feb 2017) $");
  script_tag(name:"creation_date", value:"2010-05-28 16:52:49 +0200 (Fri, 28 May 2010)");
  script_cve_id("CVE-2010-1688");
  script_bugtraq_id(40311);
  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_name("SyncBack Profile Import Buffer Overflow Vulnerability");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/39865");
  script_xref(name : "URL" , value : "http://xforce.iss.net/xforce/xfdb/58727");

  script_tag(name:"qod_type", value:"executable_version");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2010 SecPod");
  script_family("Buffer overflow");
  script_dependencies("secpod_reg_enum.nasl");
  script_mandatory_keys("SMB/WindowsVersion");
  script_require_ports(139, 445);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  script_tag(name : "impact" , value : tag_impact);
  script_tag(name : "affected" , value : tag_affected);
  exit(0);
}


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

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

key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" +
       "\SyncBack_is1";

if(!registry_key_exists(key:key)){
  exit(0);
}

## Check for SyncBack Freeware DisplayName
syncName = registry_get_sz(key:key, item:"DisplayName");
if("SyncBack" >< syncName)
{
  ## Check for Installation path of SyncBack Freeware
  syncPath = registry_get_sz(key:key, item:"InstallLocation");

  if(!isnull(syncPath))
  {
    exePath = syncPath + "\SyncBack.exe";
    share = ereg_replace(pattern:"([A-Z]):.*", replace:"\1$", string:exePath);
    fire = ereg_replace(pattern:"[A-Z]:(.*)", replace:"\1", string:exePath);

    ## Check for SyncBack Freeware .exe File Version
    syncVer = GetVer(file:fire, share:share);
    if(syncVer != NULL)
    {
      ## Check for SyncBack Freeware version less than 3.2.21
      if(version_is_less(version:syncVer, test_version:"3.2.21.0")){
        security_message(0) ;
      }
    }
  }
}