Gentoo Logo

tnftp: Arbitrary file overwriting

Content:

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200501-24 / tnftp
Release Date January 14, 2005
Latest Revision January 14, 2005: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
net-ftp/tnftp < 20050103 >= 20050103 All supported architectures

Related bugreports: #74704

Synopsis

tnftp fails to validate filenames when downloading files, making it vulnerable to arbitrary file overwriting.

2.  Impact Information

Background

tnftp is a NetBSD FTP client with several advanced features.

Description

The 'mget' function in cmds.c lacks validation of the filenames that are supplied by the server.

Impact

An attacker running an FTP server could supply clients with malicious filenames, potentially allowing the overwriting of arbitrary files with the permission of the connected user.

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All tnftp users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-ftp/tnftp-20050103"

4.  References



Print

Page updated January 14, 2005

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

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