Web Application Security Testing Cheat Sheet

From OWASP
Revision as of 07:06, 29 July 2012 by Raesene (Talk | contribs)

Jump to: navigation, search

Contents

DRAFT CHEAT SHEET - WORK IN PROGRESS

Introduction

This cheat sheet provides a checklist of tasks to be performed when performing a blackbox security test 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.

It is currently at a very early stage, but any feedback or offers of help will be appreciated.

The Checklist

Information Gathering

  • Manually explore the site
  • Spider/crawl for missed or hidden content
  • Check for files that expose content, such as robots.txt, sitemap.xml, .DS_Store
  • Check the caches of major search engines for publicly accessible sites
  • Perform Web Application Fingerprinting
  • Identify technologies used
  • Identify application entry points

Configuration Management

  • Check for commonly used application and administrative URLs
  • Check for old, backup and unreferenced files
  • Check HTTP methods supported and Cross Site Tracing (XST)
  • Test file extensions handling

Secure Transmission

  • Check SSL Version, Algorithms, Key length, Digital Cert. Validity
  • Check credentials only delivered over HTTPS
  • Check session tokens only delivered over HTTPS
  • Check if HTTP Strict Transport Security (HSTS) in use

Authentication

  • Test for user enumeration
  • Test for authentication bypass
  • Test for bruteforce protection
  • Test password quality rules
  • Test remember me functionality
  • Test password reset
  • Test CAPTCHA
  • Test multi factor authentication
  • Test logout and cache management

Session Management

  • Establish how session management is handled in the application (eg, tokens in cookies, token in URL)
  • Check session tokens for cookie flags (httpOnly and secure)
  • Check session cookie scope
  • Check session timeout duration
  • Test to see if users can have multiple simultaneous sessions
  • Test session cookies for randomness
  • Confirm that new session tokens are issued on login

Authorization

  • Test for path traversal
  • Test for bypassing authorization schema
  • Test for Privilege Escalation
  • Test for horizontal Access control problems (between two users at the same privilege level)

Data Validation

  • Test for Reflected Cross Site Scripting
  • Test for Stored Cross Site Scripting
  • Test for DOM based Cross Site Scripting
  • Test for Cross Site Flashing
  • Test for SQL Injection
  • Test for LDAP Injection
  • Test for ORM Injection
  • Test for XML Injection
  • Test for SSI Injection
  • Test for XPath Injection
  • Test for IMAP/SMTP Injection
  • Test for Code Injection
  • Test for Command Injection
  • Test for Buffer overflow
  • Test for incubated vulnerabilities
  • Test for HTTP Splitting/Smuggling
  • Compare client-side and server-side validation rules

Denial of Service

  • TBA

Business Logic

  • TBA

Risky Functionality - File Uploads

  • Confirm that all file uploads have Anti-Virus scanning in-place.
  • Confirm that uploaded files are not directly accessible within the web root.

Authors and primary contributors

Simon Bennetts

Related articles

OWASP Testing Guide

Mozilla Web Security Verification

OWASP Cheat Sheets Project Homepage

Developer Cheat Sheets (Builder)

Assessment Cheat Sheets (Breaker)

Mobile Cheat Sheets

OpSec Cheat Sheets (Defender)

