* Security hole in smail - be careful!
@ 1994-10-06 14:57 Martin Bartosch
1994-10-07 18:29 ` Christopher Oliver
0 siblings, 1 reply; 2+ messages in thread
From: Martin Bartosch @ 1994-10-06 14:57 UTC (permalink / raw)
Hi,
last night I discovered a potential danger to all sites that run smail.
A quick check on some other sites (thanks to the folks on #linux)
revealed that most systems are affected by this.
Essentially, the smail bug will allow ordinary users to create files
anywhere they want to:
Assume /usr/lib/sendmail is a softlink to /usr/bin/smail.
$ /usr/lib/sendmail -d -D/etc/i_am_broken noone@universe
$ ls -l /etc/i_am*
Be aware of this. Some sites even come up with permissions rw-rw-rw-!
This behaviour is not affected by -smtp-debug.
Just my $0.02.
Martin.
--
Martin Bartosch Institut fuer martin2@ida.ing.tu-bs.de
38102 Braunschweig Datenverarbeitungsanlagen martin@koma.escape.de
+49 531 332214 TU Braunschweig
--
Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu
Be sure to include Keywords: and a short description of your software.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Security hole in smail - be careful!
1994-10-06 14:57 Security hole in smail - be careful! Martin Bartosch
@ 1994-10-07 18:29 ` Christopher Oliver
0 siblings, 0 replies; 2+ messages in thread
From: Christopher Oliver @ 1994-10-07 18:29 UTC (permalink / raw)
-----BEGIN PGP SIGNED MESSAGE-----
Martin Bartosch (martin2@sueton.ida.ing.tu-bs.de) wrote:
> Hi,
> last night I discovered a potential danger to all sites that run smail.
> A quick check on some other sites (thanks to the folks on #linux)
> revealed that most systems are affected by this.
> Essentially, the smail bug will allow ordinary users to create files
> anywhere they want to:
I confirmed this bug both under linux and Solaris 2.3. This bug allows
a user to append data to an arbitrary file.
I have written a source patch to remove this bug. I have sent the
diff to the the original authors as well. I have removed the method of
exploition which was included in the original post, but I suggested that
the author should write CERT. The patch follows:
*** main.c.orig Fri Oct 7 04:31:28 1994
- --- main.c Fri Oct 7 04:05:32 1994
***************
*** 333,338 ****
- --- 333,339 ----
}
if (config_file != save_config_file || arg_second_config_file ||
+ arg_debug_file ||
arg_director_file || arg_router_file || arg_transport_file ||
arg_qualify_file || arg_retry_file || arg_smail_lib_dir ||
arg_alias_file || operation_mode == REBUILD_ALIASES)
To obtain my key, either finger oliver@cs.wmich.edu or use a
key server such as pgp.ai.mit.edu.
-----BEGIN PGP SIGNATURE-----
Version: 2.6.1
iQCVAwUBLpUNoMkpYZNdTgoxAQGIKAP7Bot5FsB0D4JP33gYbyEWEriiICy+Qadf
mU7XjGjesyod0pUdczBPuAVi8H0rKxc7jKw1kxltYiKd3+45cArKDEPqliQLcEQR
My7TSX+c1idsXfIPMb3q8fZuYNRJESrfb2txblfWyZ2g6JBzp6Twtcb3nGrPmkHZ
FR/zMcgpIIc=
=3XW1
-----END PGP SIGNATURE-----
--
Christopher Oliver Computer Science Office
Concurrent Computations Research Center __o Friedmann Hall
Internet: oliver@cs.wmich.edu _`\<,_ Western Michigan University
(_)/ (_) Kalamazoo, Michigan, 49008-5021
--
Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu
Be sure to include Keywords: and a short description of your software.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-10-07 18:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-06 14:57 Security hole in smail - be careful! Martin Bartosch
1994-10-07 18:29 ` Christopher Oliver
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox