Bug 30104 - join.log on UCC Desktopclient is world-readable
join.log on UCC Desktopclient is world-readable
Status: CLOSED FIXED
Product: Z_Univention Corporate Client (UCC)
Classification: Unclassified
Component: General
unspecified
Other Linux
: P5 normal
: UCC 1.0
Assigned To: Felix Botner
Lukas Walter
: interim-4
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-22 11:04 CET by Tobias Scherer
Modified: 2013-03-26 09:14 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Scherer univentionstaff 2013-01-22 11:04:18 CET
root@micke:~# ls -l /var/log/univention/join.log
-rw-r--r-- 1 root root 19242 Jan 22 10:35 /var/log/univention/join.log

This is potentially bad, because the password of the user, who was used to join the server is logged in this file.

The logfile should only be readable for root. A better solution would be not to log the password at all.
Comment 1 Felix Botner univentionstaff 2013-01-22 13:25:08 CET
Added 

touch /var/log/univention/join.log
chmod 640 /var/log/univention/join.log
chown root:adm /var/log/univention/join.log

to univention-join (and removed set -x from 45univention-join.inst, what caused the password in the join.log).
Comment 2 Lukas Walter univentionstaff 2013-01-24 14:34:48 CET
OK -> join.log is not world readable anymore
OK -> password is not logged anymore

Verified.
Comment 3 Moritz Muehlenhoff univentionstaff 2013-03-26 09:14:05 CET
UCC 1.0 has been released: 
http://forum.univention.de/viewtopic.php?f=26&t=2417
http://forum.univention.de/viewtopic.php?f=54&t=2418

If this error occurs again, please use "Clone This Bug".