eBooks > Securing PHP Web Applications
Securing PHP Web ApplicationsDate: 15 August 2012 | Posted by: craniu |
![]() # Publisher: Addison-Wesley Professional # Language: English # ISBN-10: 0321534344 # ISBN-13: 9780321534347 # Format: Acrobat (pdf), 336 pp # Size: 11.0MB Book Description Easy, Powerful Code Security Techniques for Every PHP Developer Hackers specifically target PHP Web applications. Why? Because they know many of these apps are written by programmers with little or no experience or training in software security. Don’t be victimized. Securing PHP Web Applications will help you master the specific techniques, skills, and best practices you need to write rock-solid PHP code and harden the PHP software you’re already using. Drawing on more than fifteen years of experience in Web development, security, and training, Tricia and William Ballad show how security flaws can find their way into PHP code, and they identify the most common security mistakes made by PHP developers. The authors present practical, specific solutions–techniques that are surprisingly easy to understand and use, no matter what level of PHP programming expertise you have. Securing PHP Web Applications covers the most important aspects of PHP code security, from error handling and buffer overflows to input validation and filesystem access. The authors explode the myths that discourage PHP programmers from attempting to secure their code and teach you how to instinctively write more secure code without compromising your software’s performance or your own productivity. Coverage includes * Designing secure applications from the very beginning–and plugging holes in applications you can’t rewrite from scratch * Defending against session hijacking, fixation, and poisoning attacks that PHP can’t resist on its own * Securing the servers your PHP code runs on, including specific guidance for Apache, MySQL, IIS/SQL Server, and more * Enforcing strict authentication and making the most of encryption * Preventing dangerous cross-site scripting (XSS) attacks * Systematically testing yourapplications for security, including detailed discussions of exploit testing and PHP test automation * Addressing known vulnerabilities in the third-party applications you’re already running Tricia and William Ballad demystify PHP security by presenting realistic scenarios and code examples, practical checklists, detailed visuals, and more. Whether you write Web applications professionally or casually, or simply use someone else’s PHP scripts, you need this book–and you need it now, before the hackers find you! Table of Contents Part I: Web Development Is a Blood Sport–Don't Wander onto the Field Without a Helmet 1 Chapter 1: Security Is a Server Issue and Other Myths 3 Part II: Is That Hole Really Big Enough to Drive a Truck Through? 11 Chapter 2: Error Handling 13 Chapter 3: System Calls 27 Part III: What's In a Name? More Than You Expect 35 Chapter 4: Buffer Overflows and Variable Sanitation 37 Chapter 5: Input Validation 53 Chapter 6: Filesystem Access: Accessing the Filesystem for Fun and Profit 69 Part IV: “Aw come on man, you can trust me” 93 Chapter 7: Authentication 95 Chapter 8: Encryption 121 Chapter 9: Session Security 129 Chapter 10: Cross-Site Scripting 137 Part V: Locking Up for the Night 141 Chapter 11: Securing Apache and MySQL 143 Chapter 12: Securing IIS and SQL Server 167 Chapter 13: Securing PHP on the Server 207 Chapter 14: Introduction to Automated Testing 219 Chapter 15: Introduction to Exploit Testing 225 Part VI: “Don’t Get Hacked” Is Not a Viable Security Policy 255 Chapter 16: Plan A: Designing a Secure Application from the Beginning 257 Chapter 17: Plan B: Plugging the Holes in Your Existing Application 273 Epilogue: Security Is a Lifestyle Choice: Becoming a Better Programmer 279 Appendix: Additional Resources 285 About the Author(s) Tricia Ballad spent several years as a Web applications developer on the LAMP (Linux, Apache, MySQL, PHP/Perl) platform before becoming a full-time writer and technical editor. She currently writes online courseware on various technology topics. William Ballad has worked in every aspect and at all levels of information technology, from hardware maintenance at a small mom-and-pop ISP to architect of Windows-based and heterogeneous networks at some of the world’s largest corporations. An active member of the IT security community for many years, he recently led an effort to counter an international hacker group exploiting OptionCart, a widely used e-commerce system. The Ballads have collaborated on several Web development books, including PHP & MySQL Web Development All-in-One Desk Reference for Dummies (Wiley Publishing, 200. See full article |