CS FundamentalsModerateProduct-company placement · security

An internal API is protected with HTTP Basic authentication over plain HTTP. A security reviewer objects. Why?

  1. A. Basic sends a salted password hash, which an eavesdropper can still crack offline
  2. B. Credentials are only Base64-encoded in every request, so anyone on the path can read them
  3. C. Basic authentication works only with GET requests, so every write is unprotected
  4. D. The password is sent only on the first request, so a stolen session cannot be revoked

Correct answer: B. Credentials are only Base64-encoded in every request, so anyone on the path can read them

The Authorization header holds base64(user:password), an encoding, not encryption, and it is sent with every request. Basic is acceptable only inside TLS.

More Computer Networks questions

Exams that ask this topic