BN.com Gift Guide

Hacking the Code: Auditor's Guide to Writing Secure Code for the Web [NOOK Book]

Overview

Hacker Code will have over 400 pages of dedicated exploit, vulnerability, and tool code with corresponding instruction. Unlike other security and programming books that dedicate hundreds of pages to architecture and theory based flaws and exploits, HC1 will dive right into deep code analysis. Previously undisclosed security research in combination with superior programming techniques from Foundstone and other respected organizations will be ...
See more details below
Hacking the Code: Auditor's Guide to Writing Secure Code for the Web

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK 7.0
  • Samsung Galaxy Tab 4 NOOK 10.1
  • NOOK HD Tablet
  • NOOK HD+ Tablet
  • NOOK eReaders
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$30.99
BN.com price
(Save 42%)$53.95 List Price

Overview

Hacker Code will have over 400 pages of dedicated exploit, vulnerability, and tool code with corresponding instruction. Unlike other security and programming books that dedicate hundreds of pages to architecture and theory based flaws and exploits, HC1 will dive right into deep code analysis. Previously undisclosed security research in combination with superior programming techniques from Foundstone and other respected organizations will be included in both the Local and Remote Code sections of the book.

The book will be accompanied with a FREE COMPANION CD containing both commented and uncommented versions of the source code examples presented throughout the book. In addition to the book source code, the CD will also contain a copy of the author-developed Hacker Code Library v1.0. The Hacker Code Library will include multiple attack classes and functions that can be utilized to quickly create security programs and scripts. These classes and functions will simplify exploit and vulnerability tool development to an extent never before possible with publicly available software.

* Learn to quickly create security tools that ease the burden of software testing and network administration
* Find out about key security issues regarding vulnerabilities, exploits, programming flaws, and secure code development
* Discover the differences in numerous types of web-based attacks so that developers can create proper quality assurance testing procedures and tools
* Learn to automate quality assurance, management, and development tasks and procedures for testing systems and applications
* Learn to write complex Snort rules based solely upon traffic generated by network tools and exploits

Hacker Code will have over 400 pages of dedicated exploit, vulnerability, and tool code with corresponding instruction. Unlike other security and programming books that dedicate hundreds of pages to architecture and theory based flaws and exploits, HC1 will dive right into deep code analysis. Previously undisclosed security research in combination with superior programming techniques from Foundstone and other respected organizations will be included in both the Local and Remote Code sections of the book.

The book will be accompanied with a FREE COMPANION CD containing both commented and uncommented versions of the source code examples presented throughout the book. In addition to the book source code, the CD will also contain a copy of the author-developed Hacker Code Library v1.0. The Hacker Code Library will include multiple attack classes and functions that can be utilized to quickly create security programs and scripts. These classes and functions will simplify exploit and vulnerability tool development to an extent never before possible with publicly available software. Learn to quickly create security tools that ease the burden of software testing and network administration

Read More Show Less

Product Details

  • ISBN-13: 9780080478173
  • Publisher: Elsevier Science
  • Publication date: 5/10/2004
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • Pages: 550
  • File size: 14 MB
  • Note: This product may take a few minutes to download.

Table of Contents

Chapter 1 Managing Users


Introduction


Understanding the Threats


Establishing User Credentials


Enforcing Strong Passwords


Avoiding Easily Guessed Credentials


Preventing Credential Harvesting


Limiting Idle Accounts


Managing Passwords


Storing Passwords


Password Aging and Histories


Changing Passwords


Resetting Lost or Forgotten Passwords


Resetting Passwords


Sending Information Via E-Mail


Assigning Temporary Passwords


Using Secret Questions


Empowering Users


Educating Users


Involving Users


Coding Standards Fast Track


Establishing User Credentials


Managing Passwords


Resetting Lost or Forgotten Passwords


Empowering Users


Code Audit Fast Track


Establishing User Credentials


Managing Passwords


Resetting Lost or Forgotten Passwords


Empowering Users


Frequently Asked Questions


Chapter 2 Authenticating and Authorizing Users


Introduction


Understanding the Threats


Authenticating Users


Building Login Forms


Using Forms Authentication


Using Windows Authentication


Using Passport Authentication


Blocking Brute-Force Attacks


Authorizing Users


Deciding How to Authorize


Employing File Authorization


Applying URL Authorization


Authorizing Users Through Code


Coding Standards Fast Track


Authenticating Users


Authorizing Users


Code Audit Fast Track


Authenticating Users


Authorizing Users


Frequently Asked Questions


Chapter 3 Managing Sessions


Introduction


Session Tokens


Authentication Tokens


Understanding the Threats


Maintaining State


Designing a Secure Token


Selecting a Token Mechanism


Using State Providers


Using ASP.NET Tokens


Using Cookies


Working with View State


