Attacks and Exploits

A tester on a shared network captures an authenticated user's traffic and finds the session cookie sent over HTTP without the Secure flag. Which action BEST gains access to that user's account without knowing the password?

Show the answer

Correct answerD. Replay the captured session cookie in the tester's own browser

AWhy not this: A forged request depends on the victim's browser sending their own cookie; it does not give the tester a session.

BWhy not this: Password guessing targets the login form, but a valid session token is already in hand, so this is slower and unnecessary.

CWhy not this: Editing and re-signing claims is JWT manipulation; the stem gives no sign the cookie is a JWT, and re-signing needs the key.

DWhy this is right: Presenting the stolen session identifier makes the server treat the tester as the logged-in user, with no password needed.

Session hijacking takes over an authenticated session by presenting the victim's valid session identifier, so the server treats the tester as that user. Brute-forcing the login form is a credential attack and ignores the token that was already captured.