cURL and libcurl CURLOPT_FOLLOWLOCATION security bypass

curl-followlocation-security-bypass (49030) The risk level is classified as MediumMedium Risk

Description:

cURL and libcurl could allow a remote attacker to bypass security restrictions, caused by an error in the redirect implementation when CURLOPT_FOLLOWLOCATION is enabled. By persuading a victim to transfer files from a malicious HTTP server that redirects to a FILE:// or SCP:// URL, an attacker could exploit this vulnerability to bypass security restrictions and read or overwrite arbitrary files, trigger arbitrary requests, or execute arbitrary commands.

*CVSS:

Base Score: 6.8
  Access Vector: Network
  Access Complexity: Medium
  Authentication: None
  Confidentiality Impact: Partial
  Integrity Impact: Partial
  Availability Impact: Partial
 
Temporal Score: 5
  Exploitability: Unproven
  Remediation Level: Official-Fix
  Report Confidence: Confirmed

Consequences:

Bypass Security

Remedy:

Upgrade to the latest version of cURL (7.19.4 or later), available from the cURL Web page. See References.

For other distributions:
Apply the appropriate update for your system. See References.

References:

  • Apple Web site: About the security content of Security Update 2010-002 / Mac OS X v10.6.3.
  • cURL Web page: cURL - Security Advisory (March 3, 2009).
  • ASA-2009-130: curl security update (RHSA-2009-0341)
  • BID-33962: cURL/libcURL HTTP 'Location:' Redirect Security Bypass Vulnerability
  • CVE-2009-0037: The redirect implementation in curl and libcurl 5.11 through 7.19.3, when CURLOPT_FOLLOWLOCATION is enabled, accepts arbitrary Location values, which might allow remote HTTP servers to (1) trigger arbitrary requests to intranet servers, (2) read or overwrite arbitrary files via a redirect to a file: URL, or (3) execute arbitrary commands via a redirect to an scp: URL.
  • DSA-1738: curl -- arbitrary file access
  • GLSA-200903-21: cURL: Arbitrary file access
  • MDVSA-2009:069: curl
  • RHSA-2009-0341: Moderate: curl security update
  • SA34138: cURL/libcURL "Location:" Redirect URLs Security Bypass
  • SA38858: SSH Tectia Audit Player Multiple Vulnerabilities
  • SECTRACK ID: 1021783: cURL/libcurl HTTP Redirect Processing May Let Remote Users Access Files
  • SUSE-SR:2009:006: SUSE Security Summary Report
  • USN-726-1: curl vulnerability

