SQL attacks are the most common way hackers gain access to websites and have been attributed to some of the most high profile breaches in recent times.