Web security
Prevent the common web vulnerabilities and explain them in interviews.
- QLT.05.01Threat model and the OWASP Top 10 for frontendCoreMid-level12 min
- QLT.05.02XSS: types and preventionCoreMid-levelBeing written
- QLT.05.03Content Security Policy and security headersCoreMid-levelBeing written
- QLT.05.04CSRF and cookie securityCoreMid-levelBeing written
- QLT.05.05Authentication: sessions, tokens, OAuth, OIDC, passkeysCoreMid-levelBeing written
- QLT.05.06Supply chain and dependency securityMid-levelBeing written
- QLT.05.07Privacy and data protectionMid-levelBeing written
Interview questions in this module
- Explain XSS. How does React protect you and where can you still be vulnerable?
- What is a Content Security Policy? How would you roll one out?
- Explain CSRF and how to prevent it. Does SameSite solve it fully?
- Where should you store JWTs in a browser app? Trade-offs?
- Explain the OAuth 2.0 authorization code flow with PKCE.
- What are passkeys and why are they phishing-resistant?
- What is clickjacking?
- How do you protect a frontend from compromised npm packages?
- What is Subresource Integrity?
- What security headers would you set on a new app?