Home page logo
/

bugtraq logo Bugtraq mailing list archives

Security hole in mgetty+sendfax
From: gert () GREENIE MUC DE (Gert Doering)
Date: Thu, 24 Jul 1997 22:23:09 +0200


-----BEGIN PGP SIGNED MESSAGE-----

Hi,

a security hole has been found in the auxiliary fax scripts "faxq" and
"faxrunq" in the mgetty+sendfax package.  It has been in there since
the first day those scripts were written.

Due to improper quoting in these shell scripts, it's possible to execute
code with a foreign user id, and get root access to the machine. The
exploit is actually quite trivial, so it's not necessary to include that
here.

Appended below, you'll find replacement scripts that fix the problems.  The
scripts can be used "as is" with mgetty+sendfax 1.0.* and 1.1.*, and I'm
fairly sure that they will work with all older versions as well.

This weekend, I will release new versions of mgetty+sendfax (1.1.8 for
the development cycle, 1.0.1 as "stable release"), which will have the
changes worked in.

Credits for finding the problem go to Herbert Thielen
(thielen () lpr e-technik tu-muenchen de). Thanks again.

gert
- ----------
begin 644 faxq+faxrunq.tar.gz
M'XL( (RYUS,  ^U::UL;.;*>K_:OJ AGL!.,+Y#DQ,290QC(,$,@"^3LSC-D
MH7'+= () _M;M.MAGB3/;]]JTI2WVP89F8W^\5Z$FRW2B6I5)>W2CUT/EU_\Q]N
MG7;[^>8F? , &YTN?P(\,Y\ SY\_W\"_&\^?O>AV-S:> ^" %^UOH/V?7ABU
M)%9.!/#-2$;J7KID,/T:Z_G*;>51Z](+6O&XNE)= () 2%J TRC<!0Y$^ GOG<E
M0?C3:P%A!&+B>/ZU6(-X'-["K^%E#+>.I[Q () !%X :BPA3-0T47"=R$0R () Y =
MG9,>_&]]I4',U[V () LKF^ 2]?M-HO6MU-V FGL\@;C174=QK0>?ER$][B2<#W
MH8R0+;+8V_[;^<G[HZ.#?BN)HU8\#4._A;RRCO.C#Z>ESA:N8Q02 UZ$'(S#
M=%]J["BX]7P?G,% 3A7(>.!,90SU2R<>]T P=5/2-I. () !\SY&4F).AK(D#[[
M3"8T?R< Y_9*<_9B"$(%L0H#V0Q]MWD9.5[0=*7C0MU0K#%)B&/6U]>)X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AP_B\7H'50F_>$F477AR@@USV- () 7]*BW1-\@$[9=+B&96 T\T
M/* () LP@86;1OU8HR () 793!!_?K678A45"T!^&"H=&WW)/%H*"XQM02,EN%.EWD
MNES6TD&5CJ)1&)!#"ID () \Y6W7%Y/J4<2<*F.N<L;C$P>WS SDQ2'1I).S;75
MS8PQRL^4>VVS$$7C"JIE%FNBYI9:W^H]LA6U<J'1ODQ2JO?QBE68#+3J<94#
M7>MDND:3<&64TE(NFX^=Z72& S3KDL#3ETBJ['Y?W]D]&&,,!GIEXTZ2__9K
M"\NV;,NV;,NV;,NV;,NV;,NV;,NV;,NV;,NV;,NV;,NV;,NV;,NV;,NV;,M6
+:O\"=]F"_0!0  "V

end

- --
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert () greenie muc de
fax: +49-89-3545980                         gert.doering () physik tu-muenchen de

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2i

iQCVAwUBM9e5qKkuBuNlUUl1AQG2DwP+KAh9yxiyFXWfXCBA42Xp3iMmzDlvjlic
b27rF9mpjdWA9mzcsI0xCXVnwFyeh5aCDxsUB10typR0oGjk4bzj3ll0k5B9ZXdq
QBgE2mQKkdOod8Ew0gQ89VwlMcJAANS+pp0/68ABRDQp6+1K29HysaCMJwmgV0GH
3+cw2ywsOQ8=
=NOr0
-----END PGP SIGNATURE-----



  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]