Draft Cheat Sheets
{"cc_re__cc_re__cc_by_sa_3_0": [";oldid=133615\" title=\"Permanent link to this revision of the page\">Permanent link</a></li>\n\t\t\t<li id=\"t-info\"><a href=\"/index.php?title=Web_Application_Security_Testing_Cheat_Sheet&amp;action=info\">Page information</a></li>\n\t\t</ul>\n\t</div>\n</div>\n\n<!-- /TOOLBOX -->\n\n<!-- LANGUAGES -->\n\n<!-- /LANGUAGES -->\n\t\t\t</div>\n\t\t\t<!-- /panel -->\n\t\t</div>\n\t\t<!-- footer -->\n\t\t<div id=\"footer\" role=\"contentinfo\">\n\t\t\t\t\t\t\t<ul id=\"footer-info\">\n\t\t\t\t\t\t\t\t\t\t\t<li id=\"footer-info-copyright\">Content is available under <a class=\"external\" rel=\"nofollow\" href=\"http://creativecommons.org/licenses/by-sa/3.0/\">a Creative Commons 3.0 License</a> unless otherwise noted.</li>\n\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t<ul id=\"footer-places\">\n\t\t\t\t\t\t\t\t\t\t\t<li id=\"footer-places-privacy\"><a href=\"/index.php/OWASP:Privacy_policy\" title=\"OWASP:Privacy policy\">Privacy policy</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li id=\"footer-places-about\"><a href=\"/index.php/OWASP:About\" title=\"OWASP:About\">About OWASP</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li id=\"footer-places-disclaimer\"><a href=\"/index.php/OWASP:General_disclaimer\" title=\"OWASP:General disclaimer\">Disclaimers</a>", "\t\t\t\t\t\t\t\t\t\t<li id=\"footer-places-privacy\"><a href=\"/index.php/OWASP:Privacy_policy\" title=\"OWASP:Privacy policy\">Privacy policy</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li id=\"footer-places-about\"><a href=\"/index.php/OWASP:About\" title=\"OWASP:About\">About OWASP</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li id=\"footer-places-disclaimer\"><a href=\"/index.php/OWASP:General_disclaimer\" title=\"OWASP:General disclaimer\">Disclaimers</a></li>\n\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t\t<ul id=\"footer-icons\" class=\"noprint\">\n\t\t\t\t\t<li id=\"footer-copyrightico\">\n\t\t\t\t\t\t<a href=\"http://creativecommons.org/licenses/by-sa/3.0/\"><img src=\"https://www.owasp.org/images/f/fa/Somerights20.png\" alt=\"a Creative Commons 3.0 License\" width=\"88\" height=\"31\" /></a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li id=\"footer-poweredbyico\">\n\t\t\t\t\t\t<a href=\"//www.mediawiki.org/\"><img src=\"/skins/common/images/poweredby_mediawiki_88x31.png\" alt=\"Powered by MediaWiki\" width=\"88\" height=\"31\" /></a>\n\t\t\t\t\t\t<a href=\"http://www.rackspace.com/cloud/managed_cloud/\"><img src=\"/images/Powered_By_Rackspace_logo.png\" alt=\"Powered by Rackspace Managed Cloud\" height=\"30\" width"], "copyright__copyright__copyright": ["", "ic\n\n  \u2022 TBA\n\nRisky Functionality - File Uploads\n\n  \u2022 Confirm that all file uploads have Anti-Virus scanning in-place.\n  \u2022 Confirm that uploaded files are not directly accessible within the web root.\n\nAuthors and primary contributors\n\nSimon Bennetts\n\nRelated articles\n\nOWASP Testing Guide\n\nMozilla Web Security Verification\n\nOWASP Cheat Sheets Project Homepage\n\nDeveloper Cheat Sheets (Builder)\n\nAssessment Cheat Sheets (Breaker)\n\nMobile Cheat Sheets\n\nOpSec Cheat Sheets (Defender)\n\nDraft Cheat Sheets", "ic\n\n  \u2022 TBA\n\nRisky Functionality - File Uploads\n\n  \u2022 Confirm that all file uploads have Anti-Virus scanning in-place.\n  \u2022 Confirm that uploaded files are not directly accessible within the web root.\n\nAuthors and primary contributors\n\nSimon Bennetts\n\nRelated articles\n\nOWASP Testing Guide\n\nMozilla Web Security Verification\n\nOWASP Cheat Sheets Project Homepage\n\nDeveloper Cheat Sheets (Builder)\n\nAssessment Cheat Sheets (Breaker)\n\nMobile Cheat Sheets\n\nOpSec Cheat Sheets (Defender)\n\nDraft Cheat Sheets"]}