Credential Stuffing and Password Spraying
Credential stuffing and password spraying, run through Burp Suite Intruder.
What Is Credential Stuffing?
Most successful logins from an external pentest come from default credentials that were vulnerable to Credential Stuffing or Password Spraying. It's not common for a wild exploit to hand over a login success.
Example Credential Stuffing Attack Using Burp Suite
- Run Burp Suite with Intercept On.
- Go to www.tesla.com/login.
- Input a fake username and password.
- Look for a response header that contains something like this:
- Right click and Send to Intruder.
- Click
- Highlight
test%40test.comand click - Highlight
testand click - Set Attack Type to
- Set Payload 1 to the username/email list and Payload 2 to the password list.
- Click
A Grep option like "Couldn't sign you in" quickly flags failed login attempts. If the page length changes, or the filtered error code doesn't have a checkmark, that possibly means a successful login.
Example Password Spraying Attack Using Burp Suite
Same steps as the credential stuffing attack with one minor tweak.
- Highlight
test%40test.comand click - Set the
&password=field to a known password to spray against a list of usernames/emails. - Set Attack Type to
- Click
This sprays the one known password set in the &password= field against a wordlist of usernames/emails.
Note: password spraying against logins usually means attacking active directory accounts, which can lock accounts out after 3 or 5 failed attempts. Ask the company that hired you how many failed attempts are authorized before lockout. We don't want to create a DoS where employees can't do their jobs.