vendor:
wget
by:
Jan Min????
5.5
CVSS
MEDIUM
Directory Traversal
22
CWE
Product Name: wget
Affected Version From: wget 1.9
Affected Version To: wget 1.9.1
Patch Exists: YES
Related CWE: CVE-2004-0452
CPE: a:gnu:wget:1.9
Metasploit:
https://www.rapid7.com/db/vulnerabilities/apple-osx-perl-cve-2008-5303/, https://www.rapid7.com/db/vulnerabilities/centos_linux-cve-2008-5302/, https://www.rapid7.com/db/vulnerabilities/suse-cve-2008-5302/, https://www.rapid7.com/db/vulnerabilities/vmsa-2010-0013-cve-2008-5302/, https://www.rapid7.com/db/vulnerabilities/gentoo-linux-cve-2008-5303/, https://www.rapid7.com/db/vulnerabilities/vmsa-2010-0013-cve-2008-5303/, https://www.rapid7.com/db/vulnerabilities/gentoo-linux-cve-2008-5302/, https://www.rapid7.com/db/vulnerabilities/apple-osx-perl-cve-2008-5302/, https://www.rapid7.com/db/vulnerabilities/centos_linux-cve-2008-5303/, https://www.rapid7.com/db/vulnerabilities/ubuntu-USN-700-1/, https://www.rapid7.com/db/vulnerabilities/suse-cve-2008-2827/, https://www.rapid7.com/db/vulnerabilities/freebsd-vid-13b0c8c8-bee0-11dd-a708-001fc66e7203/, https://www.rapid7.com/db/vulnerabilities/oracle-solaris-cve-2005-0448/, https://www.rapid7.com/db/vulnerabilities/freebsd-vid-4a99d61c-f23a-11dd-9f55-0030843d3802/, https://www.rapid7.com/db/vulnerabilities/gentoo-linux-cve-2005-0448/, https://www.rapid7.com/db/vulnerabilities/hpux-cve-2005-0448/, https://www.rapid7.com/db/vulnerabilities/gentoo-linux-cve-2004-0452/, https://www.rapid7.com/db/vulnerabilities/freebsd-vid-c418d472-6bd1-11d9-93ca-000a95bc6fae/, https://www.rapid7.com/db/vulnerabilities/suse-cve-2004-0452/, https://www.rapid7.com/db/vulnerabilities/oracle-solaris-cve-2004-0452/
Platforms Tested:
2004
wget directory traversal vulnerability
This is a proof of concept (POC) for the wget(1) directory traversal vulnerability. It demonstrates how an attacker can exploit the vulnerability to override a file on the target system. The POC uses a simple directory traversal technique to construct a malicious redirect that tricks wget into attempting to overwrite the specified file. The payload in the POC includes a shell command that is executed on the target system when wget connects for the second time. The POC also demonstrates how the attacker can send shell output via email.
Mitigation:
The vulnerability was patched in wget version 1.9.1. Users should update to the latest version of wget to mitigate the risk. Additionally, it is recommended to verify the integrity of downloaded files and avoid using wget with untrusted sources.