1999-09-10 18:07:34 -04:00
|
|
|
Security issues:
|
|
|
|
|
2000-02-03 13:45:38 -05:00
|
|
|
The author recommends that a seperate user 'popa3d' is created. However,
|
|
|
|
for ease of installation this port uses 'nobody'. Don't use 'nobody' for
|
|
|
|
anything else, or recompile popa3d to use 'popa3d' and create that user
|
|
|
|
yourself.
|
1999-09-10 18:07:34 -04:00
|
|
|
|
|
|
|
The onetime use of strcmp seems correct. One parameter is 'pw->passwd',
|
|
|
|
obtained from a call to getpwnam. The other parameter is 'pass', which is
|
2000-02-03 13:45:38 -05:00
|
|
|
derived from an input-buffer of which popa3d takes care not to overrun.
|
1999-09-10 18:07:34 -04:00
|
|
|
|
|
|
|
sprintf is used once. Its parameters are 'MAIL_SPOOL_PATH', which is a
|
|
|
|
compile-time constant and 'mailbox', which is the username, derived from
|
|
|
|
the password-file.
|
2000-02-09 03:37:32 -05:00
|
|
|
Feedback from author: "buffer is malloc()'ed one line earlier to the correct
|
|
|
|
size, regardless of where the input comes from. The only required property of
|
|
|
|
those two strings, is that they're of a sane length not to cause an integer
|
|
|
|
overflow in the addition".
|
1999-09-10 18:07:34 -04:00
|
|
|
|
|
|
|
One more time: POP3 is inherently insecure. Passwords are sent in cleartext,
|
2000-02-09 03:37:32 -05:00
|
|
|
everytime a user checks his mailbox.
|