☼
⌃
☰

Web Application Testing Methodology

Table of Contents

A structured approach to testing web applications, from initial reconnaissance through to exploitation. Follows OWASP principles with a focus on CTF and penetration testing contexts.

Related: OWASP OWASP API Security Top 10 Penetration Testing Burp Suite

1. Reconnaissance

Gather information about the target before interacting with it.

Passive

  • WHOIS, DNS records, certificate transparency logs
  • Shodan, DNSDumpster for exposed infrastructure
  • Google dorking for exposed files and admin panels

Active

SHELL
# Technology fingerprinting
whatweb http://$IP
SHELL
# Check robots.txt and sitemap
curl http://$IP/robots.txt
curl http://$IP/sitemap.xml

2. Enumeration

Map the attack surface before attempting exploitation.

Content Discovery

SHELL
feroxbuster -u http://$IP \
  -w /usr/share/wordlists/seclists/Discovery/Web-Content/directory-list-2.3-medium.txt \
  -x php,html,txt,bak -o ferox/initial.txt

Subdomain Enumeration

SHELL
ffuf -u http://FUZZ.$DOMAIN \
  -w /usr/share/wordlists/seclists/Discovery/DNS/subdomains-top1million-5000.txt

Parameter Discovery

SHELL
ffuf -u http://$IP/page?FUZZ=value \
  -w /usr/share/wordlists/seclists/Discovery/Web-Content/burp-parameter-names.txt

Manual Browsing

Intercept all traffic through Burp Suite while manually browsing the application. Map all endpoints, parameters, and authentication mechanisms before testing anything.

3. Vulnerability Assessment

Systematically check for common vulnerabilities. Work through the OWASP Top 10 as a checklist.

Injection

Broken Authentication

Access Control

  • IDOR — manipulate object references in requests
  • Horizontal and vertical privilege escalation
  • Authorisation bypass via parameter tampering

Cross-Site Attacks

  • XSS — reflected, stored, DOM-based
  • CSRF — check for missing or bypassable tokens

Server-Side

  • SSRF — look for URL parameters fetching remote resources
  • File Inclusion — LFI/RFI via path parameters
  • Path Traversal — directory traversal in file parameters

4. Exploitation

Confirm and exploit discovered vulnerabilities. Use Burp Suite Repeater for manual exploitation and document every step.

Key tools:

  • Burp Suite — interception, repeater, intruder
  • SQLMap for confirmed SQL injection
  • MSFVenom for payload generation if RCE is achieved

5. Post Exploitation

If code execution is achieved on the web server:

  • Check web server user privileges (id, whoami)
  • Look for database credentials in config files
  • Check for internal network access from the web server
  • Attempt privilege escalation if running as a low-privilege user

See Penetration Testing Methodology for the broader post-exploitation flow.

Tips

  • Always map the application fully before exploiting — rushing to SQLi on the first input field misses the broader attack surface
  • Check source code comments and JavaScript files for hidden endpoints and API keys
  • Test functionality as different user roles if accounts are available — IDOR and access control bugs often only appear when comparing privilege levels
  • Note every parameter in every request — the interesting one is often not the obvious one
  • On CTFs, check for version numbers in headers and error pages — they often point directly to a known CVE