pentesting, updated

Testing for account enumeration and guessable user accounts

Check whether login, registration or password-reset responses let you confirm which usernames or emails exist.

Goal

Confirm the app gives identical responses for existing and non-existing accounts across every identity-related flow.

How to test

Compare responses for a known-valid account against an invalid one, on every flow that touches identity:

curl -s -o /dev/null -w "%{http_code} %{size_download}\n" https://example.com/login -d "user=real@example.com&pass=wrong"
curl -s -o /dev/null -w "%{http_code} %{size_download}\n" https://example.com/login -d "user=fake@example.com&pass=wrong"

curl -s -o /dev/null -w "%{http_code} %{size_download}\n" https://example.com/register -d "email=real@example.com"
curl -s -o /dev/null -w "%{http_code} %{size_download}\n" https://example.com/forgot-password -d "email=real@example.com"

What to look for

A different status code, response size, wording (“invalid password” vs. “user not found”), or response time between a valid and invalid identifier.

Notes

Timing differences count too — a flow that’s slower for valid accounts (e.g. it actually sends an email) leaks the same information as a wording difference.

References

§ home
~/knubertus/home/
1,1 Top