Hi all,
It can happen that a web site is compromised, then the apache user (www) is exploited by the hacker to perform other tasks on the server.
In order to slow the blackhat down, I would like to prevent www to access large portion of the filesystem. I don't want to setup a Jail, nor a chroot.
I'm running everything on ZFS, but it looks like ACLs are not available yet, on FreeBSD's ZFS…
I've ran this command on my server:
just to find out what files/directories www can list. I've got a 1631555 lines long output to read now. Of course it does not mean that www can actually read the files, but it's still information.
Any idea?
It can happen that a web site is compromised, then the apache user (www) is exploited by the hacker to perform other tasks on the server.
In order to slow the blackhat down, I would like to prevent www to access large portion of the filesystem. I don't want to setup a Jail, nor a chroot.
I'm running everything on ZFS, but it looks like ACLs are not available yet, on FreeBSD's ZFS…
I've ran this command on my server:
Code:
sudo -u www find / -ls
just to find out what files/directories www can list. I've got a 1631555 lines long output to read now. Of course it does not mean that www can actually read the files, but it's still information.
Any idea?