Is it possible that a user can hack a server running Apache httpd
from the website it hosts? Let's say I have a PHP web application running under Apache with explicit user www-data
in the virtual host configuration. If the user hacks the website, he would only have access to modify the PHP code, since he only has the privileges of the www-data
user.
Could the attacker leverage this limited access to reach user or system files, effectively taking control of the operating system?
www-data
does not restrict file access? Because if I don'tchown www-data folder
, PHP returns anaccess denied error
.