Web Application Security Testing Cheat Sheet

Table of Contents:-

1 Introduction
2 Purpose
3 The Checklist
3.1 Information Gathering
3.2 Configuration Management
3.3 Secure Transmission
3.4 Authentication
3.5 Session Management
3.6 Authorization
3.7 Cryptography
3.8 Data Validation
3.9 Denial of Service
3.10 Specific Risky Functionality
3.11 Error Handling

Introduction

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


The Checklist

Information Gathering

  • Spider/crawl for missed or hidden content
  • Check the Webserver Metafiles for information leakage files that expose content, such as robots.txt, sitemap.xml, .DS_Store
  • Check the caches of major search engines for publicly accessible sites
  • Check for differences in content based on User Agent (eg, Mobile sites, access as a Search engine Crawler) Check The Webpage Comments and Metadata for Information Leakage
  • Check The Web Application Framework
  • Perform Web Application Fingerprinting
  • Identify technologies used
  • Identify user roles
  • Identify application entry points
  • Identify clien-side code
  • Identify multiple versions/channels (e.g. web, mobile web, mobile app)

In case you have not done OSCP,What are you Doing?Avail 90% Discount with coupon "NINETYOFF" and enroll for OSCP Prep course "Practical Hands on Offensive Penetration Testing-Begginer to Advance" and start practicing with 30 Days Money Back Guarantee

Click Here for availing Discount and Enroll in the course

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

  • 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
  • Test RIA cross domain policy
  • Test for security HTTP headers (e.g. CSP, X­Frame­Options, HSTS)
  • Test for policies (e.g. Flash, Silverlight, robots)
  • Check for sensitive data in client­side code (e.g. API keys, credentials)

Secure Transmission

Protocols and Encryption

  • Check SSL Version, Algorithms, Key length
  • Check for Digital Certificate Validity (Duration, Signature and CN)
  • Check credentials only delivered over HTTPS
  • Check that the login form is delivered over HTTPS
  • Check session tokens only delivered over HTTPS
  • Check if HTTP Strict Transport Security (HSTS) in use
  • Test ability to forge requests
  • Test Web Messaging (HTML5)
  • Check CORS implementation (HTML5)

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
  • Test for user enumeration
  • Test for authentication bypass
  • Test for brute force protection
  • Test for Credentials Transported over an Encrypted Channel
  • Test for cache management on HTTP (eg Pragma, Expires, Max­age) Test for user­accessible authentication history

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 (path and domain)
  • Check session cookie duration (expires and max­age)
  • Check session termination after a maximum lifetime
  • Check session termination after relative timeout
  • Check session termination after logout
  • Test to see if users can have multiple simultaneous sessions
  • Test session cookies for randomness
  • Confirm that new session tokens are issued on login, role change and logout
  • Test for consistent session management across applications with shared session management Test for session puzzling
  • Test for CSRF and clickjacking

Authorization

  • Test for path traversal
  • Test for vertical Access control problems (a.k.a. Privilege Escalation)
  • Test for horizontal Access control problems (between two users at the same privilege level)
  • Test for missing authorisation
  • Test for Insecure Direct Object References

Data Validation

  • Test for HTML Injection
  • Test for SQL Injection
  • Test for LDAP Injection
  • Test for ORM Injection
  • Test for XML Injection
  • Test for XXE Injection
  • Test for SSI Injection
  • Test for XPath Injection
  • Test for XQuery Injection
  • Test for IMAP/SMTP Injection
  • Test for Code Injection
  • Test for Expression Language Injection
  • Test for Command Injection
  • Test for NoSQL injection
  • Test for Reflected Cross Site Scripting
  • Test for Stored Cross Site Scriptin
  • Test for DOM based Cross Site Scripting
  • Test for Cross Site Flashing
  • Test for Overflow (Stack, Heap and Integer)
  • Test for Format String
  • Test for incubated vulnerabilities
  • Test for HTTP Splitting/Smuggling
  • Test for HTTP Verb Tampering Test for Open Redirection
  • Test for Local File Inclusion
  • Test for Remote File Inclusion
  • Compare client­side and server­side validation rules
  • Test for HTTP parameter pollution
  • Test for NULL/Invalid Session Cookie
  • Test Defenses Against Application Mis­use
  • Test That a Function or Feature Cannot Be Used Outside Of Limits
  • Test for Web Storage SQL injection (HTML5)
  • Check Offline Web Application
  • All OWASP Top 10 Vulns

Specific Risky Functionality

  • Test that acceptable file types are whitelisted and non­whitelisted types are rejected
  • Test that file size limits, upload frequency and total file counts are defined and are enforced
  • Test that file contents match the defined file type
  • Test that all file uploads have Anti­Virus scanning in­place.
  • 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 served on the same hostname/port
  • Test that files and other media are integrated with the authentication and authorisation schemas

Payments
  • Test for known vulnerabilities and configuration issues on Web Server and Web Application Test for default or guessable password
  • Test for Injection vulnerabilities
  • Test for Buffer Overflows
  • Test for Insecure Cryptographic Storage
  • Test for Insufficient Transport Layer Protection
  • Test for Improper Error Handling
  • Test for all vulnerabilities with a CVSS v2 score > 4.0
  • Test for Authentication and Authorization issues Test for CSRF