1. Workflow

1.1 Recon / Information Gathering

  • Passive first: WHOIS, DNS records (A/AAAA/MX/TXT/NS), certificate transparency logs (crt.sh) for subdomains, Wayback Machine for old endpoints.

  • Tech fingerprinting: HTTP response headers (Server, X-Powered-By), Wappalyzer/whatweb, favicon hash lookups, error page signatures.

  • robots.txt / sitemap.xml: often leaks admin paths, staging endpoints, disallowed-but-reachable directories.

  • Gobuster — content discovery:

    gobuster dir -u https://target -w /path/wordlist.txt -x php,asp,aspx,txt,bak -t 50
    
    • dir mode: hidden directories/files (/admin, /backup, /.git, /api).
    • vhost mode: virtual host brute-forcing (gobuster vhost -u https://target -w vhosts.txt).
    • dns mode: subdomain brute-forcing (gobuster dns -d target.com -w subdomains.txt).
    • Watch for wildcard DNS / catch-all responses producing false positives — use --exclude-length or -fs to filter by response size.
    • Common wordlists: SecLists raft-*, common.txt, directory-list-2.3-medium.txt.

1.2 Crawling / Proxy-driven mapping (ZAP)

  1. Set browser proxy to ZAP, install ZAP’s CA cert for HTTPS interception.
  2. Manual explore first — click through the app logged in and logged out, through every role, so ZAP’s sitemap reflects real app structure rather than guesswork.
  3. Spider (traditional + AJAX spider for JS-heavy apps) to passively map additional endpoints.
  4. Passive scan runs automatically as you browse — review alerts (missing headers, cookie flags, information disclosure) before touching active scan.
  5. Active scan only against explicitly in-scope targets/contexts — it sends attack payloads and can write/delete data.
  6. Use Contexts to scope the target and attach authentication (see prior session on ZAP auth — form-based/script-based auth config, or manual session cookie via HTTP Sessions tab / Replacer add-on for header injection).

1.3 Manual testing

  • Default / weak credentials: check for admin:admin, admin:password, vendor-default creds (search product + “default credentials”), blank passwords, and credentials reused across roles found in error messages, config files, or source comments.
  • Input field probing: in every field (including hidden fields, dropdowns, file names, HTTP headers like X-Forwarded-For/Referer/User-Agent), try:
    • Boundary values (empty, max length, negative numbers, zero, Unicode, emoji)
    • Type confusion (string into numeric field, array into scalar field in JSON/API bodies)
    • Special characters per context (', ", <, >, ;, |, ../, null byte %00)
    • Business-logic abuse (negative quantities, price tampering, changing currency/role parameters)
  • Authentication & session flow: test password reset (token predictability/reuse, email vs. username enumeration), “remember me” tokens, MFA bypass (can the second factor be skipped by direct navigation?), logout (does the session actually invalidate server-side?).
  • Role/privilege boundaries: repeat key actions as each role (anonymous, low-priv, high-priv) and diff the results — this is how IDOR and broken access control surface.
  • Document as you go: request/response pairs, exact payload, timestamp, and the observed deviation from expected behavior — this is the single biggest point-loss area in graded reports (evidence that doesn’t match the claim, or a claim with no evidence attached).

1.4 Typical order of operations

  1. Recon (passive) → 2. Content discovery (gobuster) → 3. Authenticated crawl (ZAP spider, all roles) → 4. Passive scan review → 5. Manual logic/auth/session testing → 6. Targeted active scanning (scoped) → 7. Verify + screenshot every finding → 8. Write up with reproduction steps.

2. Common Vulnerabilities to Test

CategoryWhat to look for
Cross-Site Scripting (XSS)See dedicated XSS cheat sheet
SQL Injection (SQLi)See dedicated SQLi cheat sheet
Path TraversalSee dedicated Path Traversal cheat sheet
Broken AuthenticationWeak lockout policy, credential stuffing feasibility, predictable session tokens, missing MFA enforcement
Broken Access Control (incl. IDOR)Object references (IDs, UUIDs) not scoped to the requesting user; missing server-side authorization checks on actions the UI merely hides
CSRFState-changing requests (POST/PUT/DELETE) without anti-CSRF tokens or SameSite cookie protection
Insecure Direct Object ReferencesSequential/guessable IDs in URLs or API bodies returning other users’ data
Security MisconfigurationSee Section 3 — broad category, often the easiest points
Sensitive Data ExposureSecrets/PII in responses, JS bundles, localStorage, or version control artifacts (.git, .env)
File Upload FlawsMissing type/content validation, executable extensions accepted, path traversal in filename, stored files served from app’s own domain
SSRFAny feature fetching a URL on the server’s behalf (webhooks, PDF generators, image proxies, “import from URL”)
XXEXML parsers with external entity resolution enabled (file upload accepting XML, SOAP endpoints, SAML)
Insecure DeserializationServer deserializing user-controlled data (PHP unserialize, Java ObjectInputStream, Python pickle)
Open RedirectUnvalidated redirect/forward parameters (?returnUrl=, ?next=)
ClickjackingSensitive pages (account settings, payment confirm) frameable by third-party origins
CORS MisconfigurationAccess-Control-Allow-Origin: * combined with Access-Control-Allow-Credentials: true, or reflected-origin CORS
JWT Issuesalg: none acceptance, weak/guessable signing secret, missing signature verification, excessive token lifetime, sensitive data in unencrypted payload
Business Logic FlawsRace conditions (double-spend/double-submit), workflow step skipping, price/quantity manipulation
Rate Limiting / Brute ForceLogin, password reset, OTP, and coupon/voucher endpoints without throttling
API-Specific (Mass Assignment / Excessive Data Exposure)API accepting and applying fields the client shouldn’t control (role, isAdmin); API returning more fields than the UI displays

3. Common Misconfigurations and What They Lead To

MisconfigurationConsequence
Directory listing enabledFull disclosure of file structure, backups, source code, config files
Default/sample files left deployed (install wizards, phpinfo.php, example apps)Known CVEs, credential disclosure, sometimes direct RCE
Verbose error messages / stack tracesFramework/library/version fingerprinting → targeted exploit selection; may leak file paths, DB structure, internal hostnames (CWE-209)
Missing/weak security headers (CSP, X-Frame-Options, X-Content-Type-Options, Strict-Transport-Security)Clickjacking, MIME-sniffing attacks, downgrade attacks, reduced defense-in-depth against XSS
Outdated software / unpatched CVEsDirect exploitation via public PoCs
Unnecessary HTTP methods enabled (PUT, DELETE, TRACE)File upload/overwrite via PUT, Cross-Site Tracing via TRACE
Cookies without HttpOnly/Secure/SameSiteSession theft via script injection, cookie leakage over plaintext, CSRF exposure
Overly permissive CORSCross-origin data theft from authenticated sessions
Debug mode enabled in productionInteractive debuggers (e.g., Werkzeug) exposing RCE, verbose internals
Default/weak TLS configuration (old protocol versions, weak ciphers, self-signed/expired certs)MITM feasibility, downgrade attacks, user trust-warning bypass training
Exposed admin/management interfaces (phpMyAdmin, Tomcat Manager, Jenkins, actuator endpoints)Direct administrative access if default creds or no auth
Backup/config files reachable (.bak, .old, .env, web.config, .git/)Source code and credential disclosure
Cloud storage misconfiguration (public S3/Blob buckets)Mass data exposure, sometimes write access leading to defacement/supply-chain injection
Verbose Server/X-Powered-By headersPassive fingerprinting for targeted attack selection

4. How to Test

Broken Access Control / IDOR

  • Map every endpoint and object reference per role; use two accounts (low-priv + high-priv) in parallel browser profiles or Burp/ZAP session tabs.
  • Swap IDs/UUIDs in requests between accounts (GET /api/orders/1042 as a different user) and compare response — 200 with foreign data is the finding, not just a 403 absence.
  • Test “vertical” (lower role reaching admin function) and “horizontal” (same role, different user’s data) separately.
  • Check that every action enforced in the UI (buttons hidden for low-priv) is also enforced server-side by calling the underlying request directly.

CSRF

  • Identify state-changing requests (POST/PUT/DELETE, or GET performing a state change — itself a finding).
  • Check for anti-CSRF token presence, whether it’s tied to the session, and whether it’s actually validated (remove it / reuse an old one / use another session’s token and see if the request still succeeds).
  • Check SameSite cookie attribute as a secondary control.
  • Build a minimal auto-submitting HTML PoC form hosted off-origin to demonstrate impact.

Security Misconfiguration (general)

  • Pull response headers for every page type (static, API, error page) and diff against a security-headers checklist (CSP, HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-Policy).
  • Request common sensitive paths directly: /.git/HEAD, /.env, /web.config, /backup.zip, /phpinfo.php, /.well-known/, admin panel default paths — gobuster’s content discovery (1.1) is the systematic version of this.
  • Trigger an error deliberately (malformed input, wrong content-type, missing required field) and check whether the response leaks stack traces/paths/versions.
  • Try non-standard HTTP methods against sensitive endpoints (OPTIONS to enumerate allowed methods, then test PUT/DELETE/TRACE directly).
  • Check TLS config (testssl.sh, sslscan, or nmap --script ssl-enum-ciphers) for weak protocols/ciphers and certificate validity.

Sensitive Data Exposure

  • Review JS bundles (search for API keys, internal URLs, hardcoded secrets — grep -E "api[_-]?key|secret|token" across downloaded JS).
  • Check browser storage (localStorage/sessionStorage/IndexedDB) for tokens or PII that shouldn’t persist client-side.
  • Compare API responses to what the UI actually renders — APIs commonly over-return fields.
  • Check cached pages (browser back button after logout, Cache-Control headers on sensitive pages).

File Upload

  • Attempt upload with executable extensions (.php, .jsp, .aspx) and double extensions (.jpg.php).
  • Test content-type spoofing (upload a script with an image Content-Type header, or valid image magic bytes + embedded payload — “polyglot” files).
  • Check where uploaded files are served from (same origin = more impact) and whether the filename/path is attacker-controlled (traversal in filename — belongs to your Path Traversal sheet, but worth cross-referencing here).
  • Check file size/type limits are enforced server-side, not just client-side JS.

SSRF

  • Find any feature that fetches a URL server-side; redirect it to internal-only targets (http://127.0.0.1, http://169.254.169.254/ cloud metadata endpoint, internal hostnames/ports).
  • Test for blind SSRF using an out-of-band listener (e.g., Burp Collaborator / interactsh) when no response is reflected.
  • Check for filter bypass via redirects, alternate IP encodings (decimal/octal/hex IP), or DNS rebinding if a naive allowlist is in place.

XXE

  • Find endpoints accepting XML (direct API, SOAP, or file uploads like .docx/.xlsx/SVG which are XML internally).
  • Submit a payload defining an external entity referencing a local file or an internal URL; look for reflected content or out-of-band interaction.
  • Note many modern XML parsers disable external entities by default — absence of classic in-band XXE doesn’t rule out blind/OOB variants.

Insecure Deserialization

  • Identify serialized-object indicators (PHP O:/a: prefixes, Java base64 blobs starting rO0, Python pickle opcodes) in cookies, hidden fields, or API payloads.
  • Treat any discovery here as high-risk — this category commonly leads directly to RCE; document and stop rather than attempting exploitation beyond proving the deserialization point, unless the engagement scope explicitly calls for it.

Open Redirect

  • Identify redirect/forward parameters, test with absolute URLs to an external domain and see if the app forwards without validation.
  • Test bypasses of naive allowlist checks (//evil.com, /\evil.com, https:evil.com, whitelisted-domain-as-subdomain tricks).

Clickjacking

  • Check X-Frame-Options/frame-ancestors CSP directive on sensitive pages.
  • Build a minimal PoC page with an invisible iframe overlay to confirm framability where headers are missing/misconfigured.

CORS Misconfiguration

  • Send requests with an attacker-controlled Origin header and inspect Access-Control-Allow-Origin in the response — reflected-origin + Allow-Credentials: true is the critical combination.
  • Test null origin handling and subdomain-wildcard assumptions.

JWT

  • Decode the token (header/payload are base64, not encrypted) and check for sensitive data in the payload.
  • Test alg: none acceptance and algorithm confusion (RS256 → HS256 using the public key as the HMAC secret).
  • Check signature validation is actually enforced (strip/alter the signature and resend).
  • Check expiry (exp) is set and enforced server-side.

Business Logic Flaws

  • These resist tooling — map the intended workflow first, then test out-of-order steps, repeated submission (race conditions via concurrent requests), and parameter tampering on price/quantity/currency/discount fields.
  • Concurrency testing: fire the same state-changing request (e.g., coupon redemption, balance transfer) in parallel and check for double-processing.

Rate Limiting / Brute Force

  • Test login, OTP, password reset, and any high-value action (voucher/coupon redemption) for throttling, account lockout, and CAPTCHA triggers.
  • Check whether rate limiting is per-IP only (bypassable via header spoofing like X-Forwarded-For, or distributed sources) versus per-account.