Just yesterday , using as low as 4 line of php code I was able to do everything on a shared server (I used fopen , file , fwrite and implode) in the /home/ directories .
I was able to browse directories , reading all readable files ,
reading .htaccess files , reading php and cgi file , writing
writeable files (!) , copying files FROM /home/userb
TO /home/myaccount , retriving mysql db and password and much other.
I was able to do all that on my shared account
hosted with a great web hosting company (one of the top 20 usa hosting company), and I was able to do it on my dedicated server with cpanel installed too .
And consider that I am a linux newsbie (!) , what could be do
a linux guru with an account on a shared server running Cpanel ????
If you get a look at the php filesystem functions
http://www.php.net/manual/en/ref.filesystem.php
you can understand that with php is very easy to make
damages and to retrieve data outside the /home/user dir with
2/3 lines of php code , it's easy like read a comics !
Providing php is dangerous such as providing shell !
I was able to browse directories , reading all readable files ,
reading .htaccess files , reading php and cgi file , writing
writeable files (!) , copying files FROM /home/userb
TO /home/myaccount , retriving mysql db and password and much other.
I was able to do all that on my shared account
hosted with a great web hosting company (one of the top 20 usa hosting company), and I was able to do it on my dedicated server with cpanel installed too .
And consider that I am a linux newsbie (!) , what could be do
a linux guru with an account on a shared server running Cpanel ????
If you get a look at the php filesystem functions
http://www.php.net/manual/en/ref.filesystem.php
you can understand that with php is very easy to make
damages and to retrieve data outside the /home/user dir with
2/3 lines of php code , it's easy like read a comics !
Providing php is dangerous such as providing shell !