Platforms Affected:

  • Apple Mac OS X 10.5.8
  • Apple Mac OS X 10.6
  • Apple Mac OS X 10.6.1
  • Apple Mac OS X 10.6.2
  • Apple Mac OS X Server 10.5.8
  • Apple Mac OS X Server 10.6
  • Apple Mac OS X Server 10.6.1
  • Apple Mac OS X Server 10.6.2
  • Canonical Ubuntu 6.06 LTS
  • Canonical Ubuntu 7.10
  • Canonical Ubuntu 8.04 LTS
  • Canonical Ubuntu 8.10
  • cURL cURL 5.11
  • cURL cURL 6.0
  • cURL cURL 6.1beta
  • cURL cURL 6.2
  • cURL cURL 6.3
  • cURL cURL 6.3.1
  • cURL cURL 6.4
  • cURL cURL 6.5
  • cURL cURL 6.5.1
  • cURL cURL 6.5.2
  • cURL cURL 7.1
  • cURL cURL 7.1.1
  • cURL cURL 7.10
  • cURL cURL 7.10.1
  • cURL cURL 7.10.2
  • cURL cURL 7.10.3
  • cURL cURL 7.10.4
  • cURL cURL 7.10.5
  • cURL cURL 7.10.6
  • cURL cURL 7.10.7
  • cURL cURL 7.10.8
  • cURL cURL 7.11.1
  • cURL cURL 7.12
  • cURL cURL 7.12.1
  • cURL cURL 7.12.2
  • cURL cURL 7.13
  • cURL cURL 7.13.2
  • cURL cURL 7.14
  • cURL cURL 7.14.1
  • cURL cURL 7.15
  • cURL cURL 7.15.1
  • cURL cURL 7.15.3
  • cURL cURL 7.16.3
  • cURL cURL 7.16.4
  • cURL cURL 7.17
  • cURL cURL 7.18
  • cURL cURL 7.19.3
  • cURL cURL 7.2
  • cURL cURL 7.2.1
  • cURL cURL 7.3
  • cURL cURL 7.4
  • cURL cURL 7.4.1
  • cURL cURL 7.4.2
  • cURL cURL 7.5
  • cURL cURL 7.5.1
  • cURL cURL 7.5.2
  • cURL cURL 7.6
  • cURL cURL 7.6.1
  • cURL cURL 7.7
  • cURL cURL 7.7.1
  • cURL cURL 7.7.2
  • cURL cURL 7.7.3
  • cURL cURL 7.8
  • cURL cURL 7.8.1
  • cURL cURL 7.8.2
  • cURL cURL 7.9
  • cURL cURL 7.9.1
  • cURL cURL 7.9.2
  • cURL cURL 7.9.3
  • cURL cURL 7.9.4
  • cURL cURL 7.9.5
  • cURL cURL 7.9.6
  • cURL cURL 7.9.7
  • cURL cURL 7.9.8
  • cURL Libcurl 5.11
  • cURL Libcurl 7.12
  • cURL Libcurl 7.12.1
  • cURL Libcurl 7.12.2
  • cURL Libcurl 7.12.3
  • cURL Libcurl 7.13
  • cURL Libcurl 7.13.1
  • cURL Libcurl 7.13.2
  • cURL Libcurl 7.14
  • cURL Libcurl 7.14.1
  • cURL Libcurl 7.15
  • cURL Libcurl 7.15.1
  • cURL Libcurl 7.15.2
  • cURL Libcurl 7.15.3
  • cURL Libcurl 7.16.3
  • cURL Libcurl 7.19.3
  • Debian Debian Linux 4.0
  • Debian Debian Linux 5.0
  • Gentoo Linux
  • MandrakeSoft Mandrake Linux 2008.0 X86_64
  • MandrakeSoft Mandrake Linux 2008.0
  • MandrakeSoft Mandrake Linux 2008.1 X86_64
  • MandrakeSoft Mandrake Linux 2008.1
  • MandrakeSoft Mandrake Linux Corporate Server 3.0 X86_64
  • MandrakeSoft Mandrake Linux Corporate Server 3.0
  • MandrakeSoft Mandrake Linux Corporate Server 4.0 X86_64
  • MandrakeSoft Mandrake Linux Corporate Server 4.0
  • MandrakeSoft Mandrake Multi Network Firewall 2.0
  • Mandriva Linux 2009.0
  • Mandriva Linux 2009.0 X86_64
  • RedHat Enterprise Linux 2.1 WS
  • RedHat Enterprise Linux 2.1 AS
  • RedHat Enterprise Linux 2.1 ES
  • RedHat Enterprise Linux 3 Desktop
  • RedHat Enterprise Linux 3 WS
  • RedHat Enterprise Linux 3 AS
  • RedHat Enterprise Linux 3 ES
  • RedHat Enterprise Linux 4 AS
  • RedHat Enterprise Linux 4 Desktop
  • RedHat Enterprise Linux 4 WS
  • RedHat Enterprise Linux 4 ES
  • RedHat Enterprise Linux 4.7.z AS
  • RedHat Enterprise Linux 5 Client Workstation
  • RedHat Enterprise Linux 5
  • RedHat Enterprise Linux 5 Client
  • RedHat Enterprise Linux 5.3.z EUS
  • RedHat Enterprise Linux Long Life 5.3
  • RedHat Linux Advanced Workstation 2.1 Itanium
  • RedHat Red Hat Enterprise Linux 4.7.z ES

Reported:

Mar 03, 2009

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

* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
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 IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

About IBM Internet Security Systems

IBM Internet Security Systems is a trusted security advisor to thousands of the world's leading businesses and governments, helping to provide pre-emptive protection for networks, desktops and servers. The IBM Proventia? integrated security platform is designed to automatically protect against both known and unknown threats, helping to keep networks up and running and shield customers from online attacks before they impact business assets. IBM Internet Security Systems products and services are based on the proactive security intelligence of its X-Force? research and development team ? an unequivocal world authority in vulnerability and threat research. The IBM Internet Security Systems product line is also complemented by comprehensive Managed Security Services and Professional Security Services. For more information, visit the IBM Internet Security Systems Web site at www.iss.net or call 800-776-2362.