Authorization disclaimer. This walkthrough is limited to the intentionally vulnerable PortSwigger Web Security Academy lab linked below. Test only systems you own or are explicitly authorized to assess.
Overview
Repeated login attempts produce an observable difference for valid and invalid usernames, allowing the lab account to be identified before password testing.

Lab objective/setup
The supplied credentials, candidate lists, email client, and exploit server are used only inside this Academy instance to reproduce the authentication-flow evidence shown below.
What I observed
The login endpoint returns Invalid username for nonexistent accounts and Incorrect password when the username exists. Intruder first isolates info by that response change, then finds 654321 through the sole redirecting password response.

Why it is vulnerable
Authentication failures disclose account existence through response text, lockout behavior, or another stable response characteristic.
Walkthrough in the authorized PortSwigger lab
Enumerate the username list against POST /login, select the response that changes to Incorrect password, and repeat the attack against that account with the password list. The 302 Found result authenticates as info and opens the account page.


Verification
The final capture shows the Academy marking the username enumeration via different responses exercise as solved after the documented request sequence. No testing was performed outside the isolated lab.

Impact and defensive lesson
Authentication controls must bind identity, challenge state, reset tokens, and retry counters to server-side transactions. Return uniform failures, rate-limit by both account and trusted client signals, and use random revocable persistent-session tokens rather than credential-derived values.