JavaScript Security
- Length: 113 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2014-11-21
- ISBN-10: 1783988002
- ISBN-13: 9781783988006
- Sales Rank: #1064580 (See Top 100 Books)
Learn JavaScript security to make your web applications more secure
About This Book
- Understand the JavaScript security issues that are a result of both the frontend and the backend of a web app
- Learn to implement Security techniques to avoid cross site forgery and various JavaScript vulnerabilities.
- Secure your JavaScript environment from the ground up, with step-by-step instructions covering all major ways to tackle Security issues
Who This Book Is For
This book is for JavaScript developers having basic web development knowledge and also for those who want to explore the security issues that arise from the use of JavaScript. Prior knowledge of how JavaScript is used, such as for DOM manipulation or to perform Ajax operations, is assumed.
In Detail
This book starts off with an introduction to JavaScript security and gives you an overview of the basic functions JavaScript can perform on the Web, both on the client side and the server side. It demonstrates a couple of ways in which RESTful APIs can be laden with security flaws. You will also create a simple RESTful server using Express.js and Node.js. You will then focus on one of the most common JavaScript security attacks, cross-site scripting, and how to prevent cross-site scripting and cross-site forgery.
Last but not least, the book covers JavaScript phishing, how it works, and ways to counter it.
By the end of this book, you will be able to identify various risks of JavaScript and how to prevent them.
Table of Contents
Chapter 1: JavaScript and the Web
Chapter 2: Secure Ajax RESTful APIs
Chapter 3: Cross-site Scripting
Chapter 4: Cross-site Request Forgery
Chapter 5: Misplaced Trust in the Client
Chapter 6: JavaScript Phishing