CS FundamentalsModerateProduct-company placement · security
An internal API is protected with HTTP Basic authentication over plain HTTP. A security reviewer objects. Why?
- A. Basic sends a salted password hash, which an eavesdropper can still crack offline
- B. Credentials are only Base64-encoded in every request, so anyone on the path can read them
- C. Basic authentication works only with GET requests, so every write is unprotected
- 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
- What problem does OCSP stapling solve in TLS?
- Why can an attacker who captures one WPA2-Personal (PSK) four-way handshake try to crack the Wi-Fi passphrase offline?
- A DNS resolver once sent every query from the same source port with a random 16-bit transaction ID. Why did randomising the source port as…
- A company announces 198.51.100.0/22 in BGP. An attacker's AS starts announcing 198.51.101.0/24 without permission. What happens, and what…
- 10GBASE-R carries 10 Gbps of data with 64B/66B line coding. What is the line (baud) rate, and what fraction of line bits is overhead?
- In a DNS response, which flags show that the stub asked for recursion and that the server offers it?