home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / hackers / 1733 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  1.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!destroyer!cs.ubc.ca!dixie.cs.ubc.ca!not-for-mail
  2. From: hassan@cs.ubc.ca (Moustafa Hassan)
  3. Newsgroups: alt.hackers
  4. Subject: cracking login?
  5. Date: 22 Nov 1992 12:45:26 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Lines: 28
  8. Approved: yes
  9. Message-ID: <1eorh6INN684@dixie.cs.ubc.ca>
  10. NNTP-Posting-Host: dixie.cs.ubc.ca
  11. Summary: disillusion me
  12.  
  13. I've thought of a scheme for logging in as any user in a given file system.
  14. The only problem is that it's too easy.  I must be under some illusion.
  15. I'd appreciate it if someone pointed out the flaw in my algorithm:
  16.  
  17. 1.  Obtain the code for login.c.  I've done this.  I'm having some trouble
  18.     compiling it, because some constants are defined differently on my 
  19.     system.  I should be able to fix this within a month's work.
  20. 2.  Change the call to getpass to a function that reads in an arbitrary number
  21.     of characters up to the newline.  This is trivial.
  22. 3.  Remove the encryption step where the password is encrypted.
  23. 4.  Recompile.
  24. 5.  When executing login, give it (the publically available) user id and 
  25.     encrypted password of any user on the system, and you're in.
  26.  
  27. As I said, this scheme is too easy, and I refuse to believe that unix systems
  28. lack security to such a degree.  Would someone take the time to disillusion
  29. me?
  30.  
  31. ObHackInProgress:
  32. Writing a dumb terminal unix-like shell for my Mac Plus in C, and possibly
  33. later in scheme.
  34.  
  35. Cheers,
  36. ********************************************************************
  37. * Moustafa Hassan          |                                       *
  38. * hassan@cs.ubc.ca         |  Political correctness is a euphemism *  
  39. * TEL/FAX: (604) 535-2826  |  for intellectual stagnation.         *
  40. ********************************************************************
  41.