medium
Single Answer
0

Sakis is working with a web application development team on their authentication and authorization process for his company's new application. The team wants to make session IDs as secure as possible. Which of the following is not a best practice that Sakis should recommend?

Answer Options

A

The session ID token should be predictable.

B

The session ID should have at least 64 bits of entropy.

C

The session length should be at least 128 bits.

D

The session ID should be meaningless.

Correct Answer: A

Explanation

Session identifiers should not be predictable to ensure that attackers can't simply guess or easily brute-force session IDs. Web application development best practices currently recommend the use of long session IDs (128 bits or longer) that have sufficient entropy (randomness) to ensure that they will not be easily duplicated or brute-forced. It is also a best practice to make sure the session ID itself is meaningless to prevent information disclosure attacks. Session IDs should expire, however, because a session that never expires could eventually be brute-forced even if all of these recommendations were met.