Very Very experienced PHP programmer , HELP needed
#16
Secure File Transfer Protocol http://en.wikipedia.org/wiki/SSH_fil...ol#SFTP_client
I had to convert as mine was hacked too
I had to convert as mine was hacked too

You on a linux box, what permissions are the file.
If done correctly apache runs as web or nobody and this user should not be able to edit your files.
changing to https probably won't make a difference.
You can PM me if you like, worked on apache support a while ago, if it's a windows box then you deserve to get hacked lol
If done correctly apache runs as web or nobody and this user should not be able to edit your files.
changing to https probably won't make a difference.
You can PM me if you like, worked on apache support a while ago, if it's a windows box then you deserve to get hacked lol
I cant see how this person has access, its baffling us. Unless theres a backdoor route in.
Son is the coding whizzkid.. so will ask him when he gets in, and see what the go is. Im pretty sure, somehow and somewhere there is some security compromise, within our own code... its like finding a needle in a haystack.
Will report back, cheers mate
#17
If you make sure only root can write to the files it should be sorted.
Yer its Linux. Running Apache.
I cant see how this person has access, its baffling us. Unless theres a backdoor route in.
Son is the coding whizzkid.. so will ask him when he gets in, and see what the go is. Im pretty sure, somehow and somewhere there is some security compromise, within our own code... its like finding a needle in a haystack.
Will report back, cheers mate
Yer its Linux. Running Apache.
I cant see how this person has access, its baffling us. Unless theres a backdoor route in.
Son is the coding whizzkid.. so will ask him when he gets in, and see what the go is. Im pretty sure, somehow and somewhere there is some security compromise, within our own code... its like finding a needle in a haystack.
Will report back, cheers mate
#18
Putty *is* an ssh implementation. IIRC sftp is a separate application from Putty or Unix-based ssh applications.
You might get better answers if you post this in The Lab, where all the geeks hang out. Including me.
You might get better answers if you post this in The Lab, where all the geeks hang out. Including me.
#19
Putty *is* an ssh implementation.
You might get better answers if you post this in The Lab, where all the geeks hang out. Including me.
You might get better answers if you post this in The Lab, where all the geeks hang out. Including me.

Do ya mean file permissions , as in 644 777 etc?
#21
The header.php file is actually set to 644 !
Then each day, its back to 777 ! ( yet after doing initial permission changes, we check and 644 it is )
Go figure...someones being very very norty !
#22
who owns the file? And who does apache run as ?
#26
not sure
Basically when you start apache it forks child process that actually process the requests from the outside world. There is a setting in your httpd.conf file that sets the user to fork the processes as, it's normally nobody.
Nobody should not be able to do anything other then read files. That way if there is a hole in apache the hacker could only be in as nobody and not be able to do much damage.
I don't think they have your root password or they would do more then change the header
Basically when you start apache it forks child process that actually process the requests from the outside world. There is a setting in your httpd.conf file that sets the user to fork the processes as, it's normally nobody.
Nobody should not be able to do anything other then read files. That way if there is a hole in apache the hacker could only be in as nobody and not be able to do much damage.
I don't think they have your root password or they would do more then change the header

#27
not sure
Basically when you start apache it forks child process that actually process the requests from the outside world. There is a setting in your httpd.conf file that sets the user to fork the processes as, it's normally nobody.
Nobody should not be able to do anything other then read files. That way if there is a hole in apache the hacker could only be in as nobody and not be able to do much damage.
I don't think they have your root password or they would do more then change the header
Basically when you start apache it forks child process that actually process the requests from the outside world. There is a setting in your httpd.conf file that sets the user to fork the processes as, it's normally nobody.
Nobody should not be able to do anything other then read files. That way if there is a hole in apache the hacker could only be in as nobody and not be able to do much damage.
I don't think they have your root password or they would do more then change the header

Will check httpd files !!
#28
Restart apache, and make sure that all httpd process have the new/later start time and that they are running as nobody.
do netstat -a and see what comms is there incase there is a perm comms backdoor into the box
do netstat -a and see what comms is there incase there is a perm comms backdoor into the box
#29
Respect ! ^5 to both of yas ( well everyone
thanks )
#30
Any joy with your problem? Had some advice from a mate which is below...
DO you have root access to the server? If so you could install
mod_security for apache, as that should be able detect any intrusions
and block/alert you about them.
If you keep changing the password then it is unlikely he is getting in
that way, he's probably exploiting some weakness in a script to do a
code or sql injection.
- Check that all your sql queries that use user data are being escaped
with mysql_escape_string().
- Check if you are using any exec() functions in the PHP code, and if so
that there is no possibility for a user to insert a string into these
functions.
You could pay someone like security metrics
https://www.securitymetrics.com/ about $100 to do a regular automated
security sweep of your server. They will look for vulnerabilities and
alert you of them.
HTH
DO you have root access to the server? If so you could install
mod_security for apache, as that should be able detect any intrusions
and block/alert you about them.
If you keep changing the password then it is unlikely he is getting in
that way, he's probably exploiting some weakness in a script to do a
code or sql injection.
- Check that all your sql queries that use user data are being escaped
with mysql_escape_string().
- Check if you are using any exec() functions in the PHP code, and if so
that there is no possibility for a user to insert a string into these
functions.
You could pay someone like security metrics
https://www.securitymetrics.com/ about $100 to do a regular automated
security sweep of your server. They will look for vulnerabilities and
alert you of them.
HTH






