glftpd unable to handle certain directory names
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-ftpd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have been using glftpd on Ubuntu 8.04 LTS and 10.04 LTS without a problem. After the latest update to Ubuntu 12.04 LTS some serious issues are surfacing with particular directories. I think this is happening with either very long names or if a specific pattern is contained.
To reproduce the problem:
- install vanilla 12.04 in a virtualbox
- sudo apt-get install xinetd zip unzip openssl
- wget http://
- tar -zxvf glftpd-LNX_2.01.tgz
- cd glftpd-LNX_2.01
- sudo ./installgl.sh
Give the following answers to the installer:
Use tcpd: [Y]es
Use a jailed environment?: [Y]es
Please enter the private directory to install glftpd inside [/jail]: enter
Use a private group?: [Y]es
What would you like your private group to be called? [glftpd]: enter
Please enter the directory inside /jail to install glftpd to [/glftpd]: enter
Press <enter> for the default (glftpd)> enter
Enter the port you would like glftpd to listen on [1337]: 10087
Do you want to use [I]netd or [X]inetd? X
This is for glftpd's 'reset' binary (see docs for more info) [Y/N]: Y
Please specify location, inside /jail/glftpd, to install the cert (ftpd-dsa.pem) [/etc]: enter
Please specify a generic name for this certificate. ... (press enter for glftpd): enter
- sudo service xinetd stop
- add ipmask to glftpd user, i.e. sudo echo 'IP *@*' >> /jail/glftpd/
- start ftp client, use FTP over TLS and login to localhost:10087 with user:glftpd & pass:glftpd
Now try and create the directory Our.Trip.
21:43 >>> MKD Our.Trip.
21:43 257 "/incoming/
21:43 >>> CWD Our.Trip.
21:43 550 Our.Trip.
Notice how it mixes up the characters in the directory it creates (output after the MKD command). Then it tries to CWD into this directory which of course does not exist because it was created with a different name. I wonder if this is cause by some overflow problem.
On a side note, testing this on different machines, sometime while logged in the process glftpd:glftpd is sometimes run as root sometimes as libuuid depending on the machine I try this on.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ftpd (not installed)
ProcVersionSign
Uname: Linux 3.2.0-34-
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu15
Architecture: i386
Date: Mon Dec 10 22:56:50 2012
MarkForUpload: True
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: linux-ftpd
UpgradeStatus: Upgraded to precise on 2012-12-05 (5 days ago)
Status changed to 'Confirmed' because the bug affects multiple users.