Jump to content

Recommended Posts

Posted

We have been having problems with our website getting hacked and the front page defaced. It has happened twice now: apparently different groups (and not the little darlings in the school unless they did a very good job of disguising their trail).

 

It's a PHP website with a custom CMS and has been managed and hosted by the web development company that built it, but we do have ownership of the code. They have tried to clear up after each occasion, but they have now admitted that they are not really up to the job of tracking down the underlying problems. It does appear (certainly the first time) that the problem was the site code itself and not vulnerable 3rd party software. There are more details I cannot really go into on a forum.

 

While I will be taking a look myself, we are now interested in finding someone who could review the website's security and perhaps help us out if it gets hacked again. Is there anyone here a website security consultant looking for a job? Or does anyone have any recommendations?

Posted

A few of the common vectors:

If you allow file uploads/submissions to a writeable directory (everything else shouldn't be write) then block the execution of php/asp/cgi in that folder, a common way in is to submit a php file then directly access the url once uploaded.

Anywhere/everywhere you use a querystring, get or post, form submission needs to have its input filtered through php's function filter_input which will help filter crud out.

  • Thanks 1
Posted

my suggestion is to ditch the cms and get a new one.

 

If you hire a consultant that might find problems with it and fix them. There is guarantee though that there might not be more issues found and exploited in the future (think of it like still using XP).

 

also check that your host system is fully up to date - os, php version, mysql version, .net version or whatever it runs on.

  • Thanks 1
Posted
also check that your host system is fully up to date - os, php version, mysql version, .net version or whatever it runs on.

 

Just to say if the server is on php 5.3 do not update to 5.4 without testing as it changed a few of the rules and it could break your existing cms.

  • Thanks 1
Posted

Thank you for the suggestions for fixing. I will look out for those when I get my hands on the code.

 

I agree it would be safer to ditch the whole CMS and start afresh at this point, though that would be a hard one to sell to our management as the site was not built that long ago and they are largely happy with it in other respects. While I know no one could ever catch every hole, I am thinking it might be possible for someone who knew what they were doing to patch up the worst of any security issues, put in place a rapid response plan in case of it happening again, and be sufficiently protected. However I know there is a point where it takes less time to rewrite something completely than try to fix it. If an unbiased expert opinion after looking over the site code was that it was fundamentally unsound that would be useful to know in itself.

Posted
You might try running a penetration tester against your site - something like Owasp Zap. It should give you some idea where the vulnerabilities lie - and it's probably the kind of thing your attackers use.
  • Thanks 1
Posted
I have my own website going through cloudflare, edugeek uses it I believe.

 

BEn

 

We did use it in the past, everything is through AWS currently. Its a very good service but we did have one or two issues we couldnt resolve but part of that could have been down to our previous hardware. They are also one of the fastest nameserver's hosts in the business.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...