Open defuse opened 10 years ago
There is still a benefit to dropping privileges, even though arbitrary code as mlab_ooni
implies arbitrary code as root
. The process itself has restricted privileges. For example, if there is some vulnerability in ooni-backend
that lets the attacker overwrite an arbitrary file, then the attacker can only use that to overwrite files that mlab_ooni
can overwrite, unless they also can get the process to re-gain its privileges or run a sudo command.
As noted in #26, the
ooni-backend
daemon drops its privileges to themlab_ooni
user. However,mlab_ooni
has full root privileges viasudo
:What is the point of dropping privileges, if an attacker who successfully gains access to the
mlab_ooni
account immediately has root access?This ticket can be closed when:
mlab_ooni
is not given fullsudo
privileges (in this case re-evaluate the security issues in #26). Or,ooni-probe
is made to drop privileges to a different user, one withoutsudo
privileges.