Web Application Attack Reference
SQLi, XSS, SSRF→IMDS, IDOR, JWT attacks, GraphQL, XXE — attack patterns, payloads, bypass techniques, and WAF evasion for each vulnerability class.
SQL Injection
Injecting SQL syntax into application inputs to manipulate database queries. Remains one of the most impactful vulnerability classes — data extraction, authentication bypass, and sometimes RCE (xp_cmdshell on MSSQL).
Detection / Error-Based
Blind SQL Injection — Boolean-Based
Time-Based Blind SQLi
WAF Bypass Techniques
Cross-Site Scripting (XSS)
Basic XSS Test Payloads
Session Hijacking via XSS (Stored)
Filter Bypass Techniques
Server-Side Request Forgery (SSRF)
Trick a server into making HTTP requests to attacker-controlled or internal targets. Critical impact in cloud environments: SSRF to cloud metadata API gives instance credentials.
Cloud Metadata SSRF — The High-Impact Path
SSRF Filter Bypass
IDOR / Broken Access Control
Insecure Direct Object Reference — access another user's resources by manipulating object identifiers (IDs, filenames, GUIDs) in requests. One of the most common and impactful web vulnerabilities.
IDOR Testing Methodology
Common IDOR Locations
| Location | What to Test | Risk |
|---|---|---|
| URL path parameter | /api/user/{id}/data — change ID to another user's | High — direct data access |
| Query parameter | ?account_id=123 — manipulate to other account IDs | High |
| POST body | {"user_id":123} — change to another user ID | High |
| Cookie/hidden field | Hidden form field with object ID — modify in browser | High |
| File download | ?filename=myfile.pdf — try ../../etc/passwd or other user files | Critical — path traversal |
| Export/report | ?report_id=1234 — try other IDs for other users' reports | High — data exposure |
| Password reset | ?token=abc — reset another user's password via predictable token | Critical — account takeover |
JWT (JSON Web Token) Attacks
Algorithm Confusion — RS256 to HS256
If server uses RS256 (asymmetric), the public key is sometimes publicly accessible. Change algorithm to HS256 (symmetric) and sign with the public key — server verifies with public key as HMAC secret.
alg:none Attack
XXE Injection
XML External Entity injection — when XML parsers process user-supplied XML and external entities are enabled. Allows file read, SSRF, and sometimes RCE.