quizzes / auth-and-sessions

Authentication & Sessions

Tokens, cookies, JWTs, and the ways logins go wrong.

Authentication Intermediate pass ≥ 70%
  1. 1. A JWT's header says "alg": "none". If the server accepts it, what does that mean?

  2. 2. Why is the 'Secure' attribute important on a session cookie?

  3. 3. What does the 'HttpOnly' cookie attribute protect against?

  4. 4. An attacker tries millions of leaked username/password pairs against your login. This is called:

  5. 5. Which is the correct way to store user passwords?

  6. 6. Where should a JWT used for authentication be validated?