Jinx13 Posted May 7, 2013 Share Posted May 7, 2013 Hey, I have just been hacked by LiBeRTADoRS Twitter:@SiRAbdou & @LiBeRTADoReSTM My admin folder is still accessable and my templates folder is not affected. I'm struggling to find how/what/where Does anyone have any tips? Thank you 0 Quote Link to comment Share on other sites More sharing options...
penguin Posted May 7, 2013 Share Posted May 7, 2013 It depends on your type of hosting. Have you as a minimum checked your site access logs? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Chris Posted May 7, 2013 Share Posted May 7, 2013 Hello, If your installation isn't *apparently* affected. They most likely uploaded an index.php/html page and updated the htaccess to call to it. I would begin by checking the access & FTP logs for the filename once you isolate it. Then check the server logs for their IP address and trace back to the starting point to ensure they've not done anything else. Also, do a check for any symlinks: find . -type l -exec ls -lad {} \; 0 Quote Link to comment Share on other sites More sharing options...
Jinx13 Posted May 7, 2013 Author Share Posted May 7, 2013 Thank you, I did check the access logs but all I could find was this however I don't think it's anything 66.193.171.233 - - [07/May/2013:08:19:56 -0400] "GET /user/soapCaller.bs HTTP/1.0" 404 - "-" "Morfeus ****************ing Scanner" @WHMCS Chris is that code done via ssh? I checked .htaccess file and also .html files as I don't have many and they seemed fine 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Chris Posted May 7, 2013 Share Posted May 7, 2013 @WHMCS Chris is that code done via ssh? Yes - If you're running under a Hosting Provider, I'd recommend having them take a look. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 7, 2013 Share Posted May 7, 2013 I see that your main site shows an "Under Construction" page, but cart.php?gid=1 shows the hacked page... going through their list of hacked sites (checked most but not all), yours seems the only one to use WHMCS - so I don't think they've accessed via a WHMCS exploit... all the domains I checked (apart from yours I think) were hosted at HostDime, so probably some shared hosting hack. looking at the source code, I can't tell whether its been added to the template file, or via the admin/dbatabase. as Chris suggests, checking your logs and files is the most important thing, and then perhaps contact your hosting company. 0 Quote Link to comment Share on other sites More sharing options...
Jinx13 Posted May 8, 2013 Author Share Posted May 8, 2013 The under construction page was just a mask over the top till I've sorted this out. I have checked my template files and all seems fine. Even added my template folders on an internal server on my PC. It seems that it is the database as as soon as I uploaded my database to wamp and opened localhost I had the same hacked page. Still scanning through logs to try find where. I have contacted my host to run the code via ssh Thank you for your help 0 Quote Link to comment Share on other sites More sharing options...
Jinx13 Posted May 8, 2013 Author Share Posted May 8, 2013 Think I have found it 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Chris Posted May 8, 2013 Share Posted May 8, 2013 Hello Jinx, I modified your post - please submit a ticket referencing this thread. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 9, 2013 Share Posted May 9, 2013 Think I have found it yep, that code that Chris removed was what I saw when I checked out your site - glad you found it. one further security measure you might want to consider is to encrypt your configuration.php file - as obviously once the hacker got access to your hosting account, he could read this file and access the db... you can use IonCube Online Encoder and costs just GBP£0.25 - i'd be interested to hear from others who have done this. 0 Quote Link to comment Share on other sites More sharing options...
Jinx13 Posted May 12, 2013 Author Share Posted May 12, 2013 (edited) Thank you for the tip, testing the encoded configuration.php now I have a problem looks like every man and his dog are accessing my DB Someone just changed my admin details and I've still not found the entry point Although I found this in my access logs [Deleted logs and moved to ticket] Does anyone know if this could be the issue? Either something in my template or knowledgebase? Thank you Edited May 12, 2013 by Jinx13 0 Quote Link to comment Share on other sites More sharing options...
DavidBee Posted May 12, 2013 Share Posted May 12, 2013 When this happened: http://forum.whmcs.com/showthread.php?68466-WHMCS-Security Did you ever change passwords on anything? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 12, 2013 Share Posted May 12, 2013 Thank you for the tip, testing the encoded configuration.php now I have a problem looks like every man and his dog are accessing my DB Someone just changed my admin details and I've still not found the entry point Does anyone know if this could be the issue? Either something in my template or knowledgebase? I don't know if you did this, but the first thing I would have done would have been to delete everything in the account, or ideally delete the entire hosting account - then create a new one from scratch with different username, different long passwords, different db name, username and passwords, different admin folder name, install whmcs from scratch... restore the last safe db backup and then install your template (checking it file by file). with regards to the above logs (which I suspect Chris will delete!), it does seem to signify someone trying to gain access (search google!) - though if you've got the whmcs installation secured, you should be alright... perhaps use should use .htaccess to block such attempts. 0 Quote Link to comment Share on other sites More sharing options...
Jinx13 Posted May 12, 2013 Author Share Posted May 12, 2013 When this happened: http://forum.whmcs.com/showthread.php?68466-WHMCS-Security Did you ever change passwords on anything? Of course I don't know if you did this, but the first thing I would have done would have been to delete everything in the account, or ideally delete the entire hosting account - then create a new one from scratch with different username, different long passwords, different db name, username and passwords, different admin folder name, install whmcs from scratch... restore the last safe db backup and then install your template (checking it file by file).with regards to the above logs (which I suspect Chris will delete!), it does seem to signify someone trying to gain access (search google!) - though if you've got the whmcs installation secured, you should be alright... perhaps use should use .htaccess to block such attempts. I deleted the logs as I have submitted to support. I changed all my passwords after the first attempt. I will say that they never actually accessed my ACP that I know of (I had .htaccess password already) It seems that they have been accessing my configuration.php via the same method and after searching my access logs for "configuration.php" I seen all the attempts that we're made. I have taken the advice from you and encoded configuration.php. It costs 5 credits 25p GBP but you have to buy a minimum of 100 credits for £5.00 Which doesn't break the bank so that's what I did and it works fine I would probably recommend it to everyone. Thank you for any help it has been passed to the security team 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Chris Posted May 12, 2013 Share Posted May 12, 2013 (which I suspect Chris will delete!). I didn't remove any logs as they contained no potential exposing data. That is why I removed the initial information. 0 Quote Link to comment Share on other sites More sharing options...
Jinx13 Posted May 13, 2013 Author Share Posted May 13, 2013 Ah I thought it was due to being an incorrect place to be posting logs so I deleted them as they are in the ticket anyway Off topic... Is https://www.ioncube.com/main.php?c=encode how whmcs files are encoded? 0 Quote Link to comment Share on other sites More sharing options...
TommyK Posted May 13, 2013 Share Posted May 13, 2013 Does anyone know if this could be the issue? Either something in my template or knowledgebase? To me this looks like a symlink hack. Are you on a shared host? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 13, 2013 Share Posted May 13, 2013 I deleted the logs as I have submitted to support. I changed all my passwords after the first attempt.I will say that they never actually accessed my ACP that I know of (I had .htaccess password already) a thought that occurred to me last night (while watching MOTD!) is whether they would need to anyway - it's just a pretty front-end to the database, and if they could access the db directly to add their code... also, did you have any customer logins in the database (hosting or domain registrar) or cpanel keys? It seems that they have been accessing my configuration.php via the same method and after searching my access logs for "configuration.php" I seen all the attempts that we're made.I have taken the advice from you and encoded configuration.php. It costs 5 credits 25p GBP but you have to buy a minimum of 100 credits for £5.00 Which doesn't break the bank so that's what I did and it works fine i'm glad to have been of some help - i'm still very new to WHMCS but happy to share what little I've learned over the last couple of months... the idea of encoding configuration.php was something I found in another thread while researching WHMCS before buying the license - they also mentioned to encode .htaccess as well. as you confirm it works fine, it's something i'll probably do when the time comes to take our site live. 0 Quote Link to comment Share on other sites More sharing options...
altomarketing Posted May 14, 2013 Share Posted May 14, 2013 I did a tutorial for newbies to protect themselves, i called as a joke "whmcs almost unbreakeable" http://www.argentina--software.com.ar/index.php/2013/03/19/whmcs-almost-unbreakeable/?lang=en For expert you can post there any advice so i will update post. Long life to whmcs ! 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted May 14, 2013 Share Posted May 14, 2013 Encoding the file won't really make a difference. All they'd need to do is 'include' the file via php in another script and they have access to all the variables contained in it. If they have access to the file system them it all it does is make it so they can't open and read it in plain view. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.