Package: pure-ftpd
Version: 1.0.36-1.1
Severity: normal

Dear Maintainer,

During a security incident with a compromised FTP account I needed to lookup
the IP address inside the /var/log/messages log file.

Issue: When the foreign host has set bad DNS entries, for example

$ORIGIN 2.0.192.in-addr.arpa.
45      IN      PTR     customer.example.net.
46      IN      PTR     customer.example.net.
47      IN      PTR     customer.example.net.

$ORIGIN example.net.
; there is no "customer  IN  A" record

then I get a log entry like

Dec 19 10:13:06 kundwebs pure-ftpd: (?@customer.example.net) [WARNING] 
Authentication failed for user [user001]

instead

Dec 19 10:13:06 kundwebs pure-ftpd: (?@192.0.2.45) [WARNING] Authentication 
failed for user [user001]

Needed fix: pure-ftpd always must also resolve the host name received from
the PTR record in forward direction to ensure that it is not a bogus hostname,
i.e. they must be identical. In all cases of wrong DNS configuration, pure-ftpd
always must show the naked IP address even if DontResolv=no is set.

Workaround by myself: DNS resolution disabled, i.e.

echo yes >/etc/pure-ftpd/conf/DontResolve

To the Debian package maintainers: I recommend to set this behaviour as the
package default.

-- System Information:
Debian Release: 7.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pure-ftpd depends on:
ii  libc6                             2.13-38
ii  libcap2                           1:2.22-1.2
ii  libpam0g                          1.1.3-7.1
ii  libssl1.0.0                       1.0.1e-2
ii  lsb-base                          4.1+Debian8+deb7u1
ii  openbsd-inetd [inet-superserver]  0.20091229-2
ii  pure-ftpd-common                  1.0.36-1.1

pure-ftpd recommends no packages.

pure-ftpd suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to