Bugzilla – Bug 1225574
AUDIT-FIND: apache2-mod_mono: configuration defaults to predictable socket path in /tmp
Last modified: 2024-06-20 14:07:19 UTC
apache2-mod_mono, by default, creates a socket `/tmp/mod_mono_server_global`, allowing unprivileged users to break the module by creating an identically named file in that location. However a) this behavior is documented b) it is mitigated by a systemd hardening in the apache2 package: > [Unit] > Description=The Apache Webserver > After=network.target nss-lookup.target time-sync.target remote-fs.target > Before=getty@tty1.service plymouth-quit.service xdm.service > PartOf=apache2.target > [Service] > Type=notify > PrivateTmp=true
Not following up on this, as it is mitigated by our apache2 systemd config.
We decided to follow up on it after all.
Side note: When the problem is mitigated by systemd PrivateTmp, the socket and thus the module become quite useless, which is another reason to change the default.