🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #11800

chfn bug

#11800
From: Mitch Wright - X47469
Date: Thu, 30 Mar 1989 19:23
26 lines
1858 bytes
I sent out a message to sun-spots about a bug in chfn that is in SunOS4.0[.1].

I would like to say a bit more about it....

to disable the bug you must not allow users to execute chfn.  This in turn
affects chsh and passwd.  Even if you remove chfn, someone can "ln -s" to
it (ln -s /usr/bin/chsh ~/chfn) and then use chfn normally, or abnormally.

The bug deals with overflowing the getpwent.  I have automated the process
by writing a script that executes chfn and creates a user with an entry
similar to this: aaaaaaaa::0:0:::

I have acomplished the same thing on a Sun386i (as if I expected something
different).  If there are any questions, I'll be more than happy to try
and help.  If you want a copy of the shell script that will prove (beyond
doubt) that this actually works,  have root on your system mail me a
message requesting the script and I will send it back to root.  Please
specify a mail path relative to a well know system (ie. titan.rice.edu,
ucbvax.berkeley.edu, uunet.uu.net).  Please note that there will be a
disclaimer with the shell script stating that I am not responsible for any
damage to your system from running my shell script.  I am only providing
this script to help you insure that your system does/does not have the
problem.  I have yet to see a 4.0 system that doesn't.

			-=>gretzky<=-
..mitch
Technical Details
Message-ID: <8903170238.AA11434@unison.larc.nasa.gov>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: gretzky@unison.larc.nasa.gov (Mitch Wright - X47469)
Newsgroups: comp.sys.sun
Subject: chfn bug
Keywords: Networks
Message-ID: <8903170238.AA11434@unison.larc.nasa.gov>
Date: 30 Mar 89 19:23:36 GMT
Sender: usenet@rice.edu
Organization: Sun-Spots
Lines: 26
Approved: Sun-Spots@rice.edu
Original-Date: Thu, 16 Mar 89 21:38:08 EST
X-Sun-Spots-Digest: Volume 7, Issue 216, message 4 of 13