Quiz: Basic Auth¶
Review first: Basic Auth
Question 1
You're building a webhook endpoint that receives callbacks from a payment provider. The provider only supports Basic Auth over HTTPS. Which additional control matters MOST?
Question 2
During a review you find this comparison in an auth check: if (request.password == stored). What's the concrete vulnerability?
Question 3
An internal tool serves Basic Auth on both port 80 and 443. A teammate argues port 80 is fine "because the credentials are Base64-encoded anyway". What should you do?
Question 4
Users of a Basic-Auth-protected admin page report that clicking "Log out" doesn't actually log them out. What's the underlying cause?
Question 5
A Basic-Auth API slows down sharply under load. Profiling shows most CPU time goes to Argon2 password verification on every request. What's the right fix?