Package: postfwd
Version: 1.35-1~bpo70+1
Severity: important

Dear Maintainer,

  The postfwd init script creates a world writable pid file,
and does not use start-stop-daemon -n or -u options, so it can
be used to kill any process (including root-owned processes).

  Using the backports postfwd package (postfwd1 alternative):

# /etc/init.d/postfwd start
Starting postfwd: postfwd.
# ls -l /run/postfwd.pid 
-rw-rw-rw- 1 postfw postfw 5 Jul 22 16:27 /run/postfwd.pid

  I now log in as a normal user, change that file's contents to
the pid of a root-owned process (in my test, it was denyhosts),
and then as root I ran "/etc/init.d/postfwd stop" - it killed
my target process (denyhosts) instead.

  I have the default umask, from that same shell:

# umask
0022


-- System Information:
Debian Release: 7.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages postfwd depends on:
ii  adduser             3.113+nmu3
ii  libnet-dns-perl     0.66-2+b2
ii  libnet-server-perl  2.006-1
ii  perl                5.14.2-21

postfwd recommends no packages.

postfwd suggests no packages.

-- Configuration Files:
/etc/default/postfwd changed:
STARTUP=1
CONF=/etc/postfix/postfwd.cf
INET=127.0.0.1
PORT=10040
RUNAS="postfw"
ARGS="--summary=600 --cache=600 --cache-rdomain-only --cache-no-size"


-- 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