Skip to navigation

Security Advisory Updated wget packages fix directory traversal bug

Advisory: RHSA-2002:229-13
Type: Security Advisory
Severity: N/A
Issued on: 2002-10-09
Last updated on: 2003-07-14
Affected Products: Red Hat Linux 6.2
Red Hat Linux 7.0
Red Hat Linux 7.1
Red Hat Linux 7.1 for iSeries
Red Hat Linux 7.1 for pSeries
Red Hat Linux 7.2
Red Hat Linux 7.3
Red Hat Linux 8.0
CVEs (cve.mitre.org): CVE-2002-1344

Details

The wget packages shipped with Red Hat Linux 6.2 through 8.0 contain a
security bug which, under certain circumstances, can cause local files to
be written outside the download directory.

[Updated 10 July 2003]
Added packages for Red Hat Linux on IBM iSeries and pSeries systems

Versions of wget prior to 1.8.2-4 contain a bug that permits a malicious
FTP server to create or overwrite files anywhere on the local file system.

FTP clients must check to see if an FTP server's response to the NLST
command includes any directory information along with the list of filenames
required by the FTP protocol (RFC 959, section 4.1.3).

If the FTP client fails to do so, a malicious FTP server can send filenames
beginning with '/' or containing '/../' which can be used to direct a
vulnerable FTP client to write files (such as .forward, .rhosts, .shost,
etc.) that can then be used for later attacks against the client machine.

All Red Hat Linux users using wget < 1.8.2-4 should upgrade
to the errata packages which are not vulnerable to this issue.

Thanks to Steven M. Christey for his work in discovering this issue
in current FTP clients and for providing a patched FTP server to verify
the new packages.


Solution

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

To update all RPMs for your particular architecture, run:

rpm -Fvh [filenames]

where [filenames] is a list of the RPMs you wish to upgrade. Only those
RPMs which are currently installed will be updated. Those RPMs which are
not installed but included in the list will not be updated. Note that you
can also use wildcards (*.rpm) if your current directory *only* contains the
desired RPMs.

Please note that this update is also available via Red Hat Network. Many
people find this an easier way to apply updates. To use Red Hat Network,
launch the Red Hat Update Agent with the following command:

up2date

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.

Updated packages

Red Hat Linux 6.2

SRPMS:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-4.6x/SRPMS/wget-1.8.2-4.6x.src.rpm
Missing file
    MD5: 2c06b1ab033d70ec287bb9c91a8daa68
 
IA-32:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-4.6x/i386/wget-1.8.2-4.6x.i386.rpm
Missing file
    MD5: fffbaeacd02411c23d011b1000f0ab49
 
Red Hat Linux 7.0

SRPMS:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-4.70/SRPMS/wget-1.8.2-4.70.src.rpm
Missing file
    MD5: 8cfc796d3489f3d19d4af589bb73641b
 
IA-32:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-4.70/i386/wget-1.8.2-4.70.i386.rpm
Missing file
    MD5: 8c8abf8f81f057dbd74098b87fb9b54c
 
Red Hat Linux 7.1

SRPMS:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-4.71/SRPMS/wget-1.8.2-4.71.src.rpm
Missing file
    MD5: 5e022a0c2f4afe5285a5ed6b8abc0ee8
 
IA-32:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-4.71/i386/wget-1.8.2-4.71.i386.rpm
Missing file
    MD5: 229949e6fdde7a02f56999b4271bc5b1
 
IA-64:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-4.71/ia64/wget-1.8.2-4.71.ia64.rpm
Missing file
    MD5: e24aba62d9589e0999678f880db6de08
 
Red Hat Linux 7.1 for iSeries

SRPMS:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-4.71/SRPMS/wget-1.8.2-4.71.src.rpm
Missing file
    MD5: 5e022a0c2f4afe5285a5ed6b8abc0ee8
 
iSeries:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-4.71/ppc/wget-1.8.2-4.71.ppc.rpm
Missing file
    MD5: d31261babebdd736de7b61a443c0d2c1
 
Red Hat Linux 7.1 for pSeries

SRPMS:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-4.71/SRPMS/wget-1.8.2-4.71.src.rpm
Missing file
    MD5: 5e022a0c2f4afe5285a5ed6b8abc0ee8
 
pSeries:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-4.71/ppc/wget-1.8.2-4.71.ppc.rpm
Missing file
    MD5: d31261babebdd736de7b61a443c0d2c1
 
Red Hat Linux 7.2

SRPMS:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-4.72/SRPMS/wget-1.8.2-4.72.src.rpm
Missing file
    MD5: eefe85c57b07aa14522ab79a5c2f5607
 
IA-32:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-4.72/i386/wget-1.8.2-4.72.i386.rpm
Missing file
    MD5: 03ae8545b03f137b72b57dc2b2e91e22
 
IA-64:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-4.72/ia64/wget-1.8.2-4.72.ia64.rpm
Missing file
    MD5: 9f349807fbd8ecc7a2678af45e5d4ad1
 
Red Hat Linux 7.3

SRPMS:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-4.73/SRPMS/wget-1.8.2-4.73.src.rpm
Missing file
    MD5: 554d83dadce4e18f0c601c571d43564e
 
IA-32:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-4.73/i386/wget-1.8.2-4.73.i386.rpm
Missing file
    MD5: 20deb3f2c37f331e87a473fb1cac3d83
 
Red Hat Linux 8.0

SRPMS:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-5/SRPMS/wget-1.8.2-5.src.rpm
Missing file
    MD5: 2ab86f0e4955e8e5dc9bf37a4037bfcf
 
IA-32:
ftp://updates.redhat.com/rhn/repository/NULL/wget/1.8.2-5/i386/wget-1.8.2-5.i386.rpm
Missing file
    MD5: efbebb343ded09fc553e5a34c75697f0
 

References


Keywords

client, directory, flaw:dot, ftp, traversal, wget


These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/