Is it possible that a user can hack a server running apacheApache httpd
from athe website it hosts? Let's say I have a PhpPHP web application running under Apache with explicit user www-data
in the virtual host configuration. Even ifIf the user hacks the website, he haswould only have access to modify the phpPHP code then write some codes to access system files
which can only be accessed with root user
and user files
which can, since he only be accessed with myUser user
. Canhas the hacker take controlprivileges of the operating systemwww-data
? user.
Note: I asked that question on Serverfault but someone suggest I ask in here. Could the attacker leverage this limited access to reach user or system files, effectively taking control of the operating system?