Module 75: Web App Security

Lesson 5 of 5 · 15–25 minutes

Misconfiguration

🏠The everyday picture

A strong lock on a door left open. Most break-ins at well-built buildings come through something left unlocked, not through breaking the lock.

📘What it really is

Common misconfigurations, and the fix:

🖱️Try it

On your own staging site: run an HTTP Observatory scan and fix the headers it reports. Try to fetch /.env, /.git/config and /backup.sql; all must be refused or not found. Trigger an error and check users see only a generic message. Fix what you find and rescan.

✅Quick check

Why shouldn't error pages show stack traces?

Show the answer

They reveal internal details that help attackers; log them instead.

Name two security headers and what they do.

Show the answer

Any two: HSTS (HTTPS only), CSP (allowed scripts), nosniff (no type guessing), Referrer-Policy (limits leaked URLs), frame-ancestors or X-Frame-Options (stops clickjacking).

← PreviousCross-site request forgery (CSRF)
ProLearners Assist