ID CVE-2005-3185
Summary Stack-based buffer overflow in the ntlm_output function in http-ntlm.c for (1) wget 1.10, (2) curl 7.13.2, and (3) libcurl 7.13.2, and other products that use libcurl, when NTLM authentication is enabled, allows remote servers to execute arbitrary code via a long NTLM username.
References
Vulnerable Configurations
  • cpe:2.3:a:curl:curl:7.13.2
    cpe:2.3:a:curl:curl:7.13.2
  • cpe:2.3:a:libcurl:libcurl:7.13.2
    cpe:2.3:a:libcurl:libcurl:7.13.2
  • cpe:2.3:a:wget:wget:1.10
    cpe:2.3:a:wget:wget:1.10
CVSS
Base: 7.5 (as of 14-10-2005 - 11:17)
Impact:
Exploitability:
CWE CWE-119
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.
  • Overflow Binary Resource File
    An attack of this type exploits a buffer overflow vulnerability in the handling of binary resources. Binary resources may include music files like MP3, image files like JPEG files, and any other binary file. These attacks may pass unnoticed to the client machine through normal usage of files, such as a browser loading a seemingly innocent JPEG file. This can allow the attacker access to the execution stack and execute arbitrary code in the target process. This attack pattern is a variant of standard buffer overflow attacks using an unexpected vector (binary files) to wrap its attack and open up a new attack vector. The attacker is required to either directly serve the binary content to the victim, or place it in a locale like a MP3 sharing application, for the victim to download. The attacker then is notified upon the download or otherwise locates the vulnerability opened up by the buffer overflow.
  • Buffer Overflow via Symbolic Links
    This type of attack leverages the use of symbolic links to cause buffer overflows. An attacker can try to create or manipulate a symbolic link file such that its contents result in out of bounds data. When the target software processes the symbolic link file, it could potentially overflow internal buffers with insufficient bounds checking.
  • Overflow Variables and Tags
    This type of attack leverages the use of tags or variables from a formatted configuration data to cause buffer overflow. The attacker crafts a malicious HTML page or configuration file that includes oversized strings, thus causing an overflow.
  • Buffer Overflow via Parameter Expansion
    In this attack, the target software is given input that the attacker knows will be modified and expanded in size during processing. This attack relies on the target software failing to anticipate that the expanded data may exceed some internal limit, thereby creating a buffer overflow.
  • Buffer Overflow in an API Call
    This attack targets libraries or shared code modules which are vulnerable to buffer overflow attacks. An attacker who has access to an API may try to embed malicious code in the API function call and exploit a buffer overflow vulnerability in the function's implementation. All clients that make use of the code library thus become vulnerable by association. This has a very broad effect on security across a system, usually affecting more than one software process.
  • Buffer Overflow in Local Command-Line Utilities
    This attack targets command-line utilities available in a number of shells. An attacker can leverage a vulnerability found in a command-line utility to escalate privilege to root.
