Vulnerabilities > CVE-2008-3466 - Improper Authentication vulnerability in Microsoft products

047910
CVSS 10.0 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
low complexity
microsoft
CWE-287
critical
nessus
metasploit

Summary

Microsoft Host Integration Server (HIS) 2000, 2004, and 2006 does not limit RPC access to administrative functions, which allows remote attackers to bypass authentication and execute arbitrary programs via a crafted SNA RPC message using opcode 1 or 6 to call the CreateProcess function, aka "HIS Command Execution Vulnerability."

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Authentication Abuse
    An attacker obtains unauthorized access to an application, service or device either through knowledge of the inherent weaknesses of an authentication mechanism, or by exploiting a flaw in the authentication scheme's implementation. In such an attack an authentication mechanism is functioning but a carefully controlled sequence of events causes the mechanism to grant access to the attacker. This attack may exploit assumptions made by the target's authentication procedures, such as assumptions regarding trust relationships or assumptions regarding the generation of secret values. This attack differs from Authentication Bypass attacks in that Authentication Abuse allows the attacker to be certified as a valid user through illegitimate means, while Authentication Bypass allows the user to access protected material without ever being certified as an authenticated user. This attack does not rely on prior sessions established by successfully authenticating users, as relied upon for the "Exploitation of Session Variables, Resource IDs and other Trusted Credentials" attack patterns.
  • Exploiting Trust in Client (aka Make the Client Invisible)
    An attack of this type exploits a programs' vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by placing themselves in the communication channel between client and server such that communication directly to the server is possible where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.
  • Utilizing REST's Trust in the System Resource to Register Man in the Middle
    This attack utilizes a REST(REpresentational State Transfer)-style applications' trust in the system resources and environment to place man in the middle once SSL is terminated. Rest applications premise is that they leverage existing infrastructure to deliver web services functionality. An example of this is a Rest application that uses HTTP Get methods and receives a HTTP response with an XML document. These Rest style web services are deployed on existing infrastructure such as Apache and IIS web servers with no SOAP stack required. Unfortunately from a security standpoint, there frequently is no interoperable identity security mechanism deployed, so Rest developers often fall back to SSL to deliver security. In large data centers, SSL is typically terminated at the edge of the network - at the firewall, load balancer, or router. Once the SSL is terminated the HTTP request is in the clear (unless developers have hashed or encrypted the values, but this is rare). The attacker can utilize a sniffer such as Wireshark to snapshot the credentials, such as username and password that are passed in the clear once SSL is terminated. Once the attacker gathers these credentials, they can submit requests to the web service provider just as authorized user do. There is not typically an authentication on the client side, beyond what is passed in the request itself so once this is compromised, then this is generally sufficient to compromise the service's authentication scheme.
  • Man in the Middle Attack
    This type of attack targets the communication between two components (typically client and server). The attacker places himself in the communication channel between the two components. Whenever one component attempts to communicate with the other (data flow, authentication challenges, etc.), the data first goes to the attacker, who has the opportunity to observe or alter it, and it is then passed on to the other component as if it was never intercepted. This interposition is transparent leaving the two compromised components unaware of the potential corruption or leakage of their communications. The potential for Man-in-the-Middle attacks yields an implicit lack of trust in communication or identify between two components.

Metasploit

descriptionThis module exploits a command-injection vulnerability in Microsoft Host Integration Server 2006.
idMSF:AUXILIARY/ADMIN/MS/MS08_059_HIS2006
last seen2020-05-26
modified2017-07-24
published2008-10-15
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/auxiliary/admin/ms/ms08_059_his2006.rb
titleMicrosoft Host Integration Server 2006 Command Execution Vulnerability

