Full Disclosure mailing list archives
Re: Redhat/CentOS root through network-scripts
From: Kurt H Maier <khm () sciops net>
Date: Tue, 16 Apr 2019 13:20:30 -0700
On Mon, Apr 15, 2019 at 09:36:39AM +0000, Victor Angelier CCX wrote:
Hi there, Just found an issue in Redhat/CentOS which according to RedHat security team is not an issue. I don't know, sounds weird to me. If, for whatever reason, a user is able to write an ifcf-<whatever> script to /etc/sysconfig/network-scripts or it can adjust an existing one, then your system in pwned. Network scripts, ifcg-eth0 for example are used for network connections. The look exactly like .INI files. However, they are ~sourced~ on Linux by Network Manager (dispatcher.d).
Yes, if a root-user process executes a script as root then the resulting commands are indeed run as root. Those are not INI files, they are shell scripts that set environment variables. If you do not want your users to have root access on your computer, do not let them edit files that are run as root. Your example command configures the environment variable NAME to have the value 'Network' when the shell runs /bin/id. This is why NetowrkManager uses interprocess communications to send user-driven configuration directives to root-permissioned daemons. There are other linux distributions that have different methods for configuring networks, but there is nothing wrong with shell commands, even when the root user runs them. Just don't let users edit files in /etc -- which is why the permissions on these files and directories are set the way they are. khm _______________________________________________ Sent through the Full Disclosure mailing list https://nmap.org/mailman/listinfo/fulldisclosure Web Archives & RSS: http://seclists.org/fulldisclosure/
Current thread:
- Redhat/CentOS root through network-scripts Victor Angelier CCX (Apr 16)
- Re: Redhat/CentOS root through network-scripts Kurt H Maier (Apr 18)
- Re: Redhat/CentOS root through network-scripts Victor Angelier CCX (Apr 18)
- Re: Redhat/CentOS root through network-scripts Kurt H Maier (Apr 18)