Access
VectorComplexityAuthentication
NETWORK LOW NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
nessus via4
  • NASL family MacOS X Local Security Checks
    NASL id MACOSX_SECUPD2005-009.NASL
    description The remote host is running Apple Mac OS X, but lacks Security Update 2005-009. This security update contains fixes for the following applications : - Apache2 - Apache_mod_ssl - CoreFoundation - curl - iodbcadmintool - OpenSSL - passwordserver - Safari - sudo - syslog
    last seen 2019-02-21
    modified 2018-07-14
    plugin id 20249
    published 2005-11-30
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=20249
    title Mac OS X Multiple Vulnerabilities (Security Update 2005-009)
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2005-807.NASL
    description Updated curl packages that fix a security issue are now available. This update has been rated as having moderate security impact by the Red Hat Security Response Team. cURL is a tool for getting files from FTP, HTTP, Gopher, Telnet, and Dict servers, using any of the supported protocols. A stack based buffer overflow bug was found in cURL's NTLM authentication module. It is possible to execute arbitrary code on a user's machine if the user can be tricked into connecting to a malicious web server using NTLM authentication. The Common Vulnerabilities and Exposures project has assigned the name CVE-2005-3185 to this issue. All users of curl are advised to upgrade to these updated packages, which contain a backported patch that resolve this issue.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 21864
    published 2006-07-03
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=21864
    title CentOS 3 / 4 : curl (CESA-2005:807)
  • NASL family Slackware Local Security Checks
    NASL id SLACKWARE_SSA_2005-310-01.NASL
    description New curl packages are available for Slackware 9.1, 10.0, 10.1, 10.2, and -current, and new wget packages are available for Slackware 8.1, 9.0, 9.1, 10.0, 10.1, 10.2, and -current. These address a buffer overflow in NTLM handling which may present a security problem, though no public exploits are known at this time.
    last seen 2019-02-21
    modified 2018-08-09
    plugin id 20149
    published 2005-11-07
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=20149
    title Slackware 10.0 / 10.1 / 10.2 / 8.1 / 9.0 / 9.1 / current : curl/wget (SSA:2005-310-01)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-919.NASL
    description The upstream developer of curl, a multi-protocol file transfer library, informed us that the former correction to several off-by-one errors are not sufficient. For completeness please find the original bug description below : Several problems were discovered in libcurl, a multi-protocol file transfer library. The Common Vulnerabilities and Exposures project identifies the following problems : - CVE-2005-3185 A buffer overflow has been discovered in libcurl that could allow the execution of arbitrary code. - CVE-2005-4077 Stefan Esser discovered several off-by-one errors that allows local users to trigger a buffer overflow and cause a denial of service or bypass PHP security restrictions via certain URLs.
    last seen 2019-02-21
    modified 2018-07-20
    plugin id 22785
    published 2006-10-14
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=22785
    title Debian DSA-919-2 : curl - buffer overflow
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-205-1.NASL
    description A buffer overflow has been found in the NTLM authentication handler of the Curl library and wget. By tricking an user or automatic system that uses the Curl library, the curl application, or wget into visiting a specially crafted website, a remote attacker could exploit this to execute arbitrary code with the privileges of the calling user. The Ubuntu 4.10 and 5.04 versions of wget are not affected by this. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-08-15
    plugin id 20621
    published 2006-01-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=20621
    title Ubuntu 4.10 / 5.04 / 5.10 : curl, wget vulnerabilities (USN-205-1)
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2005-812.NASL
    description Updated wget packages that fix a security issue are now available. This update has been rated as having important security impact by the Red Hat Security Response Team. GNU Wget is a file retrieval utility that can use either the HTTP or FTP protocols. A stack based buffer overflow bug was found in the wget implementation of NTLM authentication. An attacker could execute arbitrary code on a user's machine if the user can be tricked into connecting to a malicious web server using NTLM authentication. The Common Vulnerabilities and Exposures project has assigned the name CVE-2005-3185 to this issue. All users of wget are advised to upgrade to these updated packages, which contain a backported patch that resolves this issue.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 21868
    published 2006-07-03
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=21868
    title CentOS 3 / 4 : wget (CESA-2005:812)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2005-1000.NASL
    description This package fixes a buffer overflow bug in NTLM authentication code of curl (CVE-2005-3185). Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-07-19
    plugin id 20056
    published 2005-10-19
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=20056
    title Fedora Core 3 : curl-7.12.3-4.fc3 (2005-1000)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-200510-19.NASL
    description The remote host is affected by the vulnerability described in GLSA-200510-19 (cURL: NTLM username stack overflow) iDEFENSE reported that insufficient bounds checking on a memcpy() of the supplied NTLM username can result in a stack overflow. Impact : A remote attacker could setup a malicious server and entice an user to connect to it using a cURL client, potentially leading to the execution of arbitrary code with the permissions of the user running cURL. Workaround : Disable NTLM authentication by not using the --anyauth or --ntlm options when using cURL (the command line version). Workarounds for programs that use the cURL library depend on the configuration options presented by those programs.
    last seen 2019-02-21
    modified 2018-08-10
    plugin id 20081
    published 2005-10-24
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=20081
    title GLSA-200510-19 : cURL: NTLM username stack overflow
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2005-812.NASL
    description Updated wget packages that fix a security issue are now available. This update has been rated as having important security impact by the Red Hat Security Response Team. GNU Wget is a file retrieval utility that can use either the HTTP or FTP protocols. A stack based buffer overflow bug was found in the wget implementation of NTLM authentication. An attacker could execute arbitrary code on a user's machine if the user can be tricked into connecting to a malicious web server using NTLM authentication. The Common Vulnerabilities and Exposures project has assigned the name CVE-2005-3185 to this issue. All users of wget are advised to upgrade to these updated packages, which contain a backported patch that resolves this issue.
    last seen 2019-02-21
    modified 2018-11-15
    plugin id 20144
    published 2005-11-04
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=20144
    title RHEL 2.1 / 3 / 4 : wget (RHSA-2005:812)
  • NASL family Mandriva Local Security Checks
    NASL id MANDRAKE_MDKSA-2005-183.NASL
    description A vulnerability in libcurl's NTLM function can overflow a stack-based buffer if given too long a user name or domain name in NTLM authentication is enabled and either a) pass a user and domain name to libcurl that together are longer than 192 bytes or b) allow (lib)curl to follow HTTP redirects and the new URL contains a URL with a user and domain name that together are longer than 192 bytes. Wget, as of version 1.10, uses the NTLM code from libcurl and is also vulnerable to this issue. The updated packages have been patched to address this issue.
    last seen 2019-02-21
    modified 2018-11-15
    plugin id 20430
    published 2006-01-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=20430
    title Mandrake Linux Security Advisory : wget (MDKSA-2005:183)
  • NASL family Mandriva Local Security Checks
    NASL id MANDRAKE_MDKSA-2005-182.NASL
    description A vulnerability in libcurl's NTLM function can overflow a stack-based buffer if given too long a user name or domain name in NTLM authentication is enabled and either a) pass a user and domain name to libcurl that together are longer than 192 bytes or b) allow (lib)curl to follow HTTP redirects and the new URL contains a URL with a user and domain name that together are longer than 192 bytes. The updated packages have been patched to address this issue.
    last seen 2019-02-21
    modified 2018-11-15
    plugin id 20042
    published 2005-10-19
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=20042
    title Mandrake Linux Security Advisory : curl (MDKSA-2005:182)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2005-807.NASL
    description Updated curl packages that fix a security issue are now available. This update has been rated as having moderate security impact by the Red Hat Security Response Team. cURL is a tool for getting files from FTP, HTTP, Gopher, Telnet, and Dict servers, using any of the supported protocols. A stack based buffer overflow bug was found in cURL's NTLM authentication module. It is possible to execute arbitrary code on a user's machine if the user can be tricked into connecting to a malicious web server using NTLM authentication. The Common Vulnerabilities and Exposures project has assigned the name CVE-2005-3185 to this issue. All users of curl are advised to upgrade to these updated packages, which contain a backported patch that resolve this issue.
    last seen 2019-02-21
    modified 2018-11-15
    plugin id 20143
    published 2005-11-04
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=20143
    title RHEL 3 / 4 : curl (RHSA-2005:807)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2005-1129.NASL
    description This package fixes a security buffer overflow bug in URL authentication code of curl (CVE-2005-4077). Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-07-19
    plugin id 20289
    published 2005-12-11
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=20289
    title Fedora Core 4 : curl-7.13.1-4.fc4 (2005-1129)
