万本电子书0元读

万本电子书0元读

顶部广告

JavaScript Security电子书

售       价:¥

5人正在读 | 0人评论 9.8

作       者:Y.E Liang

出  版  社:Packt Publishing

出版时间:2014-11-22

字       数:58.0万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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.
目录展开

JavaScript Security

Table of Contents

JavaScript Security

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. JavaScript and the Web

JavaScript and your HTML/CSS elements

jQuery effects

Hide/Show

Toggle

Animation

Chaining

jQuery Ajax

jQuery GET

jQuery getJSON

jQuery POST

JavaScript beyond the client

JavaScript on the server side

Full-stack JavaScript

JavaScript security issues

Cross-site request forgery

Cross-site scripting

Summary

2. Secure Ajax RESTful APIs

Building a RESTful server

A simple RESTful server in Node.js and Express.js

Frontend code for the to-do list app on top of Express.js

Cross-origin injection

Injecting JavaScript code

Guessing the API endpoints

Basic defense against similar attacks

Summary

3. Cross-site Scripting

What is cross-site scripting?

Persistent cross-site scripting

Nonpersistent cross-site scripting

Examples of cross-site scripting

A simple to-do app using Tornado/Python

Coding up server.py

Cross-site scripting example 1

Cross-site scripting example 2

Cross-site scripting example 3

Defending against cross-site scripting

Do not trust users – parsing input by users

Summary

4. Cross-site Request Forgery

Introducing cross-site request forgery

Examples of CSRF

Basic defense against CSRF attacks

Other examples of CSRF

CSRF using the <img> tags

Other forms of protection

Creating your own app ID and app secret – OAuth-styled

Checking the Origin header

Limiting the lifetime of the token

Summary

5. Misplaced Trust in the Client

When trust gets misplaced

A simple example

Building the server side – mistrust.py

The templates

To trust or not to trust

Manipulating the JavaScript code

Dealing with mistrust

Summary

6. JavaScript Phishing

What is JavaScript phishing?

Examples of JavaScript phishing

Classic examples

Accessing user history by accessing the local state

XSS and CSRF

Intercepting events

Defending against JavaScript phishing

Upgrading to latest versions of web browsers

Recognizing real web pages

Protecting your site against XSS and CSRF

Avoid using pop ups and keep your address bars

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部