Cross-site scripting attacks are possibly the oldest trick in the hackers book and yet they still have the potential to cause havoc.