home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!smurf.sub.org!easix!bc3!ktf
- From: ktf@bc3.GUN.de (Klaus ter Fehn)
- Subject: Re: Breaking into Unix via modem
- Organization: private
- Date: Fri, 25 Dec 1992 13:12:01 GMT
- Message-ID: <BztGo2.7Kn@bc3.GUN.de>
- References: <1992Dec23.215257.28585@candle.uucp>
- Lines: 42
-
- In article <1992Dec23.215257.28585@candle.uucp> root@candle.uucp (Bruce Momjian) writes:
-
-
- >Someone just told me that there is a way to break into a Unix box by
- >dialing the modem, but not getting a login prompt, and somehow getting
- >to Unix.
-
- >The guy who told me this was somewhat confused, so I don't take much
- >stock in it, yet I am asking the Net in case he has heard of a security
- >issue that I have not.
-
- Well, if the system manager has not set up the modem line correctly, it
- is possible, that a login-shell survives a hang-up of the modem. The next
- caller will then get this login-shell instead of the normal getty-login.
-
- To avoid this, look at the following things:
-
- The /etc/gettydefs-entry for the modem-line should always contain the
- HUPCL (Hang up on close) string, to make sure, that the modem hangs up,
- when a caller leaves his login-shell.
-
- The programs running on the modem-line should NEVER ignore the signal #1
- (SIGHUP / Hang up). Then all the processes bound to the modem-line will
- abort when a hang-up occurres.
-
- The cable host<->modem MUST carry the CD (Carrier Detect) and DTR (Data
- Terminal Ready) signals.
-
- The modem must be connected to a device which device-driver reacts on
- signals (CD/DTR) with a SIGHUP.
-
- You can test that by looking at the Process-ID of the modem-getty,
- switching your modem off an back on. The modem-getty should now have
- a new process-ID, because the first getty died when switching your modem
- off.
-
- Greetings...
- --
- Klaus ter Fehn <ktf@bc3.GUN.de>
- Neanderstr. 4 {mcshh,smurf,unido}!easix!bc3!ktf
- 4000 Duesseldorf 1
- FRG / Germany Tel.: +49-211-676331
-