Vulnerabilities > CVE-2007-1748 - Buffer Errors vulnerability in Microsoft Windows 2000 and Windows 2003 Server

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-119
critical
nessus
exploit available
metasploit

Summary

Stack-based buffer overflow in the RPC interface in the Domain Name System (DNS) Server Service in Microsoft Windows 2000 Server SP 4, Server 2003 SP 1, and Server 2003 SP 2 allows remote attackers to execute arbitrary code via a long zone name containing character constants represented by escape sequences.

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.

Exploit-Db

  • descriptionMicrosoft DNS RPC Service extractQuotedChar() Overflow (SMB). CVE-2007-1748. Remote exploit for windows platform
    idEDB-ID:16366
    last seen2016-02-01
    modified2010-09-28
    published2010-09-28
    reportermetasploit
    sourcehttps://www.exploit-db.com/download/16366/
    titleMicrosoft DNS RPC Service extractQuotedChar Overflow SMB
  • descriptionMS Windows DNS RPC Remote Buffer Overflow Exploit (win2k SP4). CVE-2007-1748. Remote exploit for windows platform
    idEDB-ID:3737
    last seen2016-01-31
    modified2007-04-15
    published2007-04-15
    reporterWinny Thomas
    sourcehttps://www.exploit-db.com/download/3737/
    titleMicrosoft Windows 2000 SP4 - DNS RPC Remote Buffer Overflow Exploit
  • descriptionMicrosoft DNS RPC Service extractQuotedChar() Overflow (TCP). CVE-2007-1748. Remote exploit for windows platform
    idEDB-ID:16748
    last seen2016-02-02
    modified2010-07-25
    published2010-07-25
    reportermetasploit
    sourcehttps://www.exploit-db.com/download/16748/
    titleMicrosoft DNS RPC Service extractQuotedChar Overflow TCP
  • descriptionMS Windows DNS DnssrvQuery Remote Stack Overflow Exploit. CVE-2007-1748. Remote exploit for windows platform
    idEDB-ID:3740
    last seen2016-01-31
    modified2007-04-15
    published2007-04-15
    reporterdevcode
    sourcehttps://www.exploit-db.com/download/3740/
    titleMicrosoft Windows - DNS DnssrvQuery Remote Stack Overflow Exploit

Metasploit

