Debian DSA-1738-1 : curl - arbitrary file access

medium Nessus Plugin ID 35908

Synopsis

The remote Debian host is missing a security-related update.

Description

David Kierznowski discovered that libcurl, a multi-protocol file transfer library, when configured to follow URL redirects automatically, does not question the new target location. As libcurl also supports file:// and scp:// URLs - depending on the setup - an untrusted server could use that to expose local files, overwrite local files or even execute arbitrary code via a malicious URL redirect.

This update introduces a new option called CURLOPT_REDIR_PROTOCOLS which by default does not include the scp and file protocol handlers.

Solution

Upgrade the curl packages.

For the oldstable distribution (etch) this problem has been fixed in version 7.15.5-1etch2.

For the stable distribution (lenny) this problem has been fixed in version 7.18.2-8lenny2.

See Also

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=518423

https://www.debian.org/security/2009/dsa-1738

Plugin Details

Severity: Medium

ID: 35908

File Name: debian_DSA-1738.nasl

Version: 1.14

Type: local

Agent: unix

Published: 3/12/2009

Updated: 1/4/2021

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:4.0, p-cpe:/a:debian:debian_linux:curl, cpe:/o:debian:debian_linux:5.0

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/11/2009

Reference Information

CVE: CVE-2009-0037

BID: 33962

CWE: 352

DSA: 1738