OWASP Testing Guide v4 Table of Contents

Revision as of 02:26, 13 June 2013 by Andrew Muller (talk | contribs)

Jump to: navigation, search

This is the DRAFT of the table of content of the New Testing Guide v4.

You can download the stable version v3 here

Back to the OWASP Testing Guide Project: http://www.owasp.org/index.php/OWASP_Testing_Project

Updated: 15th February 2013

Contributors List

The following is a DRAFT of the Toc based on the feedback already received.

Table of Contents

Foreword by Eoin Keary

[To review--> Eoin Keary -> Done!!]

1. Frontispiece

[To review--> Mat]

1.1 About the OWASP Testing Guide Project [To review--> Mat]

1.2 About The Open Web Application Security Project [To review--> ]

2. Introduction

2.1 The OWASP Testing Project

2.2 Principles of Testing

2.3 Testing Techniques Explained

2.4 Security requirements test derivation,functional and non functional test requirements, and test cases through use and misuse cases

2.5 Security test data analysis and reporting: root cause identification and business/role case test data reporting

3. The OWASP Testing Framework

3.1. Overview

3.2. Phase 1: Before Development Begins

3.3. Phase 2: During Definition and Design

3.4. Phase 3: During Development

3.5. Phase 4: During Deployment

3.6. Phase 5: Maintenance and Operations

3.7. A Typical SDLC Testing Workflow

4. Web Application Penetration Testing

4.1 Introduction and Objectives [To review--> Mat]

4.1.1 Testing Checklist [To review at the end of brainstorming --> Mat]

4.2 Information Gathering

4.2.1 Conduct Search Engine Discovery and Reconnaissance for Information Leakage (OTG-INFO-001) formerly "Search Engine Discovery/Reconnaissance (OWASP-IG-002)"

4.2.2 Fingerprint Web Server (OTG-INFO-002) formerly "Testing for Web Application Fingerprint (OWASP-IG-004)"

4.2.3 Review Webserver Metafiles for Information Leakage (OTG-INFO-003) formerly "Spiders, Robots and Crawlers (OWASP-IG-001)"

4.2.4 Enumerate Applications on Webserver (OTG-INFO-004) formerly "Application Discovery (OWASP-IG-005)"

4.2.5 Review Webpage Comments and Metadata for Information Leakage (OTG-INFO-005) formerly "Review webpage comments and metadata(OWASP-IG-007)"

4.2.6 Identify application entry points (OTG-INFO-006) formerly "Identify application entry points (OWASP-IG-003)"

4.2.7 Identify application exit/handover points (OTG-INFO-007) formerly "Identify application exit/handover points (OWASP-IG-008)"

4.2.8 Map execution paths through application (OTG-INFO-008) formerly "Map execution paths through application (OWASP-IG-009)"

4.2.9 Fingerprint Web Application Framework (OTG-INFO-009) formerly "Testing for Web Application Fingerprint (OWASP-IG-010)"

4.2.10 Fingerprint Web Application (OTG-INFO-010) formerly "Testing for Web Application Fingerprint (OWASP-IG-010)"

4.2.11 Map Network and Application Architecture (OTG-INFO-011) formerly "Testing for Infrastructure Configuration Management Testing weakness (OWASP-CM-001)"

4.2.9 Analysis of Error Codes (OWASP-IG-006)

4.3 Configuration and Deploy Management Testing

4.3.1 Test Network/Infrastructure Configuration (OTG-CONFIG-001) formerly "Testing for Infrastructure Configuration Management Testing weakness (OWASP-CM-001)"

4.3.2 Test Application Platform Configuration (OTG-CONFIG-002 formerly "Testing for Application Configuration Management weakness (OWASP-CM-002)"

4.3.3 Test File Extensions Handling for Sensitive Information (OTG-CONFIG-003) formerly "Testing for File Extensions Handling (OWASP-CM-003)"

4.3.4 Review Old, Backup and Unreferenced Files for Sensitive Information (OTG-CONFIG-004) formerly "Old, Backup and Unreferenced Files (OWASP-CM-004)"

4.3.5 Enumerate Infrastructure and Application Admin Interfaces (OTG-CONFIG-005) formerly "Infrastructure and Application Admin Interfaces (OWASP-CM-005)"

4.3.6 Test HTTP Methods (OTG-CONFIG-006) formerly "Testing for Bad HTTP Methods (OWASP-CM-006)"

4.3.7 Testing for Database credentials/connection strings available (OTG-CONFIG-007) formerly "Testing for Database credentials/connection strings available (OWASP-CM-007)"

4.3.8 Test Content Security Policy (OTG-CONFIG-008) formerly "Testing for Content Security Policy weakness (OWASP-CM-008)"

4.3.9 Test HTTP Strict Transport Security (OTG-CONFIG-009) formerly "Testing for Missing HSTS header (OWASP-CM-009)"

4.3.10 Test Frame Options (OTG-CONFIG-010)

4.3.11 Test RIA cross domain policy (OTG-CONFIG-011) formerly "Testing for RIA policy files weakness (OWASP-CM-010)"

4.3.12 Test time synchronisation (OTG-CONFIG-012) formerly "Incorrect time"

4.4 Identity Management Testing

4.4.1 Test Role Definitions (OTG-IDENT-001) New

4.4.2 Test User Registration Process (OTG-IDENT-002) New

4.4.3 Test Account Provisioning Process (OTG-IDENT-003) New

4.4.4 Testing for Account Enumeration and Guessable User Account (OTG-IDENT-004) formerly "Testing for Account Enumeration and Guessable User Account (OWASP-AT-002)"

4.4.5 Testing for Weak or unenforced username policy (OTG-IDENT-005) formerly "Testing for Weak or unenforced username policy (OWASP-AT-009)

4.4.6 Test Permissions of Guest/Training Accounts (OTG-IDENT-006) New

4.4.7 Test Account Suspension/Resumption Process (OTG-IDENT-007) New

4.4.8 Test User Deregistration Process (OTG-IDENT-008) New

4.4.9 Test Account Deregistration Process (OTG-IDENT-009) New

4.4 Authentication Testing

4.4.1 Testing for Credentials Transported over an Encrypted Channel (OTG-AUTHN-001) formerly "Testing for Credentials Transported over an Encrypted Channel (OWASP-AT-001)"

4.4.2 Testing for default credentials (OTG-AUTHN-002) formerly "Testing for default credentials (OWASP-AT-003)"

4.4.3 Testing for Weak lock out mechanism (OTG-AUTHN-003) formerly "Testing for Weak lock out mechanism (OWASP-AT-004)"

4.4.4 Testing for bypassing authentication schema (OTG-AUTHN-004) formerly "Testing for bypassing authentication schema (OWASP-AT-005)"

4.4.5 Test remember password functionality (OTG-AUTHN-005) formerly "Testing for vulnerable remember password functionality (OWASP-AT-006)"

4.4.6 Testing for Browser cache weakness (OTG-AUTHN-006) formerly "Testing for Browser cache weakness (OWASP-AT-007)"

4.4.7 Testing for Weak password policy (OTG-AUTHN-007) formerly "Testing for Weak password policy (OWASP-AT-008)"

4.4.8 Testing for Weak security question/answer (OTG-AUTHN-008) New! - Robert Winkel

4.4.9 Testing for weak password change or reset functionalities (OTG-AUTHN-009) formerly "Testing for weak password change or reset functionalities (OWASP-AT-011)"

4.4.10 Testing for Weaker authentication in alternative channel (e.g. mobile app, IVR, help desk) (OTG-AUTHN-010)

4.6 Authorization Testing

4.6.1 Testing Directory traversal/file include (OWASP-AZ-001) [Juan Galiana]

4.6.2 Testing for bypassing authorization schema (OWASP-AZ-002)

4.6.3 Testing for Privilege Escalation (OWASP-AZ-003) [Irene Abezgauz]

4.6.4 Testing for Insecure Direct Object References (OWASP-AZ-004) [Irene Abezgauz]

4.6.5 Testing for Failure to Restrict access to authorized resource (OWASP-AZ-005) [New!]

> Server component has excessive privileges (e.g. indexing service, reporting interface, file generator)[New!]
> Lack of enforcement of application entry points (including exposure of objects)[New!]

4.4.10 Testing for failure to restrict access to authenticated resource (OWASP-AT-010) [New! - This seems better suited to the Authorization test cases (Andrew Muller)]

4.5 Session Management Testing

4.5.1 Testing for Bypassing Session Management Schema (OWASP-SM-001) [Amro AlOlaqi]

4.5.2 Testing for Cookies attributes (Cookies are set not ‘HTTP Only’, ‘Secure’, and no time validity) (OWASP-SM-002)

4.5.3 Testing for Session Fixation (OWASP-SM-003) [Amro AlOlaqi]

4.5.4 Testing for Exposed Session Variables (OWASP-SM-004) [Amro AlOlaqi]

4.5.5 Testing for Cross Site Request Forgery (CSRF) (OWASP-SM-005) [Amro AlOlaqi]

> Weak Session Token (MAT NOTE included in 4.5.1)

4.5.6 Testing for Session token not restricted properly (such as domain or path not set properly) (OWASP-SM-006) [New! - Abian Blome]

> Session passed over http (NOTE: included in SM-004) [New!]

4.5.7 Testing for logout functionality (OWASP-SM-007)

>Session token not removed on server after logout [New!: NOTE included in the above test]

> Logout function not properly implemented (NOTE:same above)

> Persistent session token [New! NOTE: this is not a vulnerability if session time out is correctly performed]

4.5.8 Testing for Session puzzling (OWASP-SM-008) [New! - Abian Blome]

> Missing user-viewable log of authentication events [NOTE: needs more details: which test perform?]

> Establishment of multiple sessions with same credentials [New! - Andrew Muller]

4.7 Business Logic Testing (OWASP-BL-001) [To review--> David Fern] Business Logic

Business logic data validation[New!] NOTE MAT: to discuss this section
Ability to forge requests[New!]
Lack of integrity checks (e.g. overwriting updates) [New!]
Lack of tamper evidence[New!]
Use of untrusted time source[New!]
Lack of limits to excessive rate (speed) of use[New!]
Lack of limits to size of request[New!]
Lack of limit to number of times a function can be used[New!]
Bypass of correct sequence[New!]
Missing user-viewable log of activity[New!]
Self-hosted payment cardholder data processing[New!]
Lack of security incident reporting information[New!]
Defenses against application mis-use[New!]

4.4.12 Testing for CAPTCHA (OWASP-AT-012) [Note: Andrew Muller - CAPTCHA's objective is not authentication but to test humanness. This could be moved to Business Logic or the now deleted Denial of Service section]

4.8 Data Validation Testing

4.8.1 Testing for Reflected Cross Site Scripting (OWASP-DV-001) [Davide Danelon]

4.8.2 Testing for Stored Cross Site Scripting (OWASP-DV-002) [Davide Danelon]

4.8.3 Testing for HTTP Verb Tampering [Brad Causey]

4.8.4 Testing for HTTP Parameter pollution [Luca Carettoni, Stefano Di Paola, Brad Causey]

4.8.5 Testing for Unvalidated Redirects and Forwards [Brad Causey]

4.8.5 Testing for SQL Injection (OWASP-DV-005) [Ismael Gonçalves](Ismael NOTE: ready to be reviewed) Oracle Testing MySQL Testing [Ismael Gonçalves] SQL Server Testing MS Access Testing Testing for NoSQL injection [New!] Testing PostgreSQL (from OWASP BSP)

4.8.6 Testing for LDAP Injection (OWASP-DV-006)

4.8.7 Testing for ORM Injection (OWASP-DV-007)

4.8.8 Testing for XML Injection (OWASP-DV-008)

4.8.9 Testing for SSI Injection (OWASP-DV-009)

4.8.10 Testing for XPath Injection (OWASP-DV-010)

4.8.11 IMAP/SMTP Injection (OWASP-DV-011)

4.8.12 Testing for Code Injection (OWASP-DV-012)

4.8.13 Testing for Command Injection (OWASP-DV-013) [Juan Galiana]

4.8.14 Testing for Buffer overflow (OWASP-DV-014) Testing for Heap overflow Testing for Stack overflow Testing for Format string

4.8.15 Testing for incubated vulnerabilities (OWASP-DV-015)

4.8.16 Testing for HTTP Splitting/Smuggling (OWASP-DV-016) [Juan Galiana]

> Regular expression DoS[New!] note: to understand better

> XML DoS [New! - Andrew Muller]

Data Encryption (New!)

4.9.1 Testing for Insecure encryption usage (OWASP-EN-001)

4.9.2 Testing for Weak SSL/TSL Ciphers, Insufficient Transport Layer Protection (OWASP-EN-002) [Davide Danelon]

4.9.3 Testing for Padding Oracle (OWASP-EN-003) [Giorgio Fedon]

> [[Testing for Cacheable HTTPS Response | x.x.3 Testing for Cacheable HTTPS Response
Cache directives insecure
> Testing for Insecure Cryptographic Storage [put in x.x.1]
[[Testing for Sensitive information sent via unencrypted channels | x.x.4

4.10 Web Service Testing [Tom Eston]

4.10.1 Scoping a Web Service Test (OWASP-WS-001)

4.10.2 WS Information Gathering (OWASP-WS-002)

4.10.3 WS Authentication Testing (OWASP-WS-003)

4.10.4 WS Management Interface Testing (OWASP-WS-004)

4.10.5 Weak XML Structure Testing (OWASP-WS-005)

4.10.6 XML Content-Level Testing (OWASP-WS-006)

4.10.7 WS HTTP GET Parameters/REST Testing (OWASP-WS-007)

4.10.8 WS Naughty SOAP Attachment Testing (OWASP-WS-008)

4.10.9 WS Replay/MiTM Testing (OWASP-WS-009)

4.10.10 WS BEPL Testing (OWASP-WS-010)

4.11 Client Side Testing [New!]

4.11.1 Testing for DOM based Cross Site Scripting (OWASP-CS-001) [Stefano Di Paola]

4.11.2 Testing for HTML5 (OWASP CS-002) [Juan Galiana]

4.11.3 Testing for Cross Site Flashing (OWASP-CS-003)

4.11.4 Testing for Clickjacking (OWASP-CS-004) [Davide Danelon]

5. Writing Reports: value the real risk

5.1 How to value the real risk [To review--> Amro AlOlaqi]

5.2 How to write the report of the testing [To review--> Amro AlOlaqi]

Appendix A: Testing Tools

  • Black Box Testing Tools [To review--> Amro AlOlaqi]

Appendix B: Suggested Reading

  • Whitepapers [To review--> David Fern]
  • Books [To review--> David Fern]
  • Useful Websites [To review--> David Fern]

Appendix C: Fuzz Vectors

  • Fuzz Categories [To review--> Amro AlOlaqi]

Appendix D: Encoded Injection

[To review--> Amro AlOlaqi]