Detection
Mapping Authentication Flows
Detection
The first step in testing authentication is to enumerate every distinct authentication-related flow the application exposes, not just the obvious login form.
As covered in Lesson 3.1, this typically includes:
Registration β creating a new account.
Login β the primary credential-verification flow.
Password reset and recovery β regaining access without the original password.
MFA enrollment β adding or configuring a second factor.
MFA verification β completing the second-factor challenge.
Session establishment and logout β creating and invalidating authenticated sessions.
Remember me β establishing persistent authentication across browser sessions.
API authentication β separate login endpoints used by mobile applications, SPAs, or other clients.
The tester should also actively search for alternative authentication portals and legacy endpoints.
For example:
Main web login
β
βββ API login
βββ Mobile login
βββ Admin login
βββ Legacy login
βββ Forgotten / undocumented endpointLegacy or forgotten endpoints are equally important. An endpoint does not stop being an attack surface simply because the current interface no longer links to it. Older login forms, API versions, development routes, and deprecated authentication mechanisms may remain reachable and may not have received the same security improvements as the current login flow.
The key testing mistake is assuming:
βThere is one login page, therefore there is one authentication mechanism.β
A useful first deliverable is an authentication-flow map showing every entry point, the credentials or factors it accepts, the session it creates, and the recovery or alternative paths that can reach the same authenticated state.