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
Question 1 · Multiple choice
What does CSRF (cross-site request forgery) exploit?
Question 2 · Multiple choice
Stored XSS differs from reflected XSS in what way?
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?
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?
Question 5 · Multiple choice
What problem does TLS (HTTPS) solve that authentication alone does not?