Lucene search

K
certCERTVU:685996
HistoryOct 28, 2014 - 12:00 a.m.

GNU Wget creates arbitrary symbolic links during recursive FTP download

2014-10-2800:00:00
www.kb.cert.org
18

9.3 High

CVSS2

Access Vector

NETWORK

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:M/Au:N/C:C/I:C/A:C

0.078 Low

EPSS

Percentile

94.1%

Overview

GNU wget allows arbitrary filesystem access when creating symbolic links during a recursive FTP download. This allows an attacker to overwrite files with the permissions of the user running wget.

Description

CWE-59:** CWE-59: Improper Link Resolution Before File Access (‘Link Following’)**

Wget is a common Unix utility to retrieve remote files. When wget is running in recursive mode (the -m or -r switch) with a FTP server as the destination, it is vulnerable to a link following attack. A malicious FTP server, when configured to provide symlinks in the directory listing, can force the client wget utility to enter into the the specified local symlink, navigating the local file system for the attacker. Wget will then download and create or overwrite existing files within the local symlink, setting permissions to those of the remote files.

See the Rapid7 advisory for more details.


Impact

A remote unauthenticated malicious FTP server, connected to the victim via wget, can create and overwrite arbitrary files in the context of the user running wget.


Solution

Apply an Update

This vulnerability is addressed in wget 1.16. Updates should also be available in various package formats for downstream Linux distributions. Check your distribution’s package management system for updates.


Enable wget symlink traversal

In wget versions 1.15 and earlier, configure retr-symlinks=on in /etc/wgetrc or ~/.wgetrc or specify --retr-symlinks as a command line option to wget.


Vendor Information

685996

Filter by status: All Affected Not Affected Unknown

Filter by content: __ Additional information available

__ Sort by: Status Alphabetical

Expand all

Javascript is disabled. Click here to view vendors.

GNU wget Affected

Updated: October 28, 2014

Status

Affected

Vendor Statement

We have not received a statement from the vendor.

Vendor Information

We are not aware of further vendor information regarding this vulnerability.

CVSS Metrics

Group Score Vector
Base 5.8 AV:N/AC:M/Au:N/C:N/I:P/A:P
Temporal 4.8 E:F/RL:OF/RC:C
Environmental 3.6 CDP:ND/TD:M/CR:ND/IR:ND/AR:ND

References

Acknowledgements

Thanks to HD Moore and John Hart of Rapid7, Inc. for reporting this vulnerability.

This document was written by Chris King.

Other Information

CVE IDs: CVE-2014-4877
Date Public: 2014-10-27 Date First Published:

9.3 High

CVSS2

Access Vector

NETWORK

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:M/Au:N/C:C/I:C/A:C

0.078 Low

EPSS

Percentile

94.1%