Pcornel
Security

Web Security

Cheat sheet · https://pcornel.dk/topic.php?topic=4746

Back to the Topic

Answer

Web security protects web applications and their users from attacks such as XSS, SQL injection, CSRF and SSRF, using secure coding, HTTPS, secure cookies, security headers and strong authentication.

Remember

  • Validate input; encode output.
  • Authorization must be checked server-side on every request.
  • Security headers reduce impact of bugs.

First checks

  • curl -sI https://<site> — headers
  • DAST scan (OWASP ZAP) — findings
  • SAST/dependency scan — code issues

Verify in this order

request → TLS → auth/session → validation → access control → response

Where it usually breaks

First mismatch in asset/subject identity → trust/authentication → authorization/policy → enforcement/control → telemetry/detection → protected outcome/response; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4746

Confirmation

Confirm action

Continue?