Reconnaissance and Enumeration

A tester logs in to a web app 500 times and records the session cookie from each login. What is the BEST way to judge whether an attacker could guess valid tokens?

Show the answer

Correct answerD. Collect the tokens and run statistical randomness analysis on them

AWhy not this: This targets passwords on the login form, a different credential that says nothing about how session tokens are generated.

BWhy not this: A session token is an identifier that normally holds no password; decoding it does not test predictability.

CWhy not this: Authenticated crawling maps pages (web crawling); it does not assess how random the tokens are.

DWhy this is right: Statistical analysis of many samples reveals patterns or low entropy that would make tokens predictable.

Analysing the entropy of many issued tokens, for example with Burp Sequencer, shows whether they follow a predictable pattern. Brute-forcing the login form tests passwords, not how tokens are generated.