Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Nov 1999 22:01:15 +0100 (MET)
From:      Juergen Lock <nox@jelal.kn-bremen.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/14826: security/fwtk smapd calls sendmail with wrong flags
Message-ID:  <199911112101.WAA08087@saturn.kn-bremen.de>

next in thread | raw e-mail | index | archive | help

>Number:         14826
>Category:       ports
>Synopsis:       security/fwtk smapd calls sendmail with wrong flags
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 11 13:20:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Juergen Lock
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
me?  organized?
>Environment:

	3.3-STABLE i386, fwtk-2.1

>Description:

	fwtk's smapd calls sendmail without the -i flag when passing
	it mail from smap, resulting in truncated mail when a line
	starts with a `.'.

	(More patches for fwtk can be found at
	http://www.fwtk.org/fwtk/patches/patches.html,
	this is just the one appearing to be most critical...)

>How-To-Repeat:

	Put a line with a '.' in a mail sent to a host running
	smap/smapd.

>Fix:

--- /dev/null	Thu Nov 11 21:48:19 1999
+++ patches/patch-ba	Thu Nov 11 20:47:59 1999
@@ -0,0 +1,19 @@
+Index: smapd/smapd.c
+@@ -493,7 +493,7 @@
+ 
+ 		i = 0;
+ 		faka[i++] = smailprog;
+-		faka[i++] = "-f";
++		faka[i++] = "-if";
+ 		faka[i++] = fromaddr;
+ 
+ 		while(nrec != (struct towho *)0) {
+@@ -749,7 +749,7 @@
+ 
+ 	i = 0;
+ 	faka[i++] = smailprog;
+-	faka[i++] = "-f";
++	faka[i++] = "-if";
+ 	faka[i++] = "root";
+ 	faka[i++] = admin;
+ 	faka[i] = (char *)0;

>Release-Note:
>Audit-Trail:
>Unformatted:


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




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