Nessus

  • NASL familyWindows : Microsoft Bulletins
    NASL idSMB_NT_MS07-029.NASL
    descriptionThe remote host has the Windows DNS server installed. There is a flaw in the remote version of this server that may allow an attacker to execute arbitrary code on the remote host with SYSTEM privileges. To exploit this flaw, an attacker needs to connect to the DNS server RPC interface and send malformed RPC queries.
    last seen2020-06-01
    modified2020-06-02
    plugin id25168
    published2007-05-08
    reporterThis script is Copyright (C) 2007-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/25168
    titleMS07-029: Vulnerability in Windows DNS RPC Interface Could Allow Remote Code Execution (935966)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
     script_id(25168);
     script_version("1.34");
     script_cvs_date("Date: 2018/11/15 20:50:30");
    
     script_cve_id("CVE-2007-1748");
     script_bugtraq_id(23470);
     script_xref(name:"MSFT", value:"MS07-029");
     script_xref(name:"MSKB", value:"935966");
     
     script_xref(name:"CERT", value:"555920");
     script_xref(name:"EDB-ID", value:"3737");
     script_xref(name:"EDB-ID", value:"3740");
     script_xref(name:"EDB-ID", value:"16366");
     script_xref(name:"EDB-ID", value:"16748");
    
     script_name(english:"MS07-029: Vulnerability in Windows DNS RPC Interface Could Allow Remote Code Execution (935966)");
     script_summary(english:"Determines the presence of update 935966");
    
     script_set_attribute(attribute:"synopsis", value:
    "Arbitrary code can be executed on the remote host due to the DNS
    service.");
     script_set_attribute(attribute:"description", value:
    "The remote host has the Windows DNS server installed.
    
    There is a flaw in the remote version of this server that may allow an
    attacker to execute arbitrary code on the remote host with SYSTEM
    privileges.  To exploit this flaw, an attacker needs to connect to the
    DNS server RPC interface and send malformed RPC queries.");
     script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2007/ms07-029");
     script_set_attribute(attribute:"solution", value:
    "Microsoft has released patches for Windows 2000 and 2003 Server.");
     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:"metasploit_name", value:'MS07-029 Microsoft DNS RPC Service extractQuotedChar() Overflow (SMB)');
     script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
     script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
     script_set_attribute(attribute:"canvas_package", value:'CANVAS');
    
     script_set_attribute(attribute:"vuln_publication_date", value:"2007/04/12");
     script_set_attribute(attribute:"patch_publication_date", value:"2007/05/08");
     script_set_attribute(attribute:"plugin_publication_date", value:"2007/05/08");
    
     script_set_attribute(attribute:"plugin_type", value:"local");
     script_set_attribute(attribute:"cpe", value:"cpe:/o:microsoft:windows");
     script_end_attributes();
    
     script_category(ACT_GATHER_INFO);
    
     script_copyright(english:"This script is Copyright (C) 2007-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 = 'MS07-029';
    kb = '935966';
    
    kbs = make_list(kb);
    if (get_kb_item("Host/patch_management_checks")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE);
    
    
    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', win2003:'1,2') <= 0) audit(AUDIT_OS_SP_NOT_VULN);
    if (!get_kb_item("SMB/Registry/HKLM/SYSTEM/CurrentControlSet/Services/DNS/DisplayName")) exit(0, "The host does not have the DNS Server service.");
    
    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);
    
    if (
      hotfix_is_vulnerable(os:"5.2", sp:1, file:"Dns.exe", version:"5.2.3790.2915", dir:"\system32", bulletin:bulletin, kb:kb) ||
      hotfix_is_vulnerable(os:"5.2", sp:2, file:"Dns.exe", version:"5.2.3790.4059", dir:"\system32", bulletin:bulletin, kb:kb) ||
      hotfix_is_vulnerable(os:"5.0", file:"Dns.exe", version:"5.0.2195.7135", dir:"\system32", bulletin:bulletin, kb:kb)
    )
    {
      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 familyDNS
    NASL idMS_DNS_KB935966.NASL
    descriptionAccording to its self-reported version number, the Microsoft DNS Server running on the remote host contains an issue that could allow an attacker to execute arbitrary code with SYSTEM privileges. To exploit this issue, an attacker needs to connect to the DNS server RPC interface and send malformed RPC queries.
    last seen2020-06-01
    modified2020-06-02
    plugin id72832
    published2014-03-05
    reporterThis script is Copyright (C) 2014-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/72832
    titleMS07-029: Vulnerability in Windows DNS RPC Interface Could Allow Remote Code Execution (935966) (uncredentialed check)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(72832);
      script_version("1.6");
      script_cvs_date("Date: 2018/11/15 20:50:21");
    
      script_cve_id("CVE-2007-1748");
      script_bugtraq_id(23470);
      script_xref(name:"CERT", value:"555920");
      script_xref(name:"EDB-ID", value:"3737");
      script_xref(name:"EDB-ID", value:"3740");
      script_xref(name:"MSFT", value:"MS07-029");
      script_xref(name:"MSKB", value:"935966");
    
      script_name(english:"MS07-029: Vulnerability in Windows DNS RPC Interface Could Allow Remote Code Execution (935966) (uncredentialed check)");
      script_summary(english:"Checks version of Microsoft DNS Server");
    
      script_set_attribute(attribute:"synopsis", value:
    "The DNS server running on the remote host is potentially affected by a
    remote code execution vulnerability.");
      script_set_attribute(attribute:"description", value:
    "According to its self-reported version number, the Microsoft DNS Server
    running on the remote host contains an issue that could allow an
    attacker to execute arbitrary code with SYSTEM privileges.  To exploit
    this issue, an attacker needs to connect to the DNS server RPC interface
    and send malformed RPC queries.");
      script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2007/ms07-029");
      script_set_attribute(attribute:"solution", value:"Microsoft has released patches for Windows 2000 and 2003 Server.");
      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:"metasploit_name", value:'MS07-029 Microsoft DNS RPC Service extractQuotedChar() Overflow (SMB)');
      script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
      script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
      script_set_attribute(attribute:"canvas_package", value:'CANVAS');
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2007/04/12");
      script_set_attribute(attribute:"patch_publication_date", value:"2007/05/08");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/03/05");
    
      script_set_attribute(attribute:"plugin_type", value:"remote");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:microsoft:windows");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"DNS");
    
      script_copyright(english:"This script is Copyright (C) 2014-2018 Tenable Network Security, Inc.");
    
      script_dependencies("ms_dns_version.nasl");
      script_require_keys("ms_dns/version");
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    
    version = get_kb_item_or_exit("ms_dns/version");
    port = 53;
    fix = NULL;
    
    # Windows Server 2003
    if (version =~ "^5\.2\.3790\.")
    {
      # SP2
      if (
        ver_compare(ver:version, fix:"5.2.3790.3959") >= 0 &&
        ver_compare(ver:version, fix:"5.2.3790.4059") == -1
      )
        fix = "5.2.3790.4059";
    
      # SP1
      else if (ver_compare(ver:version, fix:"5.2.3790.2915") == -1)
        fix = "5.2.3790.2915";
    }
    
    # Windows 2000
    else if (version =~ "^5\.0\.2195\." && ver_compare(ver:version, fix:"5.0.2195.7135") == -1)
      fix = "5.0.2195.7135";
    
    else
      audit(AUDIT_LISTEN_NOT_VULN, "Microsoft DNS Server", port, version, "UDP");
    
    
    if (report_verbosity > 0)
    {
      report =
        '\n  Installed version : ' + version +
        '\n  Fixed version     : ' + fix +
        '\n';
      security_hole(port:port, proto:"udp", extra:report);
    }
    else security_hole(port:port, proto:"udp");
    

Oval

accepted2011-05-16T04:00:36.198-04:00
classvulnerability
contributors
  • nameSudhir Gandhe
    organizationSecure Elements, Inc.
  • nameShane Shaffer
    organizationG2, Inc.
  • nameShane Shaffer
    organizationG2, Inc.
  • nameSudhir Gandhe
    organizationTelos
  • nameShane Shaffer
    organizationG2, Inc.
definition_extensions
  • commentMicrosoft Windows 2000 SP4 or later is installed
    ovaloval:org.mitre.oval:def:229
  • commentMicrosoft Windows Server 2003 SP1 (x86) is installed
    ovaloval:org.mitre.oval:def:565
  • commentMicrosoft Windows Server 2003 SP2 (x86) is installed
    ovaloval:org.mitre.oval:def:1935
  • commentMicrosoft Windows Server 2003 is installed
    ovaloval:org.mitre.oval:def:128
  • commentMicrosoft Windows Server 2003 is installed
    ovaloval:org.mitre.oval:def:128
descriptionStack-based buffer overflow in the RPC interface in the Domain Name System (DNS) Server Service in Microsoft Windows 2000 Server SP 4, Server 2003 SP 1, and Server 2003 SP 2 allows remote attackers to execute arbitrary code via a long zone name containing character constants represented by escape sequences.
familywindows
idoval:org.mitre.oval:def:1228
statusaccepted
submitted2007-05-08T19:30:00
titleDNS RPC Management Vulnerability
version75

Packetstorm

Saint

bid23470
descriptionWindows DNS server RPC management interface buffer overflow
iddns_rpcmibo
osvdb34100
titlewindows_dns_rpc
typeremote

Seebug

bulletinFamilyexploit
descriptionNo description provided by source.
idSSV:6634
last seen2017-11-19
modified2007-04-17
published2007-04-17
reporterRoot
sourcehttps://www.seebug.org/vuldb/ssvid-6634
titleMS Windows DNS DnssrvQuery Remote Stack Overflow Exploit