You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Deployed sites on a single server do not have the option to run on a different user account (all run on vito), therefore, one compromised site means that all sites are potentially compromised. Sites should be able to be isolated, and therefore run under separate users accounts.
To Reproduce
Steps to reproduce the behavior:
Create a PHP application site (site 1)
Create a file called "secrets.php", and store a secret in a variable
Create a PHP application site (site 2)
Upload a remote file editor to site 2
Browse to secrets.php from site 1 via the deployed script on site 2
See the secret values from site 1 from site 2
Expected behavior
Unable to access files from other sites
Screenshots
Additional context
N/A
The text was updated successfully, but these errors were encountered:
RichardAnderson
changed the title
Users are not Isolated - sites have access to one another
Sites are not Isolated - sites have access to one another
Jan 12, 2025
; Optional but recommended security settings
php_admin_value[display_errors] = off
php_admin_value[log_errors] = on
php_admin_value[error_log] = /home/{user}/logs/php_errors.log
Update the nginx configuration file:
fastcgi_pass unix:/run/php/php-fpm-{user}.sock;
The site is then isolated, so even if one site is compromised, it does not effect any other sites. The Vito user still has full access. And deploy scripts should run as the isolated user.
Example below, the script above can no longer see any folders user it's /home/user directory.
Describe the bug
Deployed sites on a single server do not have the option to run on a different user account (all run on vito), therefore, one compromised site means that all sites are potentially compromised. Sites should be able to be isolated, and therefore run under separate users accounts.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Unable to access files from other sites
Screenshots
Additional context
N/A
The text was updated successfully, but these errors were encountered: