Solved

Identifying user password

Posted on 2001-07-11
5
209 Views
Last Modified: 2010-04-21
If a user telnets into the Unix system, successfully logs on and then walks away from the PC, is there any way another person could walk up and quickly learn the first user's password? What about pg_passwd?
0
Comment
Question by:rsorrent
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:interiot
Comment Utility
From the crypt(3) man page:

crypt is the password encryption function. It is based on a one way hashing encryption algorithm...


So, ideally, no.  There are still many other security problems though.  For instance, if that user has placed that account in some of his other accounts' .rhosts files, and someone visits a still-logged-in-terminal, the guest will be able to potentially all of the user's accounts.  Among other things...
0
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
Comment Utility
As interiot pointed out, there are other more significant risks to leaving a login session unattended. One thing that he didn't mention is the possibility of a trojan being placed in the user's home directory that could be used to capture a password if the user then accesses some other system remotely. And of couse the malicious passerby might be able to see and capture the encrypted passwords on the system for that and other accounts. With those a determined attacker can the use crack to recover the plaintext password. Any encrypted password can cracked, given enough CPU time, and since most users won't choose really good passwords unless forced to one can usually recover several passwords on the average system in short order.

Now if you are really concerned about password leakage you'll want to disable telnet, rlogin, and ftp entirely and only allow the use of ssh, scp, and sftp. Anyone on the network that is within the collision domain of a server can use a network sniffer to capture all of the plaintext usernames and passwords they could ever want.
0
 

Author Comment

by:rsorrent
Comment Utility
What if I am the passer-by and wish to quickly capture the user's password? Is there no simple method?
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
No there is no "simple method" Unix systems don't keep plaintext copies of a user's password around. You either have to attempt a recovery of the plaintext equivalent of the encrypted password or capture the plaintext password " on the fly".
0
 

Author Comment

by:rsorrent
Comment Utility
Thanks for the education
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now