A web application issues a session ID before logon and keeps the same ID after the user authenticates. Which control BEST prevents an attacker from exploiting this?
Show the answer
Correct answerA. Issue a new session ID after successful authentication
AWhy this is right: A new ID after logon makes any pre-logon ID worthless, which stops session fixation.
BWhy not this: A shorter idle timeout narrows the window but still lets an attacker use the known ID while the user is active.
CWhy not this: MFA hardens the logon, but the pre-set session ID is still promoted to an authenticated session.
DWhy not this: Encrypting the ID in a URL does not change that the same ID persists across logon, so a known ID still works.
Regenerating the session ID at logon invalidates any ID an attacker planted or learned beforehand, which defeats session fixation. MFA strengthens logon, but the attacker's known ID would still become an authenticated session.