← All topics
Quiz: CSRF and CORS: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. In a CSRF attack, what does the attacker rely on?
- Q2. Which statement about CORS is true?
- Q3. Why is SameSite=Lax effective against CSRF?
- Q4. Why does the CSRF demo use hmac.comparedigest instead of ==?
- Q5. What does corsheadersgood return for https://evil.example?
- Q6. Why must GET requests never change data?
- Q7. "Our form uses POST, so we are safe from CSRF." Why is this wrong?
- Q8. What does the same-origin policy block by default?
- Q9. What is the dangerous CORS mistake?
- Q10. Which extra step protects critical actions like changing the account email?