home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / hacking / general / cert0001.txt < prev    next >
Encoding:
Text File  |  2003-06-11  |  4.5 KB  |  115 lines

  1.  
  2. -----BEGIN PGP SIGNED MESSAGE-----
  3.  
  4.  
  5. CA-88:01
  6.                                  CERT Advisory
  7.                      December 1988    
  8.                               ftpd vulnerability
  9. - -----------------------------------------------------------------------------
  10.  
  11.    ** The sendmail portion of this advisory is superseded by CA-95:05. **
  12.  
  13. There have been several problems or attacks which have occurred in the
  14. past few weeks.  In order to help secure your systems we have gathered
  15. the following suggestions:
  16.  
  17.         1) Check that you are using version 5.59 of sendmail with the
  18.        debug option DISABLED.  To verify the version try the following
  19.        commands.  Use the telnet program to connect to your mail server.
  20.        Telnet to your hostname or localhost with 25 following the host.
  21.            The sendmail program will print a banner which will have the
  22.            version number in it.  You need to be running version 5.59.
  23.            Version 5.61 will be released on Monday 12/12/1988.  Any
  24.            version less than 5.59 is a security problem.
  25.  
  26.            The following is a sample of the telnet command.
  27.  
  28. % telnet localhost 25
  29. Trying...
  30. Connected to localhost.SEI.CMU.EDU.
  31. 220 ed.sei.cmu.edu Sendmail 5.59 ready at Wed, 7 Dec 88 15:45:55 EST
  32. Quit
  33. 221 ed.sei.cmu.edu closing connection
  34. Connection closed by foreign host.
  35. %
  36.  
  37.         2) Verify with your systems support staff that the ftpd program
  38.            patches have been installed.  Removing anonymous ftp is now
  39.            known to NOT plug all security holes.  If you are not sure,
  40.            ftp to ucbarpa.berkeley.edu, login as anonymous password ftp
  41.            and get ftpd.shar.  This file contains the sources to the
  42.            latest BSD release of the ftpd program.
  43.  
  44.         3) Check your /etc/passwd file for bogus entries.  Look for
  45.            unauthorized accounts with the uid field set to zero (only
  46.        the root account should have uid=0).  Remove any unauthorized
  47.            entries.  The following is an example of what you might find.
  48.  
  49.                 install::0:1::/:
  50.  
  51.          To check your /etc/passwd files for spurious accounts with uid 0,
  52.            you can use the following awk program:
  53.  
  54. % awk -F: '$3 == 0 {print $0}' /etc/passwd
  55.  
  56.        If you are running YP on your machine, do:
  57.  
  58. % ypcat passwd | awk [...as above]
  59.  
  60.  
  61.  
  62.         4) Look for modified /bin/login and /usr/ucb/telnet files.
  63.            Several sites have found these programs with new "backdoors"
  64.            added.  Use the strings program to search /bin/login for the
  65.            strings OURPW, knaobj, and knaboj.  If in doubt, reload the
  66.            /bin/login and /usr/ucb/telnet executables from your
  67.            distribution tape.
  68.  
  69. % strings  /bin/login | egrep '(OURPW|knaboj|knaobj)'
  70.  
  71.  
  72.         5) Educate your users to create hard to guess passwords.  Account
  73.            codes, first or last names, and common words are not very
  74.            secure passwords.  A few examples of common words are words
  75.            that refer to your town, location, or company and words that
  76.            are found in /usr/dict/words.  Be especially careful of accounts
  77.            where the password is the account name (easy to check, easy to
  78.            guess.
  79.  
  80.         6) In general, before you allow a user access to the Internet,
  81.        you must be sure you know who they are.  In other words, all
  82.        users should be forced through a login/password sequence
  83.        (no unpassworded accounts and preferably someplace which logs
  84.        connections) before you let them get outside your local network.
  85.        Be especially careful with TCP/IP terminal servers.
  86.  
  87.         7) check the last logs for normal logins as accounts which normally
  88.            run utility programs (sync, who, etc), watch for unreasonable
  89.            times..  watch for ftp's with funny logins (who, etc).
  90. - ---------------------------------------------------------------------------
  91.  
  92. Computer Emergency Response Team (CERT)
  93. Software Engineering Institute
  94. Carnegie Mellon University
  95. Pittsburgh, PA 15213-3890
  96.  
  97. Internet: cert@cert.org
  98. Telephone: 412-268-7090 24-hour hotline: CERT personnel answer
  99.            7:30a.m.-6:00p.m. EST, on call for
  100.        emergencies other hours.
  101.  
  102. Past advisories and other information are available for anonymous ftp
  103. from cert.org (192.88.209.5).
  104.  
  105. -----BEGIN PGP SIGNATURE-----
  106. Version: 2.6.2
  107.  
  108. iQCVAwUBMiXuH3VP+x0t4w7BAQGD4AP/a2niPn1hVQ7yFojZZb5hsz7irvwEZEkF
  109. 8EMjmbCJm+emqluYBTKgT8ebqBCfn99aD8ccNdmOx3GU4G4k8xJDqbdAM76K2G7G
  110. uEPbDPYF6AxEdQsGfYqYJ+rjc+5V7yLuo2pkGwtUvI9dKAplkp807EzLGVnRQRjp
  111. dpTZeFpP+Wk=
  112. =5q5N
  113. -----END PGP SIGNATURE-----
  114.  
  115.