Buy new:
-35% $38.95$38.95
FREE delivery Saturday, November 8
Ships from: Amazon Sold by: General Books & More
Save with Used - Very Good
$22.00$22.00
FREE delivery Saturday, November 8 on orders shipped by Amazon over $35
Ships from: Amazon Sold by: Sevans Group
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
The Tangled Web: A Guide to Securing Modern Web Applications 1st Edition
Purchase options and add-ons
--Tavis Ormandy, Google Inc.
Modern web applications are built on a tangle of technologies that have been developed over time and then haphazardly pieced together. Every piece of the web application stack, from HTTP requests to browser-side scripts, comes with important yet subtle security consequences. To keep users safe, it is essential for developers to confidently navigate this landscape.
In The Tangled Web, Michal Zalewski, one of the world's top browser security experts, offers a compelling narrative that explains exactly how browsers work and why they're fundamentally insecure. Rather than dispense simplistic advice on vulnerabilities, Zalewski examines the entire browser security model, revealing weak points and providing crucial information for shoring up web application security. You'll learn how to:
- Perform common but surprisingly complex tasks such as URL parsing and HTML sanitization
- Use modern security features like Strict Transport Security, Content Security Policy, and Cross-Origin Resource Sharing
- Leverage many variants of the same-origin policy to safely compartmentalize complex web applications and protect user credentials in case of XSS bugs
- Build mashups and embed gadgets without getting stung by the tricky frame navigation policy
- Embed or host user-supplied content without running into the trap of content sniffing
- ISBN-101593273886
- ISBN-13978-1593273880
- Edition1st
- PublisherNo Starch Press
- Publication dateNovember 15, 2011
- LanguageEnglish
- Dimensions6.94 x 0.76 x 9.25 inches
- Print length320 pages
Frequently bought together

Customers who viewed this item also viewed
Web Security for Developers: Real Threats, Practical DefensePaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Saturday, Nov 8Only 3 left in stock - order soon.
The Web Application Hacker's Handbook: Finding and Exploiting Security FlawsPaperbackFREE Shipping by AmazonGet it as soon as Saturday, Nov 8
Bug Bounty Bootcamp: The Guide to Finding and Reporting Web VulnerabilitiesPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Saturday, Nov 8
Hacking APIs: Breaking Web Application Programming InterfacesPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Saturday, Nov 8
Customers also bought or read
- The Web Application Hacker's Handbook: Finding and Exploiting Security Flaws
Paperback$36.47$36.47FREE delivery Saturday - Web Application Security: Exploitation and Countermeasures for Modern Web Applications
Paperback$44.94$44.94FREE delivery Saturday - Bug Bounty Bootcamp: The Guide to Finding and Reporting Web Vulnerabilities
Paperback$33.80$33.80Delivery Saturday - Security Engineering: A Guide to Building Dependable Distributed Systems
Hardcover$52.52$52.52$3.99 delivery Wed, Nov 19 - Black Hat Python, 2nd Edition: Python Programming for Hackers and Pentesters
Paperback$32.40$32.40FREE delivery Mon, Nov 17 - From Day Zero to Zero Day: A Hands-On Guide to Vulnerability Research
Just releasedPaperback$42.17$42.17FREE delivery Saturday - JavaScript: The Definitive Guide: Master the World's Most-Used Programming Language#1 Best SellerJavaScript Programming
Paperback$34.30$34.30Delivery Saturday - The Cuckoo's Egg: Tracking a Spy Through the Maze of Computer Espionage
Paperback$17.34$17.34Delivery Saturday - Malware Development for Ethical Hackers: Learn how to develop various types of malware to strengthen cybersecurity
Paperback$47.97$47.97FREE delivery Saturday - The Hardware Hacking Handbook: Breaking Embedded Security with Hardware Attacks
Paperback$30.99$30.99Delivery Saturday - Operating Systems: Three Easy Pieces#1 Best SellerComputer Operating Systems Theory
Paperback$28.27$28.27Delivery Saturday - The Basics of Hacking and Penetration Testing: Ethical Hacking and Penetration Testing Made Easy
Paperback$18.78$18.78Delivery Saturday - The Art of Memory Forensics: Detecting Malware and Threats in Windows, Linux, and Mac Memory
Paperback$35.53$35.53FREE delivery Tue, Dec 2 - Rootkits: Subverting the Windows Kernel: Subverting the Windows Kernel
Paperback$22.00$22.00Delivery Wed, Nov 19 - Attacking and Exploiting Modern Web Applications: Discover the mindset, techniques, and tools to perform modern web attacks and exploitation
Paperback$39.99$39.99FREE delivery Saturday - Practical Malware Analysis: The Hands-On Guide to Dissecting Malicious Software
Paperback$44.22$44.22FREE delivery Saturday - The Hacker Playbook: Practical Guide To Penetration Testing
Paperback$15.83$15.83$6.10 delivery Mon, Nov 17 - Black Hat Bash: Creative Scripting for Hackers and Pentesters
Paperback$37.29$37.29$3.99 delivery Thu, Nov 20 - Security Chaos Engineering: Sustaining Resilience in Software and Systems
Paperback$37.12$37.12FREE delivery Saturday - The Practice of Network Security Monitoring: Understanding Incident Detection and Response
Paperback$40.15$40.15$3.99 delivery Thu, Dec 11 - The Rust Programming Language, 2nd Edition#1 Best SellerObject-Oriented Software Design
Paperback$30.13$30.13Delivery Saturday
Editorial Reviews
Review
—Britt Kemp, Bishop Fox Labs
About the Author
Product details
- Publisher : No Starch Press
- Publication date : November 15, 2011
- Edition : 1st
- Language : English
- Print length : 320 pages
- ISBN-10 : 1593273886
- ISBN-13 : 978-1593273880
- Item Weight : 1.36 pounds
- Dimensions : 6.94 x 0.76 x 9.25 inches
- Best Sellers Rank: #636,806 in Books (See Top 100 in Books)
- #334 in Computer Hacking
- #433 in Computer Network Security
- #896 in Internet & Telecommunications
- Customer Reviews:
About the author

