Lucene search

K
openvasCopyright (C) 2008 SecPodOPENVAS:900120
HistorySep 10, 2008 - 12:00 a.m.

Microsoft Organization Chart Remote Code Execution Vulnerability

2008-09-1000:00:00
Copyright (C) 2008 SecPod
plugins.openvas.org
8

0.005 Low

EPSS

Percentile

76.6%

The host has Microsoft Organization Chart, which is prone to a
remote code execution vulnerability.

##############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_ms_org_chart_remote_code_exe_vuln_900120.nasl 7293 2017-09-27 08:49:48Z cfischer $
# Description: Microsoft Organization Chart Remote Code Execution Vulnerability
#
# Authors:
# Sharath S <[email protected]>
#
# Copyright:
# Copyright (C) 2008 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 = "Enticing the victim into opening a malicious crafted
        Organization Chart document, remote attackers can crash the application
        or execute arbitrary code on the affected system within the context
        of the affected application.
 Impact Level : Application";

tag_solution = "No solution or patch was made available for at least one year
since disclosure of this vulnerability. Likely none will be provided anymore.
General solution options are to upgrade to a newer release, disable respective
features, remove the product or replace the product by another one.
For updates refer to http://office.microsoft.com/en-us/ork2003/HA011402441033.aspx";

tag_affected = "MS Organization Chart versions 2.0 (11.0.5614.0) and prior on Windows (all).";

tag_insight = "Microsoft Organization Chart is prone to a remote code execution 
        vulnerability. The flaw is due to memory access violation 
        error when opening malicious Organization Chart document.";


tag_summary = "The host has Microsoft Organization Chart, which is prone to a
 remote code execution vulnerability.";


if(description)
{
 script_id(900120);
 script_version("$Revision: 7293 $");
 script_tag(name:"last_modification", value:"$Date: 2017-09-27 10:49:48 +0200 (Wed, 27 Sep 2017) $");
 script_tag(name:"creation_date", value:"2008-09-10 17:51:23 +0200 (Wed, 10 Sep 2008)");
 script_cve_id("CVE-2008-3956");
 script_bugtraq_id(31059);
 script_copyright("Copyright (C) 2008 SecPod");
 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_category(ACT_GATHER_INFO);
 script_family("Windows");
 script_name("Microsoft Organization Chart Remote Code Execution Vulnerability");

 script_dependencies("secpod_reg_enum.nasl");
 script_mandatory_keys("SMB/WindowsVersion");
 script_require_ports(139, 445);
 script_xref(name : "URL" , value : "http://www.securityfocus.com/bid/31059/discuss");
 script_xref(name : "URL" , value : "http://www.securityfocus.com/bid/31059/exploit");
 script_xref(name : "URL" , value : "http://www.nullcode.com.ar/ncs/crash/orgchart.htm");
 script_tag(name : "summary" , value : tag_summary);
 script_tag(name : "insight" , value : tag_insight);
 script_tag(name : "affected" , value : tag_affected);
 script_tag(name : "solution" , value : tag_solution);
 script_tag(name : "impact" , value : tag_impact);
 script_tag(name:"qod_type", value:"registry");
 script_tag(name:"solution_type", value:"WillNotFix");
 exit(0);
}

include("smb_nt.inc");

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

 name = kb_smb_name();
 domain = kb_smb_domain();
 login = kb_smb_login();
 pass = kb_smb_password();
 port = kb_smb_transport();

 soc = open_sock_tcp(port);
 if(!soc){
        exit(0);
 }

 r = smb_session_request(soc:soc, remote:name);
 if(!r){
        close(soc);
        exit(0);
 }

 prot = smb_neg_prot(soc:soc) ;
 if(!prot){
        close(soc);
        exit(0);
 }

 r = smb_session_setup(soc:soc, login:login, password:pass, domain:domain,
                            prot:prot);
 if(!r){
	close(soc);
        exit(0);
 }

 uid = session_extract_uid(reply:r);
 if(!uid){
	close(soc);
        exit(0);
 }

 r = smb_tconx(soc:soc, name:name, uid:uid, share:"IPC$");
 if(!r){
	close(soc);
        exit(0);
 }

 tid = tconx_extract_tid(reply:r);
 if (!tid){
        close(soc);
        exit(0);
 }

 r = smbntcreatex(soc:soc, uid:uid, tid:tid, name:"\winreg");
 if(!r){
        close(soc);
        exit(0);
 }

 pipe = smbntcreatex_extract_pipe(reply:r);
 if(!pipe){
        close(soc);
        exit(0);
 }

 r = pipe_accessible_registry(soc:soc, uid:uid, tid:tid, pipe:pipe);
 if(!r){
        close(soc);
        exit(0);
 }

 handle = registry_open_hklm(soc:soc, uid:uid, tid:tid, pipe:pipe);
 if(!handle){
        close(soc);
        exit(0);
 }

 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
 msOrgKey = registry_get_key(soc:soc, uid:uid ,tid:tid ,pipe:pipe,key:key,
                                 reply:handle);
 if(!msOrgKey){
	close(soc);
        exit(0);
 }

 entries = registry_enum_key(soc:soc, uid:uid, tid:tid, pipe:pipe, 
                                 reply:msOrgKey);
 close(soc);

 foreach entry (entries)
 {
        msOrgName = registry_get_sz(key:key + entry, item:"DisplayName");
        
	if("Microsoft Organization Chart 2.0" >< msOrgName)
        {
                msOrgVer = registry_get_sz(key:key + entry, 
                                           item:"DisplayVersion");

		# Grep for version <= 11.0.5614.0
                if(egrep(pattern:"^(([0-9]|10)\..*|11\.0\.([0-4]?[0-9]?[0-9]?[0-9]" +
				 "|5[0-5][0-9][0-9]|560[0-9]|561[0-4])\.0)$",
			 string:msOrgVer)){
			security_message(0);
                }
                exit(0);
        }
 }

0.005 Low

EPSS

Percentile

76.6%

Related for OPENVAS:900120