Bug 51238 - Directory-Notifier runs as root
Directory-Notifier runs as root
Status: NEW
Product: UCS
Classification: Unclassified
Component: Notifier (univention-directory-notifier)
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-05-07 08:40 CEST by Philipp Hahn
Modified: 2020-05-07 08:54 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Security Issue
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: 0.0 (CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:N)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2020-05-07 08:40:43 CEST
Running network facing services needlessly as user "root" is a CWE-272 violation of the "Principle of least privilege".

# ps u $(pgrep -f /usr/sbin/univention-directory-notifier)
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root      6457  0.0  0.5 144108  5984 ?        S    Mai05   0:00 /usr/sbin/univention-directory-notifier -d 1 -v 3 -F

Nevertheless the service should not run as user "root" but use a dedicated local user account.