Web security

CSRF, XSS, auth tokens, and TLS, with real attack scenarios. Answers are graded on the server.

50 questions · page 1 of 10

0 of 50 answered

  1. Question 1 · Multiple choice

    What does CSRF (cross-site request forgery) exploit?

    Options for question 1
  2. Question 2 · Multiple choice

    Stored XSS differs from reflected XSS in what way?

    Options for question 2
  3. Question 3 · Scenario

    An app renders a user's bio field directly into the page's HTML without escaping it. What's the risk, and the fix?

    Options for question 3
  4. Question 4 · Scenario

    A single-page app stores its auth token in localStorage so JavaScript can read it for API calls. What's the trade-off being made?

    Options for question 4
  5. Question 5 · Multiple choice

    What problem does TLS (HTTPS) solve that authentication alone does not?

    Options for question 5
0 of 50 answered