Password Shadowing |
|
Password shadowing is a security system where the encrypted password field of /etc/passwd is replaced with a special token and the encrypted password is stored in a separate file (or files) which is not readable by normal system users. The getpwent() Unix Password Shadowing VulnerabilityOn older Unix systems, password shadowing was often defeated by using a program that made successive calls to getpwent() to obtain the entire password file. Modern Unix systems are not susceptible to this attack. Example:
#include <pwd.h>
main()
{
struct passwd *p;
while(p=getpwent())
printf("%s:%s:%d:%d:%s:%s:%s\n", p->pw_name, p->pw_passwd,
p->pw_uid, p->pw_gid, p->pw_gecos, p->pw_dir, p->pw_shell);
}
Unix Password Shadowing on Various Unix ImplementationsSome Unix password shadowing schemes store the shadowed passwords in a single file, while others utilize a hierarchy of multiple files. Token is the text placed in the second field the /etc/passwd file.
|
Discuss Password Shadowing in the forums.

