Vulnerabilities > CVE-2007-1748 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in Microsoft Windows 2000 and Windows 2003 Server
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN 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.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
OS | 7 |
Common Weakness Enumeration (CWE)
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
description Microsoft DNS RPC Service extractQuotedChar() Overflow (SMB). CVE-2007-1748. Remote exploit for windows platform id EDB-ID:16366 last seen 2016-02-01 modified 2010-09-28 published 2010-09-28 reporter metasploit source https://www.exploit-db.com/download/16366/ title Microsoft DNS RPC Service extractQuotedChar Overflow SMB description MS Windows DNS RPC Remote Buffer Overflow Exploit (win2k SP4). CVE-2007-1748. Remote exploit for windows platform id EDB-ID:3737 last seen 2016-01-31 modified 2007-04-15 published 2007-04-15 reporter Winny Thomas source https://www.exploit-db.com/download/3737/ title Microsoft Windows 2000 SP4 - DNS RPC Remote Buffer Overflow Exploit description Microsoft DNS RPC Service extractQuotedChar() Overflow (TCP). CVE-2007-1748. Remote exploit for windows platform id EDB-ID:16748 last seen 2016-02-02 modified 2010-07-25 published 2010-07-25 reporter metasploit source https://www.exploit-db.com/download/16748/ title Microsoft DNS RPC Service extractQuotedChar Overflow TCP description MS Windows DNS DnssrvQuery Remote Stack Overflow Exploit. CVE-2007-1748. Remote exploit for windows platform id EDB-ID:3740 last seen 2016-01-31 modified 2007-04-15 published 2007-04-15 reporter devcode source https://www.exploit-db.com/download/3740/ title Microsoft Windows - DNS DnssrvQuery Remote Stack Overflow Exploit
Metasploit
description This module exploits a stack buffer overflow in the RPC interface of the Microsoft DNS service. The vulnerability is triggered when a long zone name parameter is supplied that contains escaped octal strings. This module is capable of bypassing NX/DEP protection on Windows 2003 SP1/SP2. id MSF:EXPLOIT/WINDOWS/DCERPC/MS07_029_MSDNS_ZONENAME last seen 2020-06-14 modified 2019-05-23 published 2010-07-25 references https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1748 reporter Rapid7 source https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/dcerpc/ms07_029_msdns_zonename.rb title MS07-029 Microsoft DNS RPC Service extractQuotedChar() Overflow (TCP) description This module exploits a stack buffer overflow in the RPC interface of the Microsoft DNS service. The vulnerability is triggered when a long zone name parameter is supplied that contains escaped octal strings. This module is capable of bypassing NX/DEP protection on Windows 2003 SP1/SP2. This module exploits the RPC service using the \DNSSERVER pipe available via SMB. This pipe requires a valid user account to access, so the SMBUSER and SMBPASS options must be specified. id MSF:EXPLOIT/WINDOWS/SMB/MS07_029_MSDNS_ZONENAME last seen 2020-06-14 modified 2019-05-23 published 2010-07-25 references https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1748 reporter Rapid7 source https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/smb/ms07_029_msdns_zonename.rb title MS07-029 Microsoft DNS RPC Service extractQuotedChar() Overflow (SMB)
Nessus
NASL family Windows : Microsoft Bulletins NASL id SMB_NT_MS07-029.NASL description 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. last seen 2020-06-01 modified 2020-06-02 plugin id 25168 published 2007-05-08 reporter This script is Copyright (C) 2007-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/25168 title MS07-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 family DNS NASL id MS_DNS_KB935966.NASL description 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. last seen 2020-06-01 modified 2020-06-02 plugin id 72832 published 2014-03-05 reporter This script is Copyright (C) 2014-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/72832 title MS07-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
accepted | 2011-05-16T04:00:36.198-04:00 | ||||||||||||||||||||
class | vulnerability | ||||||||||||||||||||
contributors |
| ||||||||||||||||||||
definition_extensions |
| ||||||||||||||||||||
description | 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. | ||||||||||||||||||||
family | windows | ||||||||||||||||||||
id | oval:org.mitre.oval:def:1228 | ||||||||||||||||||||
status | accepted | ||||||||||||||||||||
submitted | 2007-05-08T19:30:00 | ||||||||||||||||||||
title | DNS RPC Management Vulnerability | ||||||||||||||||||||
version | 75 |
Packetstorm
data source https://packetstormsecurity.com/files/download/55983/mswin-dns-overflow.txt id PACKETSTORM:55983 last seen 2016-12-05 published 2007-04-17 reporter devcode source https://packetstormsecurity.com/files/55983/mswin-dns-overflow.txt.html title mswin-dns-overflow.txt data source https://packetstormsecurity.com/files/download/92140/windows-smb-ms07_029_msdns_zonename.rb.txt id PACKETSTORM:92140 last seen 2016-12-05 published 2010-07-26 reporter H D Moore source https://packetstormsecurity.com/files/92140/Microsoft-DNS-RPC-Service-extractQuotedChar-Overflow-SMB.html title Microsoft DNS RPC Service extractQuotedChar() Overflow (SMB) data source https://packetstormsecurity.com/files/download/92139/windows-dcerpc-ms07_029_msdns_zonename.rb.txt id PACKETSTORM:92139 last seen 2016-12-05 published 2010-07-26 reporter H D Moore source https://packetstormsecurity.com/files/92139/Microsoft-DNS-RPC-Service-extractQuotedChar-Overflow-TCP.html title Microsoft DNS RPC Service extractQuotedChar() Overflow (TCP) data source https://packetstormsecurity.com/files/download/56008/msdns_zonename.rb.txt id PACKETSTORM:56008 last seen 2016-12-05 published 2007-04-17 reporter H D Moore source https://packetstormsecurity.com/files/56008/msdns_zonename.rb.txt.html title msdns_zonename.rb.txt
Saint
bid | 23470 |
description | Windows DNS server RPC management interface buffer overflow |
id | dns_rpcmibo |
osvdb | 34100 |
title | windows_dns_rpc |
type | remote |
Seebug
bulletinFamily | exploit |
description | No description provided by source. |
id | SSV:6634 |
last seen | 2017-11-19 |
modified | 2007-04-17 |
published | 2007-04-17 |
reporter | Root |
source | https://www.seebug.org/vuldb/ssvid-6634 |
title | MS Windows DNS DnssrvQuery Remote Stack Overflow Exploit |
References
- http://blogs.technet.com/msrc/archive/2007/04/12/microsoft-security-advisory-935964-posted.aspx
- http://www.microsoft.com/technet/security/advisory/935964.mspx
- http://www.kb.cert.org/vuls/id/555920
- http://secunia.com/advisories/24871
- http://metasploit.com/svn/framework3/trunk/modules/exploits/windows/dcerpc/msdns_zonename.rb
- http://www.us-cert.gov/cas/techalerts/TA07-103A.html
- http://www.securityfocus.com/bid/23470
- http://www.securitytracker.com/id?1017910
- http://www.us-cert.gov/cas/techalerts/TA07-128A.html
- http://www.vupen.com/english/advisories/2007/1366
- https://exchange.xforce.ibmcloud.com/vulnerabilities/33629
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1228
- https://docs.microsoft.com/en-us/security-updates/securitybulletins/2007/ms07-029
- http://www.securityfocus.com/archive/1/468871/100/200/threaded
- http://www.securityfocus.com/archive/1/465863/100/100/threaded