Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Credential stuffing on login: how to detect and stop it

OPS-161Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

Credential stuffing is an automated attack. Criminals take email and password pairs leaked from other websites and try them on your login page. Many people reuse passwords, so some pairs work.

It differs from classic brute force. Brute force guesses many passwords for one account. Credential stuffing tries one or two real, previously leaked passwords for each of thousands of accounts, so each account sees very few failures and simple lockouts miss it.

It hits customer logins (shops, member areas, portals) and admin logins (/wp-login.php, /administrator). Attackers often spread requests over many IP addresses.

Why it costs you leads or sales

A successful login lets the attacker act as your customer: spend stored credit, change addresses, steal personal data or reset details. That leads to refunds, chargebacks, support load and lost trust.

Even failed attacks hurt. Floods of login requests slow your server, so real visitors wait or see errors. Lockout rules can also block genuine customers, and a flood of failed-login emails or password resets annoys them.

How a credential stuffing attack unfolds
  1. Leaked listAttacker obtains email and password pairs from another breach
  2. Bot login attemptsThousands of requests from many IPs
  3. Login pageNo rate limit, 2FA or bot challenge
  4. Account takeoverOrders, data and details exposed
  5. Customer trustRefunds, complaints, churn

The break happens at the login step, where nothing separates a bot from a customer.

How to check if your site has it

Look for patterns in your server and application logs. You are searching for many login requests, a high share of failures, and spread across many accounts and IPs.

Signs of credential stuffing
  • A sudden spike of POST requests to the login URL (for example /wp-login.php, /account/login, /customer/account/login)
  • Many different usernames or emails tried from one IP, or one IP range
  • Many IPs each making only a few attempts
  • A high ratio of failed to successful logins
  • Logins from unusual countries or new devices right after the spike
  • Customers reporting password reset emails or account changes they did not make
  • Server load or response time rising at odd hours
Count login POSTs per IP in an Nginx or Apache access logbash
grep 'POST /wp-login.php' /var/log/nginx/access.log | awk '{print $1}' | sort | uniq -c | sort -rn | head -20

On hosted platforms such as Shopify, Wix or Squarespace you have no server logs. Check the platform's security or staff-activity pages, and ask support about login attack protection. Your CDN or firewall dashboard (if you use one) will show login traffic too.

How to fix it

No single control stops it. Layer several: slow down bots, make stolen passwords useless, and cut off known bad traffic.

Stop credential stuffing
  1. Rate limit the login endpoint

    Limit attempts per IP and per account over a short window. Do it at your CDN, firewall or web server, not only in the app.

  2. Add 2FA

    Require a second factor for admins first, then offer it to customers. A stolen password alone then fails.

  3. Add a bot challenge

    Use a CAPTCHA or managed challenge from your CDN or WAF on the login form. Do not try to bypass or disable any vendor bot protection.

  4. Block breached passwords

    Reject passwords known to appear in breaches when users set or change them, and force a reset for accounts you believe were hit.

  5. Use generic error messages

    Say 'Email or password is incorrect' so attackers cannot learn which emails have accounts.

  6. Alert users on new-device logins

    Email customers when a login comes from a new device or country, with a link to secure the account.

Where to apply it on your platform
  1. Install a login security plugin

    Plugins such as Wordfence, Solid Security or Limit Login Attempts Reloaded add attempt limits and 2FA. Pick one and configure it; do not stack several.

  2. Protect or move the login page

    Add a CAPTCHA to the login form and restrict /wp-login.php at your firewall or CDN where possible.

  3. Secure WooCommerce accounts

    Apply the same limits to the My Account login and consider requiring strong passwords in WooCommerce settings.

Nginx: rate limit login requests per IPnginx
limit_req_zone $binary_remote_addr zone=login:10m rate=5r/m;

server {
  location = /wp-login.php {
    limit_req zone=login burst=5 nodelay;
    limit_req_status 429;
    include fastcgi_params;
    fastcgi_pass unix:/run/php/php-fpm.sock;
  }
}
Login protection before and after

Unprotected login

  • Unlimited attempts
  • Password alone grants access
  • Detailed error messages reveal valid emails
  • No alert when a new device signs in

Layered protection

  • Rate limits per IP and per account
  • 2FA or one-time codes
  • Bot challenge on the form
  • Breached passwords rejected and new-device emails sent

How to confirm it's fixed

Check your defences work
  1. Test the limit yourself

    From your own IP on a test account, submit several wrong passwords quickly. You should see a delay, a challenge or a 429 response.

  2. Test a real login

    Sign in as a normal user, including with 2FA, to make sure real customers are not blocked.

  3. Watch the logs

    Re-run the log search over the next days. Failed attempts that remain should be blocked or challenged, with fewer successes from odd IPs.

  4. Reset affected accounts

    Force password resets for accounts that logged in during the attack and notify the owners.

How to prevent it happening again

Ongoing habits
  • Keep 2FA required for all staff and admin accounts
  • Review login failure and success rates in your WAF or CDN dashboard weekly
  • Keep CMS, plugins and the security tool updated
  • Check new passwords against breached-password lists
  • Offer passkeys or one-time code sign-in to customers where your platform allows
  • Re-test the login after any theme, plugin or checkout change, so protections do not break real sign-ins

How FunnelGuard handles this

This is outside what FunnelGuard checks. FunnelGuard is synthetic monitoring: a robot visitor runs your lead forms, checkouts and booking journeys on a schedule and checks the steps, tracking hits and lead delivery. It does not watch for attack traffic against your login.

The kind of tool that fits is a web application firewall (WAF) with bot management and rate limiting, often combined with a login-security plugin or an identity provider that offers 2FA and breached-password checks. Use your server or CDN logs to review attack patterns.

FunnelGuard can still help indirectly. After you add rate limits or a challenge, a scheduled journey can show whether a real checkout or form journey still works. It never bypasses CAPTCHAs or bot protection, so a journey blocked by a challenge will fail rather than get around it. A free read-only website audit is available too.

Questions people ask

What is credential stuffing?

Credential stuffing is an automated attack where bots try email and password pairs leaked from other breaches on your login page. It works because many people reuse passwords across sites. Each account sees only a few attempts, so it is hard to spot.

What is the difference between credential stuffing and brute force?

Brute force guesses many passwords against one account. Credential stuffing tries real leaked pairs across many accounts, often from many IP addresses. Because failures are spread thin, simple account lockouts often miss it.

How do I know if my login is being attacked?

Look in your access logs or firewall dashboard for spikes of POST requests to the login URL, many usernames tried per IP, and a high rate of failures. Customers reporting unexpected password resets or account changes is another sign.

How do I stop credential stuffing on my website?

Layer controls: rate limit logins per IP and per account, require 2FA, add a bot challenge, block breached passwords and email users about new-device logins. No single measure is enough on its own.

Does 2FA stop credential stuffing?

Mostly yes. A leaked password alone cannot complete a login when a second factor is required. Attackers can still flood the form, so keep rate limits and bot protection in place.

Will a CAPTCHA on the login form stop credential stuffing?

It slows many bots but is not a complete fix, as some attackers use solving services. Use it with rate limits, 2FA and a WAF or managed bot challenge.

Can FunnelGuard detect credential stuffing?

No. FunnelGuard runs scheduled customer journeys like forms and checkouts, and does not monitor for attack traffic. Use a web application firewall with bot management and rate limiting for this.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.