Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2002 15:09:02 +0400 (MSD)
From:      "Artem 'Zazoobr' Ignatjev" <timon@netherworld.ru>
To:        freebsd-bugs@FreeBSD.org, FreeBSD-gnats-submit@FreeBSD.org
Subject:   Re: misc/39951: Sendmail 8.12.3 and `msgs' alias
Message-ID:  <200207111109.g6BB92wN006080@netherworld.ru>

next in thread | raw e-mail | index | archive | help
 On Fri, Jun 28, 2002 at 05:20:01AM -0700, FreeBSD-gnats-submit@FreeBSD.org wrote:
 > Thank you very much for your problem report.
 > It has the internal identification `misc/39951'.
 > The individual assigned to look at your
 > report is: freebsd-bugs. 
 > 
 > >Category:       misc
 > >Responsible:    freebsd-bugs
 > >Synopsis:       Sendmail 8.12.3 and `msgs' alias
 > >Arrival-Date:   Fri Jun 28 05:20:01 PDT 2002
 More digging lead me to following hack (msgs will now be suid, so if it
 can be exploited, that'll be one more hole):
 I've also noted, that first time BINMODE was set incorrect ( 4755 instead of 4555)
 
 ---- Begin patch ----
 diff -U 3 -r usr.bin/msgs/Makefile usr.bin/msgs/Makefile
 --- usr.bin/msgs/Makefile	Wed Jul 10 20:44:12 2002
 +++ usr.bin/msgs/Makefile	Wed Jul 10 20:41:08 2002
 @@ -4,5 +4,6 @@
  PROG=	msgs
  DPADD=	${LIBTERMCAP}
  LDADD=	-ltermcap
 +BINMODE= 4555
  
  .include <bsd.prog.mk>
 diff -U 3 -r usr.bin/msgs/msgs.c usr.bin/msgs/msgs.c
 --- usr.bin/msgs/msgs.c	Wed Jul 10 20:40:12 2002
 +++ usr.bin/msgs/msgs.c	Wed Jul 10 20:41:21 2002
 @@ -179,7 +179,7 @@
  	setlocale(LC_ALL, "");
  
  	time(&t);
 -	setuid(uid = getuid());
 +	setuid(uid = geteuid());
  	ruptible = (signal(SIGINT, SIG_IGN) == SIG_DFL);
  	if (ruptible)
  		signal(SIGINT, SIG_DFL);
 ----  End patch  ----
 
 Directions: apply this standing in source tree root (shake well before
 using :-) )

			Sinceherely yours, Artem 'Zazoobr' Ignatjev.
--- Unix is like a wigwam: No windows, no gates and an apache inside.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207111109.g6BB92wN006080>