oval via4
accepted 2013-04-29T04:22:26.009-04:00
class vulnerability
contributors
  • name Aharon Chernin
    organization SCAP.com, LLC
  • name Dragos Prisaca
    organization G2, Inc.
definition_extensions
  • comment The operating system installed on the system is Red Hat Enterprise Linux 3
    oval oval:org.mitre.oval:def:11782
  • comment CentOS Linux 3.x
    oval oval:org.mitre.oval:def:16651
  • comment The operating system installed on the system is Red Hat Enterprise Linux 4
    oval oval:org.mitre.oval:def:11831
  • comment CentOS Linux 4.x
    oval oval:org.mitre.oval:def:16636
  • comment Oracle Linux 4.x
    oval oval:org.mitre.oval:def:15990
description Stack-based buffer overflow in the ntlm_output function in http-ntlm.c for (1) wget 1.10, (2) curl 7.13.2, and (3) libcurl 7.13.2, and other products that use libcurl, when NTLM authentication is enabled, allows remote servers to execute arbitrary code via a long NTLM username.
family unix
id oval:org.mitre.oval:def:9810
status accepted
submitted 2010-07-09T03:56:16-04:00
title Stack-based buffer overflow in the ntlm_output function in http-ntlm.c for (1) wget 1.10, (2) curl 7.13.2, and (3) libcurl 7.13.2, and other products that use libcurl, when NTLM authentication is enabled, allows remote servers to execute arbitrary code via a long NTLM username.
version 23
redhat via4
advisories
  • rhsa
    id RHSA-2005:807
  • rhsa
    id RHSA-2005:812
refmap via4
apple APPLE-SA-2005-11-29
bid
  • 15102
  • 15647
debian DSA-919
fedora
  • FEDORA-2005-1000
  • FEDORA-2005-1129
gentoo GLSA-200510-19
idefense 20051013 Multiple Vendor wget/curl NTLM Username Buffer Overflow Vulnerability
mandriva MDKSA-2005:182
osvdb 20011
sco SCOSA-2006.10
sectrack
  • 1015056
  • 1015057
secunia
  • 17192
  • 17193
  • 17203
  • 17208
  • 17228
  • 17247
  • 17297
  • 17320
  • 17400
  • 17403
  • 17485
  • 17813
  • 17965
  • 19193
slackware SSA:2005-310-01
sreason 82
suse SUSE-SA:2005:063
trustix TSLSA-2005-0059
ubuntu USN-205-1
vupen
  • ADV-2005-2088
  • ADV-2005-2125
  • ADV-2005-2659
xf wget-curl-ntlm-username-bo(22721)
Last major update 07-03-2011 - 00:00
Published 13-10-2005 - 18:02
Last modified 03-10-2018 - 17:31
Back to Top