chpasswd stack overflow
Peter Vrabec <[email protected]> Tue, 7 Nov 2006 14:55:06 +0100
| Newsgroups | gmane.linux.pld.shadow.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Tomasz,
the strcat is overflowing salt in chpasswd.c and chgpasswd.c:
....
if (!eflg) {
if (md5flg) {
char salt[12] = "$1$";
strcat (salt, crypt_make_salt ());
cp = pw_encrypt (newpwd, salt);
} else
cp = pw_encrypt (newpwd,
crypt_make_salt ());
}
.....
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=213052