In cyberspace, a lack of security brings many security risks. The most common five are cross-site scripting, SQL injections, cross-site request forgery, broken authentication, and insecure direct object references. The outcomes of an attack lead to data and identity theft, financial fraud and other cybercrimes.