Nessus

  • NASL familyWindows
    NASL idSMB_KB956695.NASL
    descriptionThe remote host has HIS (Host Integration Server) installed. The remote version of this product is affected by a code execution vulnerability in its RPC interface. An attacker could exploit this flaw to execute arbitrary code on the remote host by making rogue RPC queries.
    last seen2020-06-01
    modified2020-06-02
    plugin id34412
    published2008-10-15
    reporterThis script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/34412
    titleMS08-059: Microsoft Host Integration Server (HIS) SNA RPC Request Remote Overflow (956695) (uncredentialed check)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
     script_id(34412);
     script_version("1.24");
     script_cvs_date("Date: 2018/11/15 20:50:28");
    
     script_cve_id("CVE-2008-3466");
     script_bugtraq_id(31620);
     script_xref(name:"MSFT", value:"MS08-059");
     script_xref(name:"IAVB", value:"2008-B-0074");
     script_xref(name:"MSKB", value:"956695");
    
     script_name(english:"MS08-059: Microsoft Host Integration Server (HIS) SNA RPC Request Remote Overflow (956695) (uncredentialed check)");
     script_summary(english:"Determines the presence of update 956695");
    
     script_set_attribute( attribute:"synopsis", value:
    "Arbitrary code can be executed on the remote host through Host
    Integration Server (HIS).");
     script_set_attribute(attribute:"description", value:
    "The remote host has HIS (Host Integration Server) installed.  The
    remote version of this product is affected by a code execution
    vulnerability in its RPC interface.
    
    An attacker could exploit this flaw to execute arbitrary code on the
    remote host by making rogue RPC queries.");
     script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2008/ms08-059");
     script_set_attribute(attribute:"solution", value:"Microsoft has released a set of patches for HIS 2000, 2003 and 2006.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
    script_set_attribute(attribute:"exploit_framework_core", value:"true");
     script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
     script_set_attribute(attribute:"canvas_package", value:'CANVAS');
     script_cwe_id(287);
    
     script_set_attribute(attribute:"plugin_publication_date", value:"2008/10/15");
    
     script_set_attribute(attribute:"plugin_type", value:"remote");
     script_set_attribute(attribute:"stig_severity", value:"I");
     script_set_attribute(attribute:"cpe", value:"cpe:/o:microsoft:windows");
     script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:host_integration_server");
     script_end_attributes();
    
     script_category(ACT_GATHER_INFO);
     script_family(english:"Windows");
     script_copyright(english:"This script is Copyright (C) 2008-2018 Tenable Network Security, Inc.");
    
     script_dependencies("dcetest.nasl");
     script_require_keys("Services/DCE/ed6ee250-e0d1-11cf-925a-00aa00c006c1");
     exit(0);
    }
    
    #
    
    include ('smb_func.inc');
    
    port = get_kb_item ("Services/DCE/ed6ee250-e0d1-11cf-925a-00aa00c006c1");
    if (!port)
      exit (0);
    
    if ( ! get_port_state(port) ) exit(0);
    soc = open_sock_tcp (port);
    if (!soc) exit (0);
    
    ret = dce_rpc_bind(cid:session_get_cid(), uuid:"ed6ee250-e0d1-11cf-925a-00aa00c006c1", vers:1);
    send (socket:soc, data:ret);
    resp = recv (socket:soc, length:4096);
    
    if (!resp)
    {
     close (soc);
     exit (0);
    }
    
    ret = dce_rpc_parse_bind_ack (data:resp);
    if (isnull (ret) || (ret != 0))
    {
     close (soc);
     exit (0);
    }
    
    session_set_unicode (unicode:0);
    
    data =
           class_name (name:"cmd") +
           class_name (name:"/C ver");
    
    # SnaRpcServer_RunExecutable
    ret = dce_rpc_request (code:0x01, data:data);
    send (socket:soc, data:ret);
    resp = recv (socket:soc, length:4096);
    
    resp = dce_rpc_parse_response (data:resp);
    if (strlen(resp) == 1 && ord(resp[0]) != 0)
      security_hole(port);
    
    
    
  • NASL familyWindows : Microsoft Bulletins
    NASL idSMB_NT_MS08-059.NASL
    descriptionThe remote host has HIS (Host Integration Server) installed. The version of this product contains a code execution vulnerability in its RPC interface. An attacker could exploit this flaw to execute arbitrary code on the remote host by making rogue RPC queries.
    last seen2020-06-01
    modified2020-06-02
    plugin id34404
    published2008-10-15
    reporterThis script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/34404
    titleMS08-059: Microsoft Host Integration Server (HIS) SNA RPC Request Remote Overflow (956695)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
     script_id(34404);
     script_version("1.28");
     script_cvs_date("Date: 2018/11/15 20:50:30");
    
     script_cve_id("CVE-2008-3466");
     script_bugtraq_id(31620);
     script_xref(name:"MSFT", value:"MS08-059");
     script_xref(name:"MSKB", value:"956695");
     script_xref(name:"IAVB", value:"2008-B-0074");
    
     script_name(english:"MS08-059: Microsoft Host Integration Server (HIS) SNA RPC Request Remote Overflow (956695)");
     script_summary(english:"Determines the presence of update 956695");
    
     script_set_attribute(attribute:"synopsis", value:
    "Arbitrary code can be executed on the remote host through Host
    Integration Server (HIS).");
     script_set_attribute(attribute:"description", value:
    "The remote host has HIS (Host Integration Server) installed.  The
    version of this product contains a code execution vulnerability
    in its RPC interface.
    
    An attacker could exploit this flaw to execute arbitrary code on the
    remote host by making rogue RPC queries.");
     script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2008/ms08-059");
     script_set_attribute(attribute:"solution", value:"Microsoft has released a set of patches for HIS 2000, 2003 and 2006.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
    script_set_attribute(attribute:"exploit_framework_core", value:"true");
     script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
     script_set_attribute(attribute:"canvas_package", value:'CANVAS');
     script_cwe_id(287);
    
     script_set_attribute(attribute:"vuln_publication_date", value:"2008/10/14");
     script_set_attribute(attribute:"patch_publication_date", value:"2008/10/14");
     script_set_attribute(attribute:"plugin_publication_date", value:"2008/10/15");
    
     script_set_attribute(attribute:"plugin_type", value:"local");
     script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:host_integration_server");
     script_set_attribute(attribute:"stig_severity", value:"I");
     script_end_attributes();
    
     script_category(ACT_GATHER_INFO);
    
     script_copyright(english:"This script is Copyright (C) 2008-2018 Tenable Network Security, Inc.");
     script_family(english:"Windows : Microsoft Bulletins");
    
     script_dependencies("smb_hotfixes.nasl", "ms_bulletin_checks_possible.nasl");
     script_require_keys("SMB/MS_Bulletin_Checks/Possible");
     script_require_ports(139, 445, 'Host/patch_management_checks');
     exit(0);
    }
    
    
    
    include("smb_hotfixes_fcheck.inc");
    include("smb_hotfixes.inc");
    include("smb_func.inc");
    
    
    include("misc_func.inc");
    get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible");
    
    bulletin = 'MS08-059';
    kbs = make_list("956695");
    if (get_kb_item("Host/patch_management_checks")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE);
    
    
    kb       = '956695';
    
    if (is_accessible_share())
    {
     programfiles = hotfix_get_programfilesdir();
     if (
          hotfix_check_fversion(file:"Rpcdetct.dll", version:"5.0.1.798", path:programfiles + "\Host Integration Server\System", bulletin:bulletin, kb:kb) == HCF_OLDER ||   # 2000
          hotfix_check_fversion(file:"Rpcdetct.dll", version:"6.0.2430.0", min_version:"6.0.2400.0", path:programfiles + "\Microsoft Host Integration Server\System", bulletin:bulletin, kb:kb) == HCF_OLDER || # 2004 SP1 server
          hotfix_check_fversion(file:"Hisservicelib.dll", version:"6.0.2430.0", min_version:"6.0.2400.0", path:programfiles + "\Microsoft Host Integration Server\System", bulletin:bulletin, kb:kb) == HCF_OLDER || # 2004 SP1 client
          hotfix_check_fversion(file:"Hisservicelib.dll", version:"6.0.2119.0", min_version:"6.0.0.0", path:programfiles + "\Microsoft Host Integration Server\System", bulletin:bulletin, kb:kb) == HCF_OLDER || # 2004 client
          hotfix_check_fversion(file:"Rpcdetct.dll", version:"7.0.2900.0", min_version:"7.0.0.0", path:programfiles + "\Microsoft Host Integration Server 2006\System", bulletin:bulletin, kb:kb)  == HCF_OLDER # 2006
         )
     {
     set_kb_item(name:"SMB/Missing/MS08-059", value:TRUE);
     hotfix_security_hole();
     }
    
     hotfix_check_fversion_end();
     exit (0);
    }
    

Oval

accepted2014-06-30T04:11:14.485-04:00
classvulnerability
contributors
  • nameSudhir Gandhe
    organizationSecure Elements, Inc.
  • nameSudhir Gandhe
    organizationSecure Elements, Inc.
  • nameTodd Dolinsky
    organizationHewlett-Packard
  • namePradeep R B
    organizationSecPod Technologies
  • nameJosh Turpin
    organizationSymantec Corporation
  • nameMaria Mikhno
    organizationALTX-SOFT
  • nameJeff Albert
    organizationDTCC
definition_extensions
  • commentMicrosoft Host Integration Server 2006 is installed
    ovaloval:org.mitre.oval:def:5373
  • commentMicrosoft Host Integration Server 2004 Client is installed
    ovaloval:org.mitre.oval:def:5450
  • commentMicrosoft Host Integration Server 2004 is installed
    ovaloval:org.mitre.oval:def:5712
  • commentMicrosoft Host Integration Server 2004 SP1 is installed
    ovaloval:org.mitre.oval:def:5430
  • commentMicrosoft Host Integration Server 2004 Client SP1 is installed
    ovaloval:org.mitre.oval:def:5939
  • commentMicrosoft Host Integration Server 2000 SP2 is installed
    ovaloval:org.mitre.oval:def:6119
  • commentMicrosoft Host Integration Server 2000 Administrator Client is installed
    ovaloval:org.mitre.oval:def:5472
descriptionMicrosoft Host Integration Server (HIS) 2000, 2004, and 2006 does not limit RPC access to administrative functions, which allows remote attackers to bypass authentication and execute arbitrary programs via a crafted SNA RPC message using opcode 1 or 6 to call the CreateProcess function, aka "HIS Command Execution Vulnerability."
familywindows
idoval:org.mitre.oval:def:6075
statusaccepted
submitted2008-10-14T13:33:00
titleHIS Command Execution Vulnerability
version14

Saint

bid31620
descriptionMicrosoft Host Integration Server SNA RPC authentication bypass
idwin_patch_hostintrpcauth
osvdb49068
titlemicrosoft_his_snarpc_auth_bypass
typeremote

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 31620 CVE(CAN) ID: CVE-2008-3466 Host Integration Server通过提供应用、数据和网络集成特性,将Microsoft Windows扩展至其它系统。 Host Integration Server的RPC接口所暴露的一些方式允许未经认证的攻击者在服务器上执行任意程序。RPC opcodes 1和6都允许攻击者调用CreateProcess()函数并向其传送命令行,这可能导致完全入侵服务器。 Microsoft Host Integration Server 2006 Microsoft Host Integration Server 2004 SP1 Microsoft Host Integration Server 2004 Microsoft Host Integration Server 2000管理员客户端 Microsoft Host Integration Server 2000 SP2 Microsoft --------- Microsoft已经为此发布了一个安全公告(MS08-059)以及相应补丁: MS08-059:Vulnerability in Host Integration Server RPC Service Could Allow Remote Code Execution (956695) 链接:<a href=http://www.microsoft.com/technet/security/Bulletin/MS08-059.mspx?pf=true target=_blank>http://www.microsoft.com/technet/security/Bulletin/MS08-059.mspx?pf=true</a>
idSSV:4246
last seen2017-11-19
modified2008-10-16
published2008-10-16
reporterRoot
titleMicrosoft Host Integration Server RPC远程命令执行漏洞(MS08-059)