GLSA 201110-10: Wget: User-assisted file creation or overwrite

Severity:normal
Title:Wget: User-assisted file creation or overwrite
Date:10/13/2011
Bugs: #329941
ID:201110-10

Synopsis

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

Background

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

Affected packages

Package Vulnerable Unaffected Architecture(s)
net-misc/wget < 1.12-r2 >= 1.12-r2 All supported architectures

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.

Workaround

There is no known workaround at this time.

Resolution

All Wget users should upgrade to the latest version:

      # 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.

References

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website: http://security.gentoo.org/glsa/glsa-201110-10.xml

Concerns?

Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org.

License

Copyright 2010 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.

Thank you!