Penetration Testing. Vulnerability Assessment. Security Auditing.
Complete reference guide for web application penetration testing. From enumeration and fingerprinting to injection testing and vulnerability discovery. Essential tools and techniques for ethical security assessment.
#π― Web Application Security Testing
Comprehensive toolkit for identifying vulnerabilities, misconfigurations, and security weaknesses in web applications through systematic enumeration and targeted exploitation techniques.
#β οΈ Legal and Ethical Guidelines
- Authorization Required: Only test applications you own or have explicit written permission to assess
- Scope Boundaries: Stay within defined testing scope and avoid impacting production systems
- Data Protection: Never access, modify, or exfiltrate sensitive data during testing
- Responsible Disclosure: Report findings through proper channels and allow time for remediation
- Documentation: Maintain detailed logs of all testing activities for compliance and reporting
#π Testing Methodology
Follow this systematic approach for comprehensive web application security assessment:
#Web App Enumeration
Fingerprint technologies, frameworks, and plugins
β’ Use
-v for verbose outputβ’ Try
--aggression 3 for more thorough detectionβ’ Use
--log-brief for clean output
β’
-m "all,-backup" - exclude backup file detectionβ’
--scope domain - limit to specific domainβ’
-v 2 - increase verbosity
#Authentication / Login Tests
Brute force attacks and credential testing
β’
http-get for basic authβ’
-L userlist.txt for multiple usersβ’
-t 10 to control thread countβ’
-f to stop after first valid credential
β’
-d 2 - spider depthβ’
-m 5 - minimum word lengthβ’
-e - include email addressesβ’
--lowercase - convert to lowercase
#Injection Testing
SQL injection and XSS vulnerability detection
β’
--dbs - enumerate databasesβ’
--tables -D database_name - enumerate tablesβ’
--dump -T table_name -D database_name - dump dataβ’
--risk 3 --level 5 - aggressive testing
β’
--crawl - automatically crawl for parametersβ’
--blind - test for blind XSSβ’
--fuzzer - use built-in fuzzerβ’ Test forms with
--data "param=value"
#File & Directory Discovery
Enumerate hidden files, directories, and endpoints
β’
-x php,html,txt - specify extensionsβ’
-t 50 - increase threadsβ’
-d 2 - recursion depthβ’
--filter-status 404 - filter responses
#Config & Server Checks
Server configuration and security analysis
β’
-Plugins auth - authentication bypassesβ’
-Plugins paths - interesting pathsβ’
-o report.txt - save outputβ’
-Format txt - specify output format
β’
-directory /webdav - specify WebDAV pathβ’
-sendbd auto - auto detect file uploadβ’ Look for PUT/MOVE/COPY methods in HTTP responses
#Network / Protocol Testing
Network-level analysis and protocol testing
β’
http-methods - enumerate HTTP methodsβ’
http-robots.txt - check robots.txtβ’
http-title - extract page titlesβ’
http-backup-finder - find backup files
β’
-U - check for vulnerabilities onlyβ’
-p - check protocols onlyβ’
-S - check server defaultsβ’
--htmlfile report.html - HTML output
#Posture Auditing
System hardening and configuration assessment
β’
--check-all - run all available testsβ’
--report-file /tmp/report.dat - custom report locationβ’
--verbose - detailed outputβ’ Review suggestions in
/var/log/lynis-report.dat
#Spidering & Advanced Scanning
Comprehensive application crawling and analysis
β’
--scope-include-pattern - limit scopeβ’
--report-save-path=/tmp/report - save reportβ’
--checks=xss,sql_injection - specific checksβ’
--browser-cluster-pool-size=2 - performance tuning
#π Example Target Formats
© 2025 theLAB Wiki | Web App Penetration Testing Cheat Sheet | For authorized security testing only