🏠 Home
Write-up by wook413

Lab: Username enumeration via different responses

This lab is vulnerable to username enumeration and password brute-force attacks. It has an account with a predictable username and password, which can be found in the following wordlists:

To solve the lab, enumerate a valid username, brute-force this user's password, then access their account page.


From the main page of the lab, I clicked "My account."

image-20260709210556972

I entered wook:wook in the username and password fields and clicked Log in.

image-20260709210640340

In Burp, I saw the POST request I had just made, and the body clearly showed username=wook&password=wook

image-20260709210812319

I sent that request to Intruder and marked the username value as the target position.

image-20260709211447682

For payloads, I used the provided wordlist of usernames.

image-20260709211048650

I ran the attack, which finished in a few seconds. Sorting the results by length, I noticed that one payload archie produced a response length different from all the others.

image-20260709211614958

Looking at that response, it said "Incorrect password."

image-20260709211641704

Every other response, by contrast, said "Invalid username." This difference confirms that the user archie exists.

image-20260709211735166

Now that I knew archie was a valid username, I set up a new attack to find his password, this time marking the password field as the target position.

image-20260709211853519

For payloads, I used the provided wordlist of passwords.

image-20260709211931016

I ran the attack, which again finished quickly. One request stood out: it returned status code 302 with a response length of 188, while every other request returned length 3354.

image-20260709212004091

The 302 status code indicated a redirect, meaning the login had succeeded, so the payload used for that request must be archie's correct password.

image-20260709212027863

All the other responses simply contained "Incorrect password."

image-20260709212054159

I logged in with archie and the identified password.

image-20260709212123737

Solved!

image-20260709212135882