All quizzes
Free quiz · 50 questions in the bank

Web-security quiz

Test your Web-security knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

Output encoding (HTML-escaping) protects primarily against which class of attack?

In this round
  1. Output encoding (HTML-escaping) protects primarily against which class of attack?
  2. What is Cross-Site Request Forgery (CSRF) in one sentence?
  3. What is OWASP?
  4. ``` const sql = `SELECT * FROM users WHERE email = '${req.body.email}'` db.query(sql) ``` What vulnerability does this code have, and how do you fix it?
  5. Why should you NOT store passwords using fast hashes like MD5 or SHA-256?
  6. What security guarantees does HTTPS (HTTP over TLS) provide?
  7. What does the "Same-Origin Policy" mean for web pages?
  8. Why should authentication cookies be set with the `HttpOnly` attribute?
  9. What is the correct approach to input validation on a server?
  10. Which best captures the principle "don't trust the client"?
  11. What is Cross-Site Scripting (XSS) in one sentence?
  12. A site is served on both `http://` and `https://`. What should be done?
Gaps to close?
Read the curated Web-security notes — core concepts, patterns, interview prep.
Web-security notes

More quizzes

.NETAccessibilityAgile MethodologyAlertmanagerAlgorithmsAndroid