Enhancing ASP.NET State Management


Creating Tokens


Terminating Sessions


Coding Standards Fast Track


Maintaining State


Using ASP.NET Tokens


Enhancing ASP.NET State Management


Code Audit Fast Track


Maintaining State


Using ASP.NET Tokens


Enhancing ASP.NET State Management


Frequently Asked Questions


Chapter 4 Encrypting Private Data


Introduction


Using Cryptography in ASP.NET


Employing Symmetric Cryptography


Using Asymmetric Cryptography


Working with Hashing Algorithms


Working with .NET Encryption Features


Creating Random Numbers


Keeping Memory Clean


Protecting Secrets


Protecting Communications with SSL


Coding Standards Fast Track


Using Cryptography in ASP.NET


Working with .NET Encryption Features


Code Audit Fast Track


Using Cryptography in ASP.NET


Working with .NET Encryption Features


Frequently Asked Questions


Chapter 5 Filtering User Input


Introduction


Handling Malicious Input


Identifying Input Sources


Programming Defensively


Constraining Input


Bounds Checking


Pattern Matching


Data Reflecting


Encoding Data


Encapsulating


Parameterizing


Double Decoding


Syntax Checking


Exception Handling


Honey Drops


Limiting Exposure to Malicious Input


Reducing the Attack Surface


Limiting Attack Scope


Hardening Server Applications


Coding Standards Fast Track


Handling Malicious Input


Constraining Input


Limiting Exposure to Malicious Input


Code Audit Fast Track


Handling Malicious Input


Limiting Exposure to Malicious Input


Frequently Asked Questions


Chapter 6 Accessing Data


Introduction


Securing Databases


Securing the Database Location


Limiting the Attack Surface


Ensuring Least Privilege


Securing the Database


Writing Secure Data Access Code


Connecting to the Data Source


Preventing SQL Injection


Writing Secure SQL Code


Reading and Writing to Data Files


Coding Standards Fast Track


Securing Database Drivers


Securing Databases


Writing Secure Data Access Code


Code Audit Fast Track


Securing Database Drivers


Securing the Database


Writing Secure Data Access Code


Frequently Asked Questions


Chapter 7 Developing Secure ASP.NET Applications


Introduction


Understanding the Threats


Writing Secure HTML


Constructing Safe HTML


Preventing Information Leaks


Handling Exceptions


Using Structured Error Handling


Reporting and Logging Errors


Coding Standards Fast Track


Writing Secure HTML


Handling Exceptions


Code Audit Fast Track


Writing Secure HTML


Handling Exceptions


Frequently Asked Questions


Chapter 8 Securing XML


Introduction


Applying XML Encryption


Encrypting XML Data


Applying XML Digital Signatures


Signing XML Data


Coding Standards Fast Track


Applying XML Encryption


Applying XML Digital Signatures


Coding Audit Fast Track


Applying XML Encryption


Applying XML Digital Signatures


Frequently Asked Questions


Appendix A Understanding .NET Security


Introduction


Permissions


Principal


Authentication


Authorization


Security Policy


Type Safety


Code Access Security


.NET Code Access Security Model


Role-Based Security


Principals


Role-Based Security Checks


Security Policies


Creating a New Permission Set


Modifying the Code Group Structure


Remoting Security


Cryptography


Security Tools


Summary


Security Fast Track


Frequently Asked Questions


Appendix B Glossary of Web Application Security Threats


Index






Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing 1 Customer Reviews
  • Anonymous

    Posted October 3, 2004

    Great security ideas

    This is a great book with a lot of really good ideas on improving ASP.NET applications and ASP.NET security. The book is organized into ¿ideas¿ which can help secure an ASP.NET (or really any) application. Beneath each idea is a list of what type of threats the specific idea mitigates, followed by the actual ASP.NET implementation. One thing I really liked about this book is that it¿s presented in a way which helps illustrate how hackers could infiltrate your web applications. I found this to be very effective in driving home a security lesson. The book is organized into ten different sections on aspects of ASP.NET security, which range from user management (which includes how to handle user names, passwords, and the like) to developing applications with security in mind (which includes issues like cross-site scripting attacks and error logging). Many sites with user management features provide a ¿Secret Question¿, which is used in case you forget your password. The secret questions often include questions like ¿What is the name of your favorite pet?¿ or ¿What city were you born in?¿. The book goes on to show that the secret question concept goes against everything security experts have been saying by demonstrating how hackers can use brute-force attacks along with educated guesses to gain unauthorized access. This book even discussed connection string issues and encryption in config files, which is an issue I am currently struggling with. Code examples are provided for all of the ideas presented, which are generally quite clever in and of themselves. If you are serious about improving the security in your ASP.NET applications, then do yourself a favor and read this book. I think you will find it was time well-spent.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing 1 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)