Short answer
Credential stuffing is an automated attack that tries username and password pairs leaked from other sites against your login form, betting that people reuse passwords. Your own app does not need to have been breached. The strongest defence is multi-factor authentication; leaked-password checks, rate limits and alerts on unusual sign-ins add further layers.
Ask an AI about this page:ChatGPTClaude
On this page
Credential stuffing is an automated attack in which stolen username and password pairs, leaked from other websites, are tried against your login form to take over accounts. OWASP’s cheat sheet defines it as testing pairs “obtained from the breach of another site”. It works because many people reuse the same e-mail and password across services, so a breach somewhere else becomes a working login at your app.
Credential stuffing in an AI-built app
An app built with Lovable or Bolt usually signs users in with Supabase Auth, often with e-mail and password. Nothing in your code has to be wrong for credential stuffing to succeed: the attacker submits the correct password. What decides the damage is what stands between a correct password and the account:
- A second factor. OWASP calls multi-factor authentication by far the best defence against most password-related attacks.
- Leaked-password checks. Supabase can reject new passwords that appear in the HaveIBeenPwned database, so a known-leaked password can’t be set in the first place. It is available on the Pro plan and above.
- Rate limits. Supabase Auth limits sign-in and sign-up requests per IP address by default. Attackers spread requests over many addresses, so this slows them down rather than stopping them.
- A self-built login. If the app checks passwords in its own edge function instead of Supabase Auth, none of Supabase’s limits apply, and the function needs its own rate limiting.
Magic links and social login avoid the problem for accounts that don’t have a password at all.
How to check your app
- In the Supabase dashboard, open Authentication and check which sign-in methods are on, whether MFA is offered, and the minimum password length and character rules. Supabase recommends at least eight characters.
- Check whether leaked-password protection is enabled, if your plan includes it.
- Search your code for sign-in logic that does not go through
supabase.auth. A self-built password check needs its own limits. - Review Authentication → Rate Limits and leave the sign-in limits at their defaults unless you have a reason.
- Make sure users can see their active sessions and get an e-mail on unusual sign-ins, as OWASP suggests, so they can react.
How to prevent problems
Offer MFA and push it for admin accounts first, switch on leaked-password checks where available, keep sign-in limits in place, and avoid building your own password login. The fix for a login endpoint without limits is on No rate limit on login or AI endpoints, and the wider Supabase Auth settings are covered in Supabase Auth pitfalls.
Frequently asked questions
How is credential stuffing different from brute force?
Brute force tries many passwords against one account. Credential stuffing tries pairs that already worked somewhere else, one or a few per account, so per-account lockouts catch it less often. Password spraying tries one common password against many accounts.
My app has never been hacked. Can it still be hit?
Yes. The passwords come from breaches of other sites. If your users reused them, the attacker logs in with the correct password, and your logs show a normal successful sign-in.
Does Supabase protect against it?
Supabase Auth rate-limits sign-in requests per IP, supports MFA, and can reject passwords found in known leaks through HaveIBeenPwned on the Pro plan and above. Which of these are switched on is your choice in the dashboard.
Sources
- 1.Credential Stuffing Prevention Cheat Sheet — OWASP Cheat Sheet Series
- 2.Credential stuffing — OWASP Community
- 3.Password security — Supabase Docs
- 4.Rate limits — Supabase Docs