Multiple vendors wget/cURL NTLM buffer username buffer overflow

wget-curl-ntlm-username-bo (22721) The risk level is classified as HighHigh Risk

Description:

Multiple vendors using wget or cURL are vulnerable to a stack-based buffer overflow caused by improper bounds checking with information sent to the memcpy() function. If NT Lan Manager (NTLM) authentication is enabled and sending a long NTLM username, a remote attacker could overflow a buffer and execute arbitrary code on the system with user privileges.

Note: It is also reported that an attacker could exploit this vulnerability by sending a HTTP 302 REDIRECT command to the connecting client.


Consequences:

Gain Access

Remedy:

For wget:
Upgrade to the latest version of wget (1.10.2 or later), available from the wget Download Web page. See References.

For cURL:
Apply the patch for this vulnerability, as listed in Project cURL Security Advisory dated October 13 2005.

As a workaround, ensure the NTLM support is disabled in wget and cURL.

For Debian GNU/Linux:
Refer to DSA-919-2 for patch, upgrade, or suggested workaround information. See References.

For Red Hat Linux (curl):
Refer to RHSA-2005:807-6 for patch, upgrade, or suggested workaround information. See References.

For Red Hat Linux (wget):
Refer to RHSA-2005:812-5 for patch, upgrade, or suggested workaround information. See References.

For Gentoo Linux:
Refer to Gentoo Linux Security Announcement GLSA 2005-10-19 for patch, upgrade, or suggested workaround information. See References.

For Ubuntu Linux:
Refer to USN-205-1 for patch, upgrade, or suggested workaround information. See References.

For SUSE Linux:
Apply the updates for this vulnerability, as listed in SUSE Security Announcement SUSE-SA:2005:063. See References.

For other distributions:
Contact your vendor for upgrade or patch information.

References:

  • cURL Web site: cURL and libcurl.
  • iDEFENSE Security Advisory 10.13.05: Multiple Vendor wget/curl NTLM Username Buffer Overflow Vulnerability.
  • Project cURL Security Advisory, October 13th 2005: libcurl NTLM Buffer Overflow Vulnerability.
  • wget Download Web page: Index of /pub/gnu/wget.
  • ASA-2006-027: curl security update (RHSA-2005-807)
  • BID-15102: Multiple Vendor WGet/Curl NTLM Username Buffer Overflow Vulnerability
  • BID-15647: RETIRED: Apple Mac OS X Security Update 2005-009 Multiple Vulnerabilities
  • CVE-2005-3185: 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.
  • DSA-919: curl -- buffer overflow
  • GLSA-200510-19: cURL: NTLM username stack overflow
  • MDKSA-2005:182: Updated curl packages fix NTLM authentication vulnerability
  • MDKSA-2005:183: Updated wget packages fix NTLM authentication vulnerability
  • OSVDB ID: 20011: GNU wget NTLM Username ntlm_output() Function Overflow
  • RHSA-2005-807: curl security update
  • RHSA-2005-812: wget security update
  • SA17192: wget NTLM Username Handling Buffer Overflow Vulnerability
  • SA17193: cURL/libcURL NTLM Username Handling Buffer Overflow Vulnerability
  • SA17813: Mac OS X Security Update Fixes Multiple Vulnerabilities
  • SECTRACK ID: 1015056: wget Buffer Overflow in Processing NTLM Authentication Values May Let Remote Users Execute Arbitrary Code
  • SECTRACK ID: 1015057: cURL/libcurl Buffer Overflow in Processing NTLM Authentication Values May Let Remote Users Execute Arbitrary Code
  • SUSE-SA:2005:063: wget curl: remote code execution
  • SUSE-SR:2005:025: SUSE Security Summary Report
  • USN-205-1: Curl and wget vulnerabilities

Platforms Affected:

  • Canonical Ubuntu 4.10
  • Canonical Ubuntu 5.04
  • Canonical Ubuntu 5.10
  • cURL cURL 7.10.6 to 7.14.1
  • cURL cURL 7.13.2
  • cURL libcurl 7.10.6 to 7.14.1
  • cURL Libcurl 7.13.2
  • Debian Debian Linux 3.0
  • Debian Debian Linux 3.1
  • Gentoo Linux
  • GNU wget 1.10
  • MandrakeSoft Mandrake Linux 10.1
  • MandrakeSoft Mandrake Linux 10.1 X86_64
  • MandrakeSoft Mandrake Linux 2006 X86_64
  • MandrakeSoft Mandrake Linux 2006
  • MandrakeSoft Mandrake Linux LE2005
  • MandrakeSoft Mandrake Linux LE2005 X86_64
  • MandrakeSoft Mandrake Linux Corporate Server 3.0
  • MandrakeSoft Mandrake Linux Corporate Server 3.0 X86_64
  • MandrakeSoft Mandrake Multi Network Firewall 2.0
  • Novell Linux Desktop 9
  • Novell Open Enterprise Server
  • Novell Open Enterprise Server
  • RedHat Enterprise Linux 2.1 ES
  • RedHat Enterprise Linux 2.1 WS
  • RedHat Enterprise Linux 2.1 AS
  • RedHat Enterprise Linux 3 ES
  • RedHat Enterprise Linux 3 AS
  • RedHat Enterprise Linux 3 Desktop
  • RedHat Enterprise Linux 3 WS
  • RedHat Enterprise Linux 4 Desktop
  • RedHat Enterprise Linux 4 ES
  • RedHat Enterprise Linux 4 WS
  • RedHat Enterprise Linux 4 AS
  • RedHat Linux Advanced Workstation 2.1 Itanium
  • SuSE Linux Enterprise Server 9
  • SUSE SuSE Linux 10.0
  • SUSE SuSE Linux 9.1
  • SUSE SuSE Linux 9.2
  • SUSE SuSE Linux 9.3

Reported:

Oct 13, 2005

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this

Return to the main page