Discover more of the author’s books, see similar authors, read book recommendations and more.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Customers praise the book's systematic coverage of browser security, with one review highlighting its bottom-up approach to understanding how modern browsers operate. Moreover, they consider it mandatory reading for web developers. However, the book receives mixed feedback regarding its depth and content quality. Additionally, the organization receives criticism, with one customer noting its somewhat rambling structure.
AI Generated from the text of customer reviews
Select to learn more
Customers appreciate the book's comprehensive coverage of browser security, with one customer highlighting its systematic approach to modern web application vulnerabilities, while another notes how it provides a bottom-up understanding of browser operations.
"It's an impressive web and browser insideout. This book is for you, if you want to learn the pitfalls." Read more
"...sums up why "The Tangled Web" is, hands down, the best book on web and browser security...." Read more
"The book is very well written and goes through modern web application vulnerabilities...." Read more
"The book provides systematic coverage of browser security...." Read more
Customers find the book to be a mandatory read for web developers, with one customer noting it serves as a great reference for security engineers.
"...This book should be mandatory reading for every web-developer. Highly recommend it." Read more
"...It's certainly a book for application security professionals, not for beginners." Read more
"...Some of the content is a little dated but the guidance is very applicable." Read more
"...A great reference book for all security web engineers." Read more
Customers have mixed opinions about the content quality of the book.
"Solid content to help one understand all the sad quirks of our Web standards! A great reference book for all security web engineers." Read more
"...The content is superficial at best and lacks examples...." Read more
"The content is good but the organization of the book is somewhat rambling, jumping around...." Read more
Customers have mixed opinions about the depth of the book, with some praising its tremendous insight, while one customer notes it lacks depth.
"...The first 6 pages of chapter 1 provide brilliant insight into why formal security models, risk management and taxonomies fail to deliver promised..." Read more
"...It does have some interesting bits, but it lacks depth, does not manage to pull my attention...." Read more
"...In this book Michal Zalewski walks us through the history and the evolution of the architecture of the popular browsers, servers, protocols, and..." Read more
Customers find the organization of the book somewhat rambling and poorly structured.
"...This book is poorly structured...." Read more
"...It feels like I'm reading an encyclopedia, but without the depth or organization. At other times it feels like an extended dictionary...." Read more
"...The author, as always, gives examples and very clear explanations." Read more
"The content is good but the organization of the book is somewhat rambling, jumping around...." Read more
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on June 9, 2012Format: PaperbackVerified Purchase"Gaining insights into the underlying mechanics of web applications is far more important that memorizing several thousand random and often unnecessary terms."
That one sentence sums up why "The Tangled Web" is, hands down, the best book on web and browser security. It is all too easy to criticize, lament, and create paranoid scenarios about the "unsound security foundations" of the web. Truth is, all of that criticism is true, and yet the web has proven to be an incredibly robust platform. In this book Michal Zalewski walks us through the history and the evolution of the architecture of the popular browsers, servers, protocols, and everything in between - as it relates security of modern web applications.
Instead of focusing on the usual security acronyms and "attack classes", this book will give you something much more powerful: a bottom up understanding of how a modern browser operates, why it does what it does, and what implications this has for designing more secure applications. This book should be mandatory reading for every web-developer. Highly recommend it.
- Reviewed in the United States on December 1, 2011Format: PaperbackVerified PurchaseThe book provides systematic coverage of browser security. The first 6 pages of chapter 1 provide brilliant insight into why formal security models, risk management and taxonomies fail to deliver promised security improvements to organizations that embrace them. I used to explain the same with a lot of hand weaving, Zalewski's approach and insight are far superior.
Make no mistake, the book is focused on the browser and related technologies rather than the theory of security. The same tremendous insight, that made me nod with appreciation and wish that I had the book 5 years ago while working on security policies, illuminates browser concepts like in-browser content separation, scripting, and much more.
I appreciate the authors treatment of each of the concepts in the context of the browser as a complex and still evolving technology, with it's own history, standards, market requirements and politics.
- Reviewed in the United States on December 13, 2014Format: PaperbackVerified PurchaseAt first i was conservative about this book because of the topics, URL, HTML, etc... However, since i'm a Zalewski's fan, i decided to try it. When i read the first chapter, i got my mind blown. So many details where in front of me and i didn't realize until now. It's certainly a book for application security professionals, not for beginners.
- Reviewed in the United States on September 4, 2017Format: KindleVerified PurchaseIt's an impressive web and browser insideout.
This book is for you, if you want to learn the pitfalls.
- Reviewed in the United States on April 11, 2013Format: PaperbackVerified PurchaseThis book is AWESOME. One should not be allowed to work on sensitive product without studying it.
Before I didn't even realized that e.g. when Flash makes cross domain requests it appends all ambient credentials - and there are so many insights like this in this book.
While reading I also found a bunch of critical vulnerabilities in the projects I know.
- Reviewed in the United States on December 11, 2014Format: KindleVerified PurchaseReally expected more from this book. It does have some interesting bits, but it lacks depth, does not manage to pull my attention. I develop Web systems for a living and am security-minded, so I might be biased on this, but it is the demographics I think it would most cater to!
- Reviewed in the United States on July 4, 2014Format: KindleVerified PurchaseDid you know that every web application should have a crossdomain.xml? Check the top level of most popular sites. That is just one of the tips available in the Security Engineering Cheat Sheets in this book. Some of the content is a little dated but the guidance is very applicable.
- Reviewed in the United States on August 23, 2013Format: PaperbackVerified PurchaseThe book is very well written and goes through modern web application vulnerabilities. The author, as always, gives examples and very clear explanations.
Top reviews from other countries
-
ThomasReviewed in France on May 27, 20211.0 out of 5 stars Pas de table des matières dans le Kindle
Format: KindleVerified PurchaseCe livre est sans doute intéressant, mais il manque une table des matières dans la version Kindle, ce qui le rend peu pratique si l'on a acheté ce livre comme outil plutôt qu'un livre qui se lit de la première à la dernière page.
David MReviewed in the United Kingdom on January 1, 20205.0 out of 5 stars Excellent
Format: PaperbackVerified PurchaseReading some of the reviews on the main amazon.com website it's quite clear to understand that this book is not for a developer trying to understand how to defend their websites against attack, and I'd certainly not recommend it for that purpose. What it is excellent at is giving an overview of the mess that is modern browser security. It's getting old now, but the way it's written (and I assume the reason that it is a little rambling) it's a dude trying to explain what he feels you should know about the way the internet works, many times during the book even before I've asked 'does this mean x is possible if we get it wrong' - he's got an example of it. It's a great book, and if you take it for what it is, there's nothing that has the gives you the same insight and depth into the (well in 2020 not so much) way the modern web works and the pitfalls that are all too easy to fall into. 5*
AkhenatonReviewed in Germany on December 3, 20125.0 out of 5 stars Untangled my tangled understanding
Format: KindleVerified PurchaseZalewski's clear, often humorous, always broad and superbly documented "archaeology" of the web had a sanitizing effect on my understanding that standard security books do not provide. As he walks you down and around the paths, decisions, insights and mistakes (and mistakes and mistakes and mistakes) that made the web so tangled, he not only provides much useful information on, and "an attitude" towards security, but may in fact untangle a web-tangled understanding of somewhat confusing issues. To top it all, it's a great read - I hardly felt I was reading something so technical. Very recommended.
-
Andrea BerardiReviewed in Italy on July 28, 20205.0 out of 5 stars Ottimo libro, assolutamente consigliato!
Format: PaperbackVerified PurchaseVeramente un ottimo libro, molto interessante e chiaro.
Come al solito No Starch Press non delude, contenuti ottimi e anche attuali. D’altronde la sicurezza sul web è uno dei temi centrali dei nostri tempi.
JonathanReviewed in Canada on April 26, 20244.0 out of 5 stars Outdated but good resource
Format: PaperbackVerified PurchaseIn 2024, I would not recommend this book simply because it is outdated now. When it was written, this is an adequate guide for learning about web security design and application.
















