I've been given a site to fix that was recently hacked using SQL injection. From what I can gather the Havij automated SQL injector was used to insert code into the query string parameters of the url.
The site is a custom CMS build and a bit dated. I don't think a full rebuild is likely.
What's the best way to prevent this from occurring again? I'm a PHP developer, but usually just do validations on forms, or use systems that have this functionality already built in - wordpress, codeigniter, drupal etc.
Any ideas or thoughts are appreciated.
Thanks