
Web Application Security
Notes on testing web applications, from SQL injection, XSS and CSRF to authentication bypass, SSRF, JWT and OAuth flaws, information disclosure and business logic bugs.
Dec 11, 2025
Updated Nov 22, 2026
3 min read
Overview
Most external engagements end up on a web application, so this is where a lot of the testing time goes. The notes below cover the OWASP Top 10 classes and the other bugs that keep turning up in real applications.
Injection
- SQL injection: query manipulation for data extraction and, on some databases, command execution
- NoSQL injection: operator injection and JavaScript evaluation against MongoDB and similar stores
- Cross-site scripting (XSS): script injection that runs in another user's browser
- XML external entity (XXE) injection: file reads and SSRF through XML parsers
Authentication and authorization
- Authentication bypass: getting past login and access checks
- Cross-site request forgery (CSRF): making the victim's browser send authenticated requests
- JWT attacks: algorithm confusion, weak secrets and header injection in JSON Web Tokens
- OAuth misconfigurations: redirect URI, state and token handling flaws
Deserialization and logic flaws
- Insecure deserialization: object deserialization that ends in code execution
- Business logic flaws: abusing the application's own workflow and rules
API security
- API security: REST and GraphQL testing, broken object level authorization, API authentication
Server-side attacks
- Server-side request forgery (SSRF): making the server send requests for you
- Host header poisoning: cache poisoning and password reset link hijacking through the Host header
- Path traversal: reading files outside the intended directory
- Open redirect: redirects to attacker-controlled URLs, and what they chain into
Information disclosure
- Directory listing: auto-generated indexes that expose the file structure
- Verbose error messages: stack traces and debug output returned to the client
- TLS information leakage: what certificates and protocol settings give away
Dependencies
- Outdated dependencies: vulnerable npm packages and front-end libraries
Methodology
Reconnaissance
- Fingerprint the web stack and frameworks
- Map the application structure and endpoints
- Brute-force hidden files and directories
- Read the JavaScript bundles for API routes
- Check the TLS configuration
Finding vulnerabilities
- Test inputs for injection (SQL, XSS, SSTI)
- Work through the authentication flow
- Test authorization on every role and object you can reach
- Check CSRF protections on state-changing requests
- Look at the business logic
- Fuzz API endpoints and parameters
Exploitation
- Build payloads for what you found
- Chain bugs where one alone is low impact
- Pull data to prove impact
- Set up persistence only if the rules of engagement allow it
Post-exploitation
- Pivot to internal systems
- Escalate privileges on compromised hosts
- Keep access for the rest of the test window
- Write up each finding with a proof of concept
Tools
| Tool | Use |
|---|---|
| Burp Suite | Intercepting proxy and scanner |
| OWASP ZAP | Open-source proxy and scanner |
| sqlmap | SQL injection detection and exploitation |
| ffuf, gobuster | Directory and parameter fuzzing |
| Nuclei | Template-based scanning |
Testing checklist
Input validation
- Test every input for injection
- Check file upload handling
- Test HTTP parameter pollution
- Check how input is encoded on output
Authentication and session management
- Test the login flow
- Check the password policy
- Review session token handling
- Confirm logout invalidates the session server-side
- Check for session fixation
Authorization
- Test vertical privilege escalation
- Test horizontal privilege escalation
- Check direct object references
- Check authorization on API endpoints
Business logic
- Try to skip workflow steps
- Check for race conditions
- Test payment flows
- Check rate limiting
Configuration
- Review HTTP security headers
- Check the CORS policy
- Test the TLS setup
- Review error handling
Related
- Network protocol attacks: HTTP and HTTPS at the protocol level
- API security: REST and GraphQL testing
- Cloud security: cloud-hosted applications and their metadata services
Sliver C2 Cheatsheet
Cheatsheet for the Sliver C2 framework covering payload generation, listeners, beaconing, sessions, and post-exploitation for red team operations.
API Security Testing: REST, GraphQL, and Beyond
Testing REST and GraphQL APIs for BOLA, mass assignment, broken authentication, introspection leaks and rate limit bypasses.