{
    "title": "User enumeration",
    "seo_title": "User enumeration: definition and examples",
    "h1": "User enumeration",
    "description": "User enumeration definition: a reconnaissance technique that lists a site’s valid usernames, with WordPress examples (?author=, REST API).",
    "lead": "User enumeration is a reconnaissance technique that builds a list of a site's valid usernames by exploiting its responses: error messages, author URLs, public APIs. The attacker then focuses password-guessing attempts on these real accounts.",
    "language": "en",
    "locale": "en-US",
    "type": "definition",
    "url": "https://www.wp-feint.com/glossary/user-enumeration/",
    "canonical": "https://www.wp-feint.com/glossary/user-enumeration/",
    "markdown": "https://www.wp-feint.com/glossary/user-enumeration/index.md",
    "json": "https://www.wp-feint.com/glossary/user-enumeration/index.json",
    "published": "2026-10-28T08:00:00+00:00",
    "modified": "2026-11-22T12:07:18+00:00",
    "site": {
        "name": "WP Feint",
        "url": "https://www.wp-feint.com/"
    },
    "translations": [
        {
            "language": "en",
            "hreflang": "en-US",
            "title": "User enumeration",
            "url": "https://www.wp-feint.com/glossary/user-enumeration/",
            "markdown": "https://www.wp-feint.com/glossary/user-enumeration/index.md",
            "json": "https://www.wp-feint.com/glossary/user-enumeration/index.json"
        },
        {
            "language": "fr",
            "hreflang": "fr-FR",
            "title": "Énumération d’utilisateurs",
            "url": "https://www.wp-feint.com/fr/definitions/enumeration-utilisateurs/",
            "markdown": "https://www.wp-feint.com/fr/definitions/enumeration-utilisateurs/index.md",
            "json": "https://www.wp-feint.com/fr/definitions/enumeration-utilisateurs/index.json"
        },
        {
            "language": "es",
            "hreflang": "es-ES",
            "title": "Enumeración de usuarios",
            "url": "https://www.wp-feint.com/es/glosario/enumeracion-de-usuarios/",
            "markdown": "https://www.wp-feint.com/es/glosario/enumeracion-de-usuarios/index.md",
            "json": "https://www.wp-feint.com/es/glosario/enumeracion-de-usuarios/index.json"
        },
        {
            "language": "de",
            "hreflang": "de-DE",
            "title": "Benutzer-Enumeration",
            "url": "https://www.wp-feint.com/de/glossar/benutzer-enumeration/",
            "markdown": "https://www.wp-feint.com/de/glossar/benutzer-enumeration/index.md",
            "json": "https://www.wp-feint.com/de/glossar/benutzer-enumeration/index.json"
        },
        {
            "language": "it",
            "hreflang": "it-IT",
            "title": "Enumerazione degli utenti",
            "url": "https://www.wp-feint.com/it/glossario/enumerazione-utenti/",
            "markdown": "https://www.wp-feint.com/it/glossario/enumerazione-utenti/index.md",
            "json": "https://www.wp-feint.com/it/glossario/enumerazione-utenti/index.json"
        },
        {
            "language": "pt",
            "hreflang": "pt-BR",
            "title": "Enumeração de usuários",
            "url": "https://www.wp-feint.com/pt/glossario/enumeracao-de-usuarios/",
            "markdown": "https://www.wp-feint.com/pt/glossario/enumeracao-de-usuarios/index.md",
            "json": "https://www.wp-feint.com/pt/glossario/enumeracao-de-usuarios/index.json"
        },
        {
            "language": "nl",
            "hreflang": "nl-NL",
            "title": "Gebruikersenumeratie",
            "url": "https://www.wp-feint.com/nl/woordenlijst/gebruikersenumeratie/",
            "markdown": "https://www.wp-feint.com/nl/woordenlijst/gebruikersenumeratie/index.md",
            "json": "https://www.wp-feint.com/nl/woordenlijst/gebruikersenumeratie/index.json"
        }
    ],
    "headings": [
        {
            "level": 1,
            "text": "User enumeration"
        },
        {
            "level": 2,
            "text": "How enumeration works"
        },
        {
            "level": 2,
            "text": "Sources of enumeration on WordPress"
        },
        {
            "level": 2,
            "text": "For WordPress: how to protect your site"
        }
    ],
    "body": "A login pair has two halves: the username and the password. If the attacker already knows the first one, they focus their attempts on real accounts instead of random names. User enumeration is therefore a classic reconnaissance step that sets up a [brute-force attack](https://www.wp-feint.com/glossary/brute-force-attack/) or [credential stuffing](https://www.wp-feint.com/glossary/credential-stuffing/). The OWASP Web Security Testing Guide lists it among identity management tests.\n\n## How enumeration works\n\nThe attacker looks for a difference in behavior between an account that exists and one that doesn't. OWASP lists several:\n\n- a different error message for “unknown username” and “incorrect password”;\n- an HTTP status code, response size or page title that varies;\n- a longer response time when the account exists, for example because a reset email is being sent;\n- a user-specific URL that returns 403 if the user exists and 404 otherwise;\n- a forgotten password form that confirms or denies the account exists.\n\nThe defense in principle is the same everywhere: return identical messages and responses in every case.\n\n## Sources of enumeration on WordPress\n\nBy default, WordPress publishes several pieces of information that lead to usernames. An author's slug (`user_nicename`) is derived from the login username: knowing the slug often means knowing the username.\n\n![Five-step diagram: the bot requests /?author=1 and gets a redirect to /author/ followed by the slug, reads the /wp-json/wp/v2/users route and the author sitemap, compares login error messages, then has a list of confirmed usernames for its password guessing](https://www.wp-feint.com/media/2026/10/enumeration-sources-wordpress-en.webp)\n\n- **`/?author=1`** redirects to the author archive, which contains their slug.\n- **The REST API** (`/wp-json/wp/v2/users`) returns the numeric ID, display name and slug of authors who have published. In 2017, CVE-2017-5487 was assigned to WordPress 4.7 for an overly broad list, fixed in 4.7.1.\n- **The users sitemap** (`wp-sitemap-users-1.xml`), present since WordPress 5.5.\n- **oEmbed responses**, which contain the author's name and archive link.\n- **The login form**, which distinguishes an unknown username from an incorrect password.\n\nOur article [on WordPress user enumeration](https://www.wp-feint.com/wordpress-user-enumeration/) shows how to test each of these sources on your site in two minutes, and [the one on the REST API](https://www.wp-feint.com/wordpress-rest-api-security/) explains how to close the users route to anonymous visitors without breaking the editor.\n\n*Video: “WordPress Enumeration Explained: Usernames, Plugins, Themes, and API Routes” (Wordfence)*\n\n## For WordPress: how to protect your site\n\n1. Don't publish with an administrator account: create an Author or Editor account for writing. An account that has published nothing appears neither in the API, nor in the sitemap, nor in the archives.\n2. Choose a “Display name publicly as” value different from the username, under Users, Profile (the slug, however, doesn't change).\n3. Close unnecessary sources: author archives, the REST users route for anonymous visitors, the sitemap's `users` provider, the author in oEmbed responses.\n4. Make the login error message generic.\n\nKeep things in proportion: a username is not a secret. A long, unique password and [two-factor authentication](https://www.wp-feint.com/glossary/two-factor-authentication/) protect the account even if its name is known; hiding the username only takes away a free advantage from the attacker.\n\nWP Feint Pro's [Hardening](https://www.wp-feint.com/features/hardening/) module closes these sources with one option: `/?author=` and author archives, the REST users route for anonymous visitors, the author sitemap, the author in oEmbed responses and neutral error messages. Logged-in users and other REST routes keep working. Names published elsewhere (post bylines, the theme, an email address) remain visible.\n\n## Related terms\n\n- [Brute-force attack](https://www.wp-feint.com/glossary/brute-force-attack/)\n- [Credential stuffing](https://www.wp-feint.com/glossary/credential-stuffing/)\n- [Two-factor authentication (2FA)](https://www.wp-feint.com/glossary/two-factor-authentication/)\n- [XML-RPC](https://www.wp-feint.com/glossary/xml-rpc/)\n- [Fingerprinting](https://www.wp-feint.com/glossary/fingerprinting/)\n\n\n## Sources\n\n- [OWASP WSTG : Account Enumeration and Guessable User Account](https://wstg.owasp.org/latest/4-Web_Application_Security_Testing/03-Identity_Management/04-Account_Enumeration_and_Guessable_User_Account)\n- [WordPress REST API Handbook : Users](https://developer.wordpress.org/rest-api/reference/users/)\n- [NVD : CVE-2017-5487](https://nvd.nist.gov/vuln/detail/CVE-2017-5487)",
    "definition": "User enumeration is a reconnaissance technique that builds a list of a site's valid usernames by exploiting its responses: error messages, author URLs, public APIs. The attacker then focuses password-guessing attempts on these real accounts.",
    "group": "Web security",
    "aka": [
        "username enumeration",
        "account enumeration",
        "author enumeration"
    ],
    "related": [
        {
            "title": "Brute-force attack",
            "url": "https://www.wp-feint.com/glossary/brute-force-attack/",
            "markdown": "https://www.wp-feint.com/glossary/brute-force-attack/index.md"
        },
        {
            "title": "Credential stuffing",
            "url": "https://www.wp-feint.com/glossary/credential-stuffing/",
            "markdown": "https://www.wp-feint.com/glossary/credential-stuffing/index.md"
        },
        {
            "title": "Two-factor authentication (2FA)",
            "url": "https://www.wp-feint.com/glossary/two-factor-authentication/",
            "markdown": "https://www.wp-feint.com/glossary/two-factor-authentication/index.md"
        },
        {
            "title": "XML-RPC",
            "url": "https://www.wp-feint.com/glossary/xml-rpc/",
            "markdown": "https://www.wp-feint.com/glossary/xml-rpc/index.md"
        },
        {
            "title": "Fingerprinting",
            "url": "https://www.wp-feint.com/glossary/fingerprinting/",
            "markdown": "https://www.wp-feint.com/glossary/fingerprinting/index.md"
        }
    ],
    "sources": [
        {
            "title": "OWASP WSTG : Account Enumeration and Guessable User Account",
            "url": "https://wstg.owasp.org/latest/4-Web_Application_Security_Testing/03-Identity_Management/04-Account_Enumeration_and_Guessable_User_Account"
        },
        {
            "title": "WordPress REST API Handbook : Users",
            "url": "https://developer.wordpress.org/rest-api/reference/users/"
        },
        {
            "title": "NVD : CVE-2017-5487",
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-5487"
        }
    ],
    "format": "application/json"
}