JavaScript's Security

By: Dusty Arlia
Published on February 19, 2013
Last Updated on Saturday, July 11, 2015 at 8:38 PM
Total Updates: 2

Your JavaScript program could have some security risks especially if you're using JavaScript for form validation. Since JavaScript executes on the client's computer, JavaScript is more vulnerable to manipulation. Hackers can insert their own scripts into your web form and try to pass bad information back to your server.

The best solution to the security risks involved in retrieving information is to perform a check on the retrieved information using a server-side program. The misconception that using a POST request instead of a GET request to keep your information safe, is false. Just because all your information doesn't get sent in the URL box with a POST request (as GET requests do), doesn't mean you're safe. Information sent by using a POST request is just as vulnerable as the information sent via a GET request.