---
title: "Credential stuffing: password leaks and how to defend against them"
description: "Credential stuffing replays passwords that were already stolen. Have I Been Pwned, a password manager, 2FA: practical defenses for WordPress."
language: "en"
locale: "en-US"
type: "article"
canonical: "https://www.wp-feint.com/credential-stuffing-password-leaks/"
published: "2026-11-08T08:00:00+00:00"
modified: "2026-11-22T14:34:53+00:00"
translations:
  en-US: "https://www.wp-feint.com/credential-stuffing-password-leaks/index.md"
  fr-FR: "https://www.wp-feint.com/fr/credential-stuffing-mots-de-passe/index.md"
  es-ES: "https://www.wp-feint.com/es/credential-stuffing-contrasenas-filtradas/index.md"
  de-DE: "https://www.wp-feint.com/de/credential-stuffing-passwoerter/index.md"
  it-IT: "https://www.wp-feint.com/it/credential-stuffing-password-rubate/index.md"
  pt-BR: "https://www.wp-feint.com/pt/credential-stuffing-senhas-vazadas/index.md"
  nl-NL: "https://www.wp-feint.com/nl/credential-stuffing-wachtwoorden/index.md"
---

# Credential stuffing: password leaks and how to defend against them

Many attacks do not crack any password: they reuse a password stolen elsewhere. Here is how to protect yourself.

Many successful attacks do not crack any password: they simply reuse a password already stolen elsewhere. This is credential stuffing. This article explains how it works, why password reuse makes it so effective, and how to protect yourself with simple tools such as Have I Been Pwned, a password manager and [two-factor authentication](https://www.wp-feint.com/glossary/two-factor-authentication/).

## Credential stuffing: reusing rather than guessing

Two often-confused attacks need to be told apart. Classic [brute force](https://www.wp-feint.com/glossary/brute-force-attack/) tries passwords at random or from a dictionary, hoping to hit the right one. Credential stuffing starts from username/password pairs that are already valid, taken from leaks affecting other services, and replays them on your site. The attacker guesses nothing: they are betting that the person reused the same password everywhere.

![Four-step credential stuffing flow: a leak on another site, a combo list is compiled, bots replay it automatically on wp-login and xmlrpc, then access is gained by reuse of the same password.](https://www.wp-feint.com/media/flux-credential-stuffing-en.webp)

This approach is extremely profitable. Since the combinations tested are real, the success rate is far higher than that of blind brute force, and the operation can be automated at scale on networks of compromised machines. On WordPress, the targeted entry points are the `wp-login.php` login page and the older `xmlrpc.php`, which made it possible to test many combinations in a single request.

*Video in French: credential stuffing explained in under two minutes.*

## Why reuse is the real problem

A long, complex password protects nothing if it is identical across ten services. All it takes is for one of those services to suffer a leak for the password to end up in a list shared among attackers, then replayed everywhere. The password's strength does not even come into play: it is already known in plain text or easy to recover.

Data leaks are massive and frequent. Hundreds of millions of passwords already sit in databases available to attackers. Assuming that your old, reused passwords will sooner or later be exposed is a reasonable working hypothesis, not paranoia.

## Checking without revealing: Have I Been Pwned

The Have I Been Pwned service lets you find out whether a password appears in its lists of compromised passwords, without ever sending it the password. The mechanism, called k-anonymity, is worth understanding because it addresses a legitimate concern: no, you are not sending your password to a third-party site to test it.

![Four-step k-anonymity mechanism: local SHA-1 hashing, only the first five characters sent, a list of suffixes received, local comparison, with the full password never leaving the device.](https://www.wp-feint.com/media/k-anonymat-en.webp)

- The password is turned locally into a hash (SHA-1) on your device.
- Only the first five characters of that hash are sent to the service.
- The service returns the list of hash suffixes that begin with that prefix.
- Your device does the comparison itself, offline, to see whether your full hash is in the list.

This service is free and open. If a password shows up in the results, consider it burned: change it everywhere it is used, even if it seems strong to you.

## A sound password policy

| Principle | Why |
| --- | --- |
| A unique password for each service | A leak elsewhere does not spread to your site |
| Long passwords (passphrase) | Length matters more than complexity in resisting brute force |
| A password manager | Lets you have unique passwords without memorizing them |
| Two-factor authentication | A stolen password is no longer enough to log in |
| Change any password reported as compromised | An exposed password is public, however strong it is |

*The five habits that pull the rug out from under credential stuffing.*

The password manager is the key tool: it generates and remembers a different password for each service, which makes reuse impossible without any effort on your part. In practice, it is the most effective measure against this attack.

*Video in French: a more detailed breakdown of the credential stuffing attack.*

## On the WordPress side: slow attackers down and require a second factor

Password policy concerns each user. On the site side, two complementary measures sharply reduce the effectiveness of credential stuffing.

The [login attempt limiting](https://www.wp-feint.com/features/login-attempt-limiting/) in WP Feint Pro slows down automated replay: beyond a threshold of failures per network address, attempts are blocked, which makes an attack that relies on volume pointless. The guide is honest about its scope: it is application-level limiting, not a network defense against a heavily distributed attack, but it discourages the vast majority of automated campaigns.

Above all, [two-factor authentication](https://www.wp-feint.com/features/two-factor-authentication/) changes the equation. Even with the right password, the attacker runs into a one-time code they do not have. An account protected by a second factor withstands credential stuffing even if its password has leaked. That is why it is recommended to make it mandatory, at least for administrators. Note that a protected account only accepts dedicated application passwords for [XML-RPC](https://www.wp-feint.com/glossary/xml-rpc/) and the REST API, which closes the historical route for credential stuffing through `xmlrpc.php`.

## Length over complexity

Modern recommendations, notably those from the US NIST, have turned their back on the old obsession with mandatory special characters and changes every three months. Those rules mainly pushed users to create predictable passwords and reuse them. The current approach favors length: a passphrase of several words, easy to remember, resists brute force better than a short password packed with symbols.

The same reasoning advises against forced, periodic changes when nothing points to a compromise. On the other hand, a password must be changed immediately if it appears in a leak. Checking against a list of compromised passwords, such as Have I Been Pwned's, is precisely what makes a better replacement for systematic rotation.

## Passkeys, the next step

Beyond the password, passkeys represent a fundamental shift. Based on cryptography tied to the device, they do not rely on any shared secret that could leak from one service to another. There is therefore nothing to replay: a passkey is, by design, immune to credential stuffing and classic phishing. Their adoption is growing, and they coexist with passwords during the transition.

Until they become widespread, the combination of a password manager, unique passwords and two-factor authentication already covers most of the risk. Spotting a compromise early matters too: watch for unusual successful logins and account creations, signs that a valid credential may have been successfully replayed.

### Key takeaways

- Credential stuffing replays passwords already stolen elsewhere: it guesses nothing.
- Reuse is the real problem; a unique password for each service puts an end to it.
- Have I Been Pwned tests a password without ever receiving it, thanks to k-anonymity.
- Login limiting and two-factor authentication make automated replay ineffective.

## Sources

- [OWASP, Credential stuffing](https://owasp.org/www-community/attacks/Credential_stuffing)
- [OWASP, Credential Stuffing Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html)

Other sources consulted: security research publications.
