
- English
- ePUB (mobile friendly)
- Available on iOS & Android
eBook - ePub
About this book
Cross-site scripting is the most pervasive web security flaw, and Finding and Fixing XSS is your hands-on guide to mastering its detection and remediation. Whether you are a beginner developer or a seasoned pro, this book teaches you how to find reflected and stored XSS in real-world applications—and, crucially, how to write fixes that actually close the vulnerability for good.
You will learn to spot XSS in every context: URL parameters, form inputs, JSON responses, and even inside JavaScript strings. Through practical examples and step-by-step walkthroughs, you will understand why common mitigations like HTML encoding or input validation often fail, and how to implement proper output encoding, content security policies, and secure-by-design patterns. Each chapter builds on the last, moving from simple reflected flaws to complex stored attacks that persist across sessions.
The book covers advanced topics such as DOM-based XSS, mutation XSS, and bypassing WAFs, all while emphasizing the mindset of a security engineer who thinks like an attacker. You will also get a complete toolkit for testing your own applications: browser extensions, fuzzing techniques, and automated scanners—but with the caveat that no tool replaces understanding.
Real-world case studies show how XSS was exploited in major breaches, and how the fixes were eventually applied. By the end, you will be able to audit any web application for XSS, write secure code from the start, and explain the risks to non-technical stakeholders. This is not just a theory book—it is a workbook you will keep open on your desk.
Competing titles like [placeholder] and [placeholder] cover XSS superficially, but this book goes deep into the mechanics of the attack and the exact code changes that close it. If you want to stop XSS for good, start here.
Trusted by 375,005 students
Access to over 1.5 million titles for a fair monthly price.
Study more efficiently using our study tools.
Information
Subtopic
Cyber SecurityIndex
Computer ScienceTable of contents
- Finding and Fixing XSS
- Finding and Fixing XSS
- Preface
- Chapter 1 — The Web Security Landscape – Why XSS Still Matters
- Chapter 2 — Setting Up Your Ethical Hacking Lab
- Chapter 3 — Core Concepts – How XSS Works
- Chapter 4 — Your First Payload – Reflected XSS in Action
- Chapter 5 — Stored XSS – The Persistent Threat
- Chapter 6 — DOM-Based XSS – Client-Side Dangers
- Chapter 7 — Context Matters – Crafting Payloads for Different Sinks
- Chapter 8 — Escalation – From alert() to Data Theft
- Chapter 9 — Bypassing Filters and WAFs
- Chapter 10 — Advanced Exploitation – Session Hijacking and Worming
- Chapter 11 — Defense Foundations – Input Validation and Output Encoding
- Chapter 12 — Content Security Policy – Your Strongest Shield
- Chapter 13 — Secure Development Practices – Server-Side and Client-Side
- Chapter 14 — Automated Scanning and Manual Testing Techniques
- Chapter 15 — Real-World Case Studies and Bug Bounty Insights
- Chapter 16 — Securing WebForum – Applying All Defenses
- Chapter 17 — Continuous Security – Monitoring and Updating
- Chapter 18 — Future Trends and Your Security Career
- About the Author
Frequently asked questions
Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Finding and Fixing XSS by Roland Espinoza in PDF and/or ePUB format, as well as other popular books in Computer Science & Cyber Security. We have over 1.5 million books available in our catalogue for you to explore.