Vulnerabilities > CVE-2009-1133 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Microsoft products

047910
CVSS 9.3 - CRITICAL
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
microsoft
CWE-119
critical
nessus

Summary

Heap-based buffer overflow in Microsoft Remote Desktop Connection (formerly Terminal Services Client) running RDP 5.0 through 6.1 on Windows, and Remote Desktop Connection Client for Mac 2.0, allows remote attackers to execute arbitrary code via unspecified parameters, aka "Remote Desktop Connection Heap Overflow Vulnerability."

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Msbulletin

bulletin_idMS09-044
bulletin_url
date2009-08-11T00:00:00
impactRemote Code Execution
knowledgebase_id970927
knowledgebase_url
severityCritical
titleVulnerabilities in Remote Desktop Connection Could Allow Remote Code Execution

Nessus

  • NASL familyWindows : Microsoft Bulletins
    NASL idSMB_NT_MS09-044.NASL
    descriptionThe remote host contains a version of the Remote Desktop client with several vulnerabilities that may allow an attacker to execute arbirtary code on the remote host. To exploit these vulnerabilities, an attacker would need to lure a user of the remote host to connect to a rogue RDP server.
    last seen2020-06-01
    modified2020-06-02
    plugin id40565
    published2009-08-11
    reporterThis script is Copyright (C) 2009-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/40565
    titleMS09-044: Vulnerabilities in Remote Desktop Connection Could Allow Remote Code Execution (970927)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
     script_id(40565);
     script_version("1.21");
     script_cvs_date("Date: 2018/11/15 20:50:30");
    
     script_cve_id("CVE-2009-1133", "CVE-2009-1929");
     script_bugtraq_id(35971, 35973);
     script_xref(name:"IAVA", value:"2009-A-0071");
     script_xref(name:"MSFT", value:"MS09-044");
     script_xref(name:"MSKB", value:"956744");
     script_xref(name:"MSKB", value:"958469");
     script_xref(name:"MSKB", value:"958470");
     script_xref(name:"MSKB", value:"958471");
    
     script_name(english:"MS09-044: Vulnerabilities in Remote Desktop Connection Could Allow Remote Code Execution (970927)");
     script_summary(english:"Checks for hotfix 970927");
    
     script_set_attribute(attribute:"synopsis", value:"It is possible to execute arbitrary code on the remote host.");
     script_set_attribute(attribute:"description", value:
    "The remote host contains a version of the Remote Desktop client with
    several vulnerabilities that may allow an attacker to execute
    arbirtary code on the remote host.
    
    To exploit these vulnerabilities, an attacker would need to lure a
    user of the remote host to connect to a rogue RDP server.");
     script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2009/ms09-044");
     script_set_attribute(attribute:"solution", value:
    "Microsoft has released a set of patches for Windows 2000, XP, 2003,
    Vista and Server 2008.");
     script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C");
     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:"exploited_by_malware", value:"true");
     script_cwe_id(119);
    
     script_set_attribute(attribute:"vuln_publication_date", value:"2009/08/11");
     script_set_attribute(attribute:"patch_publication_date", value:"2009/08/11");
     script_set_attribute(attribute:"plugin_publication_date", value:"2009/08/11");
    
     script_set_attribute(attribute:"plugin_type", value:"local");
     script_set_attribute(attribute:"cpe", value:"cpe:/o:microsoft:windows");
     script_set_attribute(attribute:"stig_severity", value:"II");
     script_end_attributes();
    
     script_category(ACT_GATHER_INFO);
    
     script_copyright(english:"This script is Copyright (C) 2009-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("audit.inc");
    include("smb_func.inc");
    include("smb_hotfixes.inc");
    include("smb_hotfixes_fcheck.inc");
    include("misc_func.inc");
    
    get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible");
    
    bulletin = 'MS09-044';
    kbs = make_list('956744', '958469', '958470', '958471');
    if (get_kb_item("Host/patch_management_checks")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE);
    
    
    function win2k_get_path()
    {
     local_var login, pass, domain, port, r, hklm;
     local_var key, key_h, value, ret;
    
     ret = NULL;
     login   = kb_smb_login();
     pass    = kb_smb_password();
     domain  = kb_smb_domain();
     port    = kb_smb_transport();
    
     if(! smb_session_init()) audit(AUDIT_FN_FAIL, "smb_session_init");
    
     r = NetUseAdd(login:login, password:pass, domain:domain, share:"IPC$");
     if (r != 1) audit(AUDIT_SHARE_FAIL, "IPC$");
    
     hklm = RegConnectRegistry(hkey:HKEY_LOCAL_MACHINE);
     if (isnull(hklm))
     {
      NetUseDel();
      audit(AUDIT_REG_FAIL);
     }
    
     key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Terminal Server Client";
     key_h = RegOpenKey(handle:hklm, key:key, mode:MAXIMUM_ALLOWED);
     if (!isnull(key_h))
     {
      value = RegQueryValue(handle:key_h, item:"UninstallString");
      if ( ! isnull(value) ) ret = value[1];
      RegCloseKey(handle:key_h);
     }
      RegCloseKey(handle:hklm);
     if ( ! isnull(ret) )
     	ret = ereg_replace(pattern:"\\setup\\Setup\.exe", string:ret, replace:"\");
      return ret;
    }
    
    get_kb_item_or_exit("SMB/Registry/Enumerated");
    get_kb_item_or_exit("SMB/WindowsVersion", exit_code:1);
    
    if (hotfix_check_sp_range(win2k:'4,5', xp:'2,3', win2003:'2', vista:'0,2') <= 0) audit(AUDIT_OS_SP_NOT_VULN);
    
    rootfile = hotfix_get_systemroot();
    if (!rootfile) exit(1, "Failed to get the system root.");
    
    share = hotfix_path2share(path:rootfile);
    if (!is_accessible_share(share:share)) audit(AUDIT_SHARE_FAIL, share);
    
    vuln = 0;
    
    # Windows 2000
    if (hotfix_check_sp(win2k:6) > 0)
    {
      path = win2k_get_path();
      if ( isnull(path) ) exit(0, "RDP Client not installed.");
    
      if (hotfix_is_vulnerable(os:"5.0", file:"Mstsc.exe", version:"5.1.2600.3552", path:path, bulletin:bulletin, kb:'958471')) vuln++;
    }
    else if (
      # MSRDP 6.0 and 6.1
      hotfix_is_vulnerable(os:"6.0", sp:0, file:"Mstscax.dll", version:"6.0.6000.16865", dir:"\system32", bulletin:bulletin, kb:'956744') ||
      hotfix_is_vulnerable(os:"6.0", sp:0, file:"Mstscax.dll", version:"6.0.6000.21061", min_version:"6.0.6000.21000", dir:"\system32", bulletin:bulletin, kb:'956744') ||
      hotfix_is_vulnerable(os:"6.0", sp:1, file:"Mstscax.dll", version:"6.0.6001.18266", dir:"\system32", bulletin:bulletin, kb:'956744') ||
      hotfix_is_vulnerable(os:"6.0", sp:1, file:"Mstscax.dll", version:"6.0.6001.22443", min_version:"6.0.6001.22000", dir:"\system32", bulletin:bulletin, kb:'956744') ||
      hotfix_is_vulnerable(os:"6.0", sp:2, file:"Mstscax.dll", version:"6.0.6002.18045", dir:"\system32", bulletin:bulletin, kb:'956744') ||
      hotfix_is_vulnerable(os:"6.0", sp:2, file:"Mstscax.dll", version:"6.0.6002.22146", min_version:"6.0.6002.22000", dir:"\system32", bulletin:bulletin, kb:'956744') ||
      hotfix_is_vulnerable(os:"5.1", file:"Mstscax.dll", version:"6.0.6000.16865", min_version:"6.0.6000.16000", dir:"\system32", bulletin:bulletin, kb:'956744') ||
      hotfix_is_vulnerable(os:"5.1", file:"Mstscax.dll", version:"6.0.6001.18266", min_version:"6.0.6001.18000", dir:"\system32", bulletin:bulletin, kb:'956744') ||
      hotfix_is_vulnerable(os:"5.1", file:"Mstscax.dll", version:"6.0.6002.18045", min_version:"6.0.6002.18000", dir:"\system32", bulletin:bulletin, kb:'956744') ||
      hotfix_is_vulnerable(os:"5.2", file:"Mstscax.dll", version:"6.0.6000.16865", min_version:"6.0.6000.16000", dir:"\system32", bulletin:bulletin, kb:'956744') ||
      hotfix_is_vulnerable(os:"5.2", file:"Mstscax.dll", version:"6.0.6001.18266", min_version:"6.0.6001.18000", dir:"\system32", bulletin:bulletin, kb:'956744') ||
      hotfix_is_vulnerable(os:"5.2", file:"Mstscax.dll", version:"6.0.6002.18045", min_version:"6.0.6002.18000", dir:"\system32", bulletin:bulletin, kb:'956744') ||
      # MSRDP 5.2
      hotfix_is_vulnerable(os:"5.2", file:"Mstscax.dll",    version:"5.2.3790.4524", min_version:"5.2.0.0", dir:"\system32", bulletin:bulletin, kb:'958469') ||
      hotfix_is_vulnerable(os:"5.1", file:"2k3Mstscax.dll", version:"5.2.3790.4524", min_version:"5.2.0.0", dir:"\system32", bulletin:bulletin, kb:'958469') ||
      # MSRDP 5.1
      hotfix_is_vulnerable(os:"5.1", sp:2, file:"Mstscax.dll", version:"5.1.2600.3581", min_version:"5.1.0.0", dir:"\system32", bulletin:bulletin, kb:'958470')
    ) vuln++;
    
    
    if (vuln)
    {
      set_kb_item(name:"SMB/Missing/"+bulletin, value:TRUE);
      hotfix_security_hole();
      hotfix_check_fversion_end();
      exit(0);
    }
    else
    {
      hotfix_check_fversion_end();
      audit(AUDIT_HOST_NOT, 'affected');
    }
    
  • NASL familyMacOS X Local Security Checks
    NASL idMACOSX_RDESKTOP.NASL
    descriptionThe remote host contains a version of the Remote Desktop client that contains several vulnerabilities that may allow an attacker to execute arbitrary code on the remote host. To exploit these vulnerabilities, an attacker would need to trick a user of the remote host into connecting to a rogue RDP server.
    last seen2020-03-18
    modified2009-08-11
    plugin id40563
    published2009-08-11
    reporterThis script is Copyright (C) 2009-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/40563
    titleMS09-044: Vulnerabilities in Remote Desktop Connection Could Allow Remote Code Execution (Mac OS X)
    code
    #TRUSTED 6b31192291ff8dad62e25a10ccfd8d8517b178e5a8d045e73d0e671f16c607eacfcc111cb951fb346f82e1bfd31edf2b17d50c3d8b7333ed068bb87602a23498386bc34e10be40806fab4dcc16704773f5e6b99576c56d70310f7c3d1848428c56f795b3a22dad7ddc1e7eea009633e4f9002c63e21208b9cfd381db065a887ad757be701fded69b8e7a79fb2c5b19495994f78092a1c119aaff0b8083cb7c63e622a9d394400cd2240fe8aa50b73479ca6a8f1e0b52ea29d8edb2af69d9af8d2449c485af4dfe9cf9f7514fcdd3b5644116d63c9182d5d260c47101927579a389d7154d18388bfe30965dadb36b54b2bc05843ad5b88f52f9cd15d6b4daa6baba572d88b9a855e253380f3f028d243e82102d48b6acdfcbc310fb7092966256313df915a230d2d7fbfce0bcdf1ba66b650342f9aac2e96961a6bd0c98df9ad2c90360442a5d28ece1c16dd68667759672c1b0f152c451a742c005169b983ba4a9fc17546439f7c6292053aeb556a7161e45290019d4581adaa63e3bf68631ce9b295a6db772cd9d0152f7cfb1e17681d02ec9d4d942259aa368cfa7e7267511ac8db4edb1b2917e2b11dca4c5dd5d00b06affee5f1822dd9ac6e23cc5300b0b27634401de115cab361d7334dc253506793a941e4e17f2b32b96ddd065dc5581ec12ff66bb5ee3b3afc507aacb10ba53c079bec2445efdc755e17a3bf70bbe58
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
     script_id(40563);
     script_version("1.18");
     script_set_attribute(attribute:"plugin_modification_date", value:"2018/07/14");
    
     script_cve_id("CVE-2009-1133", "CVE-2009-1929");
     script_bugtraq_id(35971, 35973);
     script_xref(name:"IAVA", value:"2009-A-0071");
     script_xref(name:"MSFT", value:"MS09-044");
     script_xref(name:"MSKB", value:"974283");
    
     script_name(english:"MS09-044: Vulnerabilities in Remote Desktop Connection Could Allow Remote Code Execution (Mac OS X)");
     script_summary(english:"Check for Remote Desktop Connection for Mac OS X");
    
     script_set_attribute(attribute:"synopsis", value:
    "Arbitrary code can be executed on the remote host through Microsoft
    Remote Desktop Connection.");
     script_set_attribute(attribute:"description", value:
    "The remote host contains a version of the Remote Desktop client that
    contains several vulnerabilities that may allow an attacker to execute
    arbitrary code on the remote host.
    
    To exploit these vulnerabilities, an attacker would need to trick a
    user of the remote host into connecting to a rogue RDP server.");
     script_set_attribute(attribute:"see_also", value:"http://technet.microsoft.com/en-us/security/bulletin/ms09-044");
     script_set_attribute(attribute:"solution", value:"Microsoft has released a patch for Remote Desktop Client for Mac OS X.");
     script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C");
     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_cwe_id(119);
    
     script_set_attribute(attribute:"patch_publication_date", value:"2009/08/11");
     script_set_attribute(attribute:"plugin_publication_date", value:"2009/08/11");
    
     script_set_attribute(attribute:"plugin_type", value:"local");
     script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:remote_desktop_client");
     script_set_attribute(attribute:"stig_severity", value:"II");
     script_end_attributes();
    
     script_category(ACT_GATHER_INFO);
     script_family(english:"MacOS X Local Security Checks");
    
     script_copyright(english:"This script is Copyright (C) 2009-2018 Tenable Network Security, Inc.");
    
     script_dependencies("ssh_get_info.nasl");
     script_require_keys("Host/MacOSX/packages");
    
     exit(0);
    }
    
    
    include("misc_func.inc");
    include("ssh_func.inc");
    include("macosx_func.inc");
    
    
    
    if(sshlib::get_support_level() >= sshlib::SSH_LIB_SUPPORTS_COMMANDS)
      enable_ssh_wrappers();
    else disable_ssh_wrappers();
    
    uname = get_kb_item("Host/uname");
    if ( egrep(pattern:"Darwin.*", string:uname) )
    {
      file    = GetBundleVersionCmd(file:"Remote Desktop Connection.app", path:"/Applications");
      file    = ereg_replace(pattern:"version\.plist", replace:"Info.plist", string:file);
      if ( ! islocalhost() )
      {
       ret = ssh_open_connection();
       if ( ! ret ) exit(0);
       buf = ssh_cmd(cmd:file);
       ssh_close_connection();
      }
      else
      {
      buf = pread(cmd:"/bin/bash", argv:make_list("bash", "-c", file));
      }
    
     if ( buf =~ "^2" )
     {
      v = split(buf, sep:'.', keep:FALSE);
      if ( int(v[0]) == 2 && int(v[1]) == 0 && int(v[2]) == 0 )
    	security_hole(port:0);
     }
    }
    

Oval

accepted2014-06-30T04:11:04.173-04:00
classvulnerability
contributors
  • nameDragos Prisaca
    organizationGideon Technologies, Inc.
  • nameJ. Daniel Brown
    organizationDTCC
  • nameJosh Turpin
    organizationSymantec Corporation
  • nameMaria Mikhno
    organizationALTX-SOFT
definition_extensions
  • commentMicrosoft Windows 2000 SP4 or later is installed
    ovaloval:org.mitre.oval:def:229
  • commentMicrosoft Windows XP (x86) SP2 is installed
    ovaloval:org.mitre.oval:def:754
  • commentMicrosoft Windows XP x64 Edition SP2 is installed
    ovaloval:org.mitre.oval:def:4193
  • commentMicrosoft Windows XP x64 Edition SP2 is installed
    ovaloval:org.mitre.oval:def:4193
  • commentMicrosoft Windows Server 2003 SP2 (x86) is installed
    ovaloval:org.mitre.oval:def:1935
  • commentMicrosoft Windows Server 2003 SP2 (x64) is installed
    ovaloval:org.mitre.oval:def:2161
  • commentMicrosoft Windows Server 2003 (ia64) SP2 is installed
    ovaloval:org.mitre.oval:def:1442
  • commentMicrosoft Windows XP (x86) SP2 is installed
    ovaloval:org.mitre.oval:def:754
  • commentMicrosoft Windows XP (x86) SP3 is installed
    ovaloval:org.mitre.oval:def:5631
  • commentMicrosoft Windows XP (x86) SP2 is installed
    ovaloval:org.mitre.oval:def:754
  • commentMicrosoft Windows XP (x86) SP3 is installed
    ovaloval:org.mitre.oval:def:5631
  • commentMicrosoft Windows Vista (32-bit) is installed
    ovaloval:org.mitre.oval:def:1282
  • commentMicrosoft Windows Vista (32-bit) is installed
    ovaloval:org.mitre.oval:def:1282
  • commentMicrosoft Windows Vista (32-bit) Service Pack 1 is installed
    ovaloval:org.mitre.oval:def:4873
  • commentMicrosoft Windows Vista x64 Edition Service Pack 1 is installed
    ovaloval:org.mitre.oval:def:5254
  • commentMicrosoft Windows Server 2008 (32-bit) is installed
    ovaloval:org.mitre.oval:def:4870
  • commentMicrosoft Windows Server 2008 (64-bit) is installed
    ovaloval:org.mitre.oval:def:5356
  • commentMicrosoft Windows Server 2008 (ia-64) is installed
    ovaloval:org.mitre.oval:def:5667
  • commentMicrosoft Windows Vista (32-bit) Service Pack 1 is installed
    ovaloval:org.mitre.oval:def:4873
  • commentMicrosoft Windows Vista x64 Edition Service Pack 1 is installed
    ovaloval:org.mitre.oval:def:5254
  • commentMicrosoft Windows Server 2008 (32-bit) is installed
    ovaloval:org.mitre.oval:def:4870
  • commentMicrosoft Windows Server 2008 (64-bit) is installed
    ovaloval:org.mitre.oval:def:5356
  • commentMicrosoft Windows Server 2008 (ia-64) is installed
    ovaloval:org.mitre.oval:def:5667
  • commentMicrosoft Windows Vista (32-bit) Service Pack 2 is installed
    ovaloval:org.mitre.oval:def:6124
  • commentMicrosoft Windows Vista x64 Edition Service Pack 2 is installed
    ovaloval:org.mitre.oval:def:5594
  • commentMicrosoft Windows Server 2008 (32-bit) Service Pack 2 is installed
    ovaloval:org.mitre.oval:def:5653
  • commentMicrosoft Windows Server 2008 x64 Edition Service Pack 2 is installed
    ovaloval:org.mitre.oval:def:6216
  • commentMicrosoft Windows Server 2008 Itanium-Based Edition Service Pack 2 is installed
    ovaloval:org.mitre.oval:def:6150
  • commentMicrosoft Windows Vista (32-bit) Service Pack 2 is installed
    ovaloval:org.mitre.oval:def:6124
  • commentMicrosoft Windows Vista x64 Edition Service Pack 2 is installed
    ovaloval:org.mitre.oval:def:5594
  • commentMicrosoft Windows Server 2008 (32-bit) Service Pack 2 is installed
    ovaloval:org.mitre.oval:def:5653
  • commentMicrosoft Windows Server 2008 x64 Edition Service Pack 2 is installed
    ovaloval:org.mitre.oval:def:6216
  • commentMicrosoft Windows Server 2008 Itanium-Based Edition Service Pack 2 is installed
    ovaloval:org.mitre.oval:def:6150
descriptionHeap-based buffer overflow in Microsoft Remote Desktop Connection (formerly Terminal Services Client) running RDP 5.0 through 6.1 on Windows, and Remote Desktop Connection Client for Mac 2.0, allows remote attackers to execute arbitrary code via unspecified parameters, aka "Remote Desktop Connection Heap Overflow Vulnerability."
familywindows
idoval:org.mitre.oval:def:5693
statusaccepted
submitted2009-07-28T13:00:00
titleRemote Desktop Connection Heap Overflow Vulnerability
version75