This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org

Difference between revisions of "Web Application Security Testing Cheat Sheet"

From OWASP
Jump to: navigation, search
Line 47: Line 47:
 
* Test for [[List_of_useful_HTTP_headers | security HTTP headers]] (e.g. CSP, X-Frame-Options, HSTS)
 
* Test for [[List_of_useful_HTTP_headers | security HTTP headers]] (e.g. CSP, X-Frame-Options, HSTS)
 
* Test for policies (e.g. Flash, Silverlight, robots)
 
* Test for policies (e.g. Flash, Silverlight, robots)
* Test for non-production data in live environment, and vice-versa
 
 
* Check for sensitive data in client-side code (e.g. API keys, credentials)
 
* Check for sensitive data in client-side code (e.g. API keys, credentials)
  
 
== Secure Transmission ==
 
== Secure Transmission ==
 +
''Protocols and Encryption''
 
* [[Testing_for_Weak_SSL/TLS_Ciphers,_Insufficient_Transport_Layer_Protection_(OTG-CRYPST-001) | Check SSL Version, Algorithms, Key length]]
 
* [[Testing_for_Weak_SSL/TLS_Ciphers,_Insufficient_Transport_Layer_Protection_(OTG-CRYPST-001) | Check SSL Version, Algorithms, Key length]]
 
* Check for Digital Certificate Validity (Duration, Signature and CN)
 
* Check for Digital Certificate Validity (Duration, Signature and CN)
Line 57: Line 57:
 
* Check session tokens only delivered over HTTPS
 
* Check session tokens only delivered over HTTPS
 
* [[Test_HTTP_Strict_Transport_Security_(OTG-CONFIG-009) | Check if HTTP Strict Transport Security (HSTS) in use]]
 
* [[Test_HTTP_Strict_Transport_Security_(OTG-CONFIG-009) | Check if HTTP Strict Transport Security (HSTS) in use]]
 +
* [[Test_Ability_to_forge_requests_(OTG-BUSLOGIC-002) | Test ability to forge requests]]
 +
* [[Test_Web_Messaging_(OTG-CLIENT-011)|Test Web Messaging (HTML5)]]
 +
* [[Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007)|Check CORS implementation (HTML5)]]
 +
 +
''Web Services and REST''
 +
* [[Web_Service_Security_Testing_Cheat_Sheet | Test for Web Service Issues]]
 +
* [[REST_Assessment_Cheat_Sheet | Test REST]]
  
 
== Authentication ==
 
== Authentication ==
Line 108: Line 115:
 
* [[Password_Storage_Cheat_Sheet#Use_a_cryptographically_strong_credential-specific_salt | Check for proper use of salting]]
 
* [[Password_Storage_Cheat_Sheet#Use_a_cryptographically_strong_credential-specific_salt | Check for proper use of salting]]
 
* [[Insecure_Randomness | Check for randomness functions]]
 
* [[Insecure_Randomness | Check for randomness functions]]
 
  
 
== Data Validation ==
 
== Data Validation ==
* [[Testing_for_Reflected_Cross_site_scripting_(OTG-INPVAL-001)|Test for Reflected Cross Site Scripting]]
+
''Injection''
* [[Testing_for_Stored_Cross_site_scripting_(OTG-INPVAL-002)|Test for Stored Cross Site Scripting]]
 
* [[Testing_for_DOM-based_Cross_site_scripting_(OTG-CLIENT-001)|Test for DOM based Cross Site Scripting]]
 
* Test for Cross Site Flashing
 
 
* Test for HTML Injection
 
* Test for HTML Injection
 
* [[Testing_for_SQL_Injection_(OTG-INPVAL-005)|Test for SQL Injection]]
 
* [[Testing_for_SQL_Injection_(OTG-INPVAL-005)|Test for SQL Injection]]
Line 128: Line 131:
 
* Test for Expression Language Injection
 
* Test for Expression Language Injection
 
* [[Testing_for_Command_Injection_(OTG-INPVAL-013)|Test for Command Injection]]
 
* [[Testing_for_Command_Injection_(OTG-INPVAL-013)|Test for Command Injection]]
 +
* Test for NoSQL injection
 +
 +
''Other''
 +
* [[Testing_for_Reflected_Cross_site_scripting_(OTG-INPVAL-001)|Test for Reflected Cross Site Scripting]]
 +
* [[Testing_for_Stored_Cross_site_scripting_(OTG-INPVAL-002)|Test for Stored Cross Site Scripting]]
 +
* [[Testing_for_DOM-based_Cross_site_scripting_(OTG-CLIENT-001)|Test for DOM based Cross Site Scripting]]
 +
* Test for Cross Site Flashing
 
* Test for Overflow ([[Testing_for_Stack_Overflow|Stack]], [[Testing_for_Heap_Overflow|Heap]] and Integer)
 
* Test for Overflow ([[Testing_for_Stack_Overflow|Stack]], [[Testing_for_Heap_Overflow|Heap]] and Integer)
 
* [[Testing_for_Format_String|Test for Format String]]
 
* [[Testing_for_Format_String|Test for Format String]]
Line 137: Line 147:
 
* [[Testing_for_Remote_File_Inclusion|Test for Remote File Inclusion]]
 
* [[Testing_for_Remote_File_Inclusion|Test for Remote File Inclusion]]
 
* Compare client-side and server-side validation rules
 
* Compare client-side and server-side validation rules
* Test for NoSQL injection
 
 
* Test for HTTP parameter pollution
 
* Test for HTTP parameter pollution
 
* Test for auto-binding
 
* Test for auto-binding
 
* Test for Mass Assignment
 
* Test for Mass Assignment
 
* Test for NULL/Invalid Session Cookie
 
* Test for NULL/Invalid Session Cookie
 +
* [[Test_integrity_checks_(OTG-BUSLOGIC-003) | Test for integrity of data]]
 +
* [[Testing_for_the_Circumvention_of_Work_Flows_(OTG-BUSLOGIC-009) | Test for the Circumvention of Work Flows]]
 +
* [[Test_defenses_against_application_mis-use_(OTG-BUSLOGIC-011) | Test Defenses Against Application Mis-use]]
 +
* [[Test_Local_Storage_(OTG-CLIENT-012)|Test for Web Storage SQL injection (HTML5)]]
 +
* [[HTML5_Security_Cheat_Sheet#Offline_Applications | Check Offline Web Application]]
  
 
== Denial of Service ==
 
== Denial of Service ==
Line 148: Line 162:
 
* Test for HTTP protocol DoS
 
* Test for HTTP protocol DoS
 
* Test for SQL wildcard DoS
 
* Test for SQL wildcard DoS
 
== Business Logic ==
 
* [[Test_business_logic_data_validation_(OTG-BUSLOGIC-001) | Test business logic data validation]]
 
* [[Test_Ability_to_forge_requests_(OTG-BUSLOGIC-002) | Test ability to forge requests]]
 
* Test for feature misuse
 
* Test for lack of non-repudiation
 
* Test for trust relationships
 
* [[Test_integrity_checks_(OTG-BUSLOGIC-003) | Test for integrity of data]]
 
* Test segregation of duties
 
* [[Test_for_Process_Timing_(OTG-BUSLOGIC-007) | Test for Process Timing]]
 
* [[Test_number_of_times_a_function_can_be_used_limits_(OTG-BUSLOGIC-007) | Test Number of Times a Function Can be Used Limits]]
 
* [[Testing_for_the_Circumvention_of_Work_Flows_(OTG-BUSLOGIC-009) | Test for the Circumvention of Work Flows]]
 
* [[Test_defenses_against_application_mis-use_(OTG-BUSLOGIC-011) | Test Defenses Against Application Mis-use]]
 
* [[Test_Upload_of_Unexpected_File_Types_(OTG-BUSLOGIC-015) | Test Upload of Unexpected File Types]]
 
* [[Test_Upload_of_Malicious_Files_(OTG-BUSLOGIC-016) | Test upload of malicious files]]
 
 
  
 
== Specific Risky Functionality ==
 
== Specific Risky Functionality ==
Line 171: Line 169:
 
* Test that file contents match the defined file type
 
* Test that file contents match the defined file type
 
* [[Test_Upload_of_Malicious_Files_(OTG-BUSLOGIC-009)|Test that all file uploads have Anti-Virus scanning in-place.]]
 
* [[Test_Upload_of_Malicious_Files_(OTG-BUSLOGIC-009)|Test that all file uploads have Anti-Virus scanning in-place.]]
* Test that unsafe filenames are sanitised
+
* [[Test_Upload_of_Malicious_Files_(OTG-BUSLOGIC-016) | Test upload of malicious files]]
 +
* Test that unsafe filenames are sanitized
 
* Test that uploaded files are not directly accessible within the web root
 
* Test that uploaded files are not directly accessible within the web root
 
* Test that uploaded files are not served on the same hostname/port
 
* Test that uploaded files are not served on the same hostname/port
Line 180: Line 179:
 
* Test for known vulnerabilities and configuration issues on Web Server and Web Application
 
* Test for known vulnerabilities and configuration issues on Web Server and Web Application
 
* Test for default or guessable password
 
* Test for default or guessable password
* Test for non-production data in live environment, and vice-versa
 
 
* [[Injection_Flaws | Test for Injection vulnerabilities ]]
 
* [[Injection_Flaws | Test for Injection vulnerabilities ]]
 
* [[Testing_for_Buffer_Overflow_(OTG-INPVAL-014) | Test for Buffer Overflows]]
 
* [[Testing_for_Buffer_Overflow_(OTG-INPVAL-014) | Test for Buffer Overflows]]
Line 189: Line 187:
 
* Test for Authentication and Authorization issues
 
* Test for Authentication and Authorization issues
 
* [[Testing_for_CSRF_(OTG-SESS-005)|Test for CSRF]]
 
* [[Testing_for_CSRF_(OTG-SESS-005)|Test for CSRF]]
 
== Web Service Testing ==
 
* [[Web_Service_Security_Testing_Cheat_Sheet | Test for Web Service Issues]]
 
* [[REST_Assessment_Cheat_Sheet | Test REST]]
 
 
== HTML 5==
 
* [[Test_Web_Messaging_(OTG-CLIENT-011)|Test Web Messaging]]
 
* [[Test_Local_Storage_(OTG-CLIENT-012)|Test for Web Storage SQL injection]]
 
* [[Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007)|Check CORS implementation]]
 
* [[HTML5_Security_Cheat_Sheet#Offline_Applications | Check Offline Web Application]]
 
  
 
== Error Handling==
 
== Error Handling==
 
* [[Testing_for_Error_Code_(OTG-ERR-001)|Check for Error Codes]]
 
* [[Testing_for_Error_Code_(OTG-ERR-001)|Check for Error Codes]]
 
* [[Testing_for_Stack_Traces_(OTG-ERR-002)|Check for Stack Traces]]
 
* [[Testing_for_Stack_Traces_(OTG-ERR-002)|Check for Stack Traces]]
 +
 +
== Other==
 +
* [[Test_for_Process_Timing_(OTG-BUSLOGIC-007) | Test for Process Timing]]
 +
* [[Test_number_of_times_a_function_can_be_used_limits_(OTG-BUSLOGIC-007) | Test Number of Times a Function Can be Used Limits]]
  
 
= Appendices =
 
= Appendices =
 
  
 
== Other Formats ==
 
== Other Formats ==

Revision as of 19:51, 6 December 2015

Introduction

This cheat sheet provides a checklist of tasks to be performed during blackbox security testing of a web application.

Purpose

This checklist is intended to be used as an aide memoire for experienced pentesters and should be used in conjunction with the OWASP Testing Guide. It will be updated as the Testing Guide v4 is progressed.

The intention is that this guide will be available as an XML document, with scripts that convert it into formats such as pdf, Media Wiki markup, HTML etc.

This will allow it to be consumed within security tools as well as being available in a format suitable for printing.

All feedback or offers of help will be appreciated - and if you have specific changes you think should be made, please log in and make suggestions.

The Checklist

Information Gathering

Rendered Site Review

Development Review

Hosting and Platform Review

  • Identify web services
  • Identify co-hosted and related applications
  • Identify all hostnames and ports
  • Identify third-party hosted content

Configuration Management

Secure Transmission

Protocols and Encryption

Web Services and REST

Authentication

Application Password Functionality

  • Test password quality rules
  • Test remember me functionality
  • Test password reset and/or recovery
  • Test password change process
  • Test CAPTCHA
  • Test multi factor authentication
  • Test for logout functionality presence
  • Test for default logins
  • Test for out-of channel notification of account lockouts and successful password changes
  • Test for consistent authentication across applications with shared authentication schema / SSO and alternative channels
  • Test for Weak security question/answer

Additional Authentication Functionality

Session Management

Authorization

Cryptography

Data Validation

Injection

Other

Denial of Service

Specific Risky Functionality

File Uploads

Risky Functionality

Payments

Error Handling

Other

Appendices

Other Formats

  • DradisPro template format on github
  • Asana template on Templana (thanks to Bastien Siebman)

Authors and contributors

Simon Bennetts
Rory McCune
Colin Watson
Simone Onofri
Amro AlOlaqi

All above are authors of the Testing Guide v3

Ryan Dewhurst
Frank Catucci Vin Miller


Related articles

Other Cheatsheets

OWASP Cheat Sheets Project Homepage