Gentoo Logo

Wget: User-assisted file creation or overwrite

Content:

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 201110-10 / Wget
Release Date October 13, 2011
Latest Revision October 13, 2011: 1
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
net-misc/wget < 1.12-r2 >= 1.12-r2 All supported architectures

Related bugreports: #329941

Synopsis

Insecure usage of server provided filenames may allow the creation or overwriting of local files.

2.  Impact Information

Background

GNU Wget is a free software package for retrieving files using HTTP, HTTPS and FTP, the most widely-used Internet protocols.

Description

It was discovered that Wget was unsafely trusting server-provided filenames. This allowed attackers to overwrite or create files on the user's system by sending a redirect from the expected URL to another URL specifying the targeted file.

Impact

An unauthenticated remote attacker may be able to create or overwrite local files by enticing the user to open an attacker controlled URL, possibly leading to execution of arbitrary code.

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All Wget users should upgrade to the latest version:

Code Listing 3.1: Resolution

  # emerge --sync
  # emerge --ask --oneshot --verbose ">=net-misc/wget-1.12-r2"

NOTE: This is a legacy GLSA. Updates for all affected architectures are available since September 19, 2010. It is likely that your system is already no longer affected by this issue.

4.  References



Print

Page updated October 13, 2011

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.