{
    "title": "Privilege escalation",
    "seo_title": "Privilege escalation: definition and WordPress examples",
    "h1": "Privilege escalation",
    "description": "Privilege escalation: vertical or horizontal, real WordPress examples, current_user_can, permission_callback and settings that protect your site.",
    "lead": "Privilege escalation is an attack that grants more rights than were originally given: a visitor becomes an administrator, a subscriber changes settings, a customer reads another customer's data. It exploits a vulnerability, a missing access check or a misconfiguration.",
    "language": "en",
    "locale": "en-US",
    "type": "definition",
    "url": "https://www.wp-feint.com/glossary/privilege-escalation/",
    "canonical": "https://www.wp-feint.com/glossary/privilege-escalation/",
    "markdown": "https://www.wp-feint.com/glossary/privilege-escalation/index.md",
    "json": "https://www.wp-feint.com/glossary/privilege-escalation/index.json",
    "published": "2026-10-28T08:00:00+00:00",
    "modified": "2026-11-22T12:07:14+00:00",
    "site": {
        "name": "WP Feint",
        "url": "https://www.wp-feint.com/"
    },
    "translations": [
        {
            "language": "en",
            "hreflang": "en-US",
            "title": "Privilege escalation",
            "url": "https://www.wp-feint.com/glossary/privilege-escalation/",
            "markdown": "https://www.wp-feint.com/glossary/privilege-escalation/index.md",
            "json": "https://www.wp-feint.com/glossary/privilege-escalation/index.json"
        },
        {
            "language": "fr",
            "hreflang": "fr-FR",
            "title": "Élévation de privilèges",
            "url": "https://www.wp-feint.com/fr/definitions/elevation-de-privileges/",
            "markdown": "https://www.wp-feint.com/fr/definitions/elevation-de-privileges/index.md",
            "json": "https://www.wp-feint.com/fr/definitions/elevation-de-privileges/index.json"
        },
        {
            "language": "es",
            "hreflang": "es-ES",
            "title": "Escalada de privilegios",
            "url": "https://www.wp-feint.com/es/glosario/escalada-de-privilegios/",
            "markdown": "https://www.wp-feint.com/es/glosario/escalada-de-privilegios/index.md",
            "json": "https://www.wp-feint.com/es/glosario/escalada-de-privilegios/index.json"
        },
        {
            "language": "de",
            "hreflang": "de-DE",
            "title": "Rechteausweitung (Privilege Escalation)",
            "url": "https://www.wp-feint.com/de/glossar/rechteausweitung/",
            "markdown": "https://www.wp-feint.com/de/glossar/rechteausweitung/index.md",
            "json": "https://www.wp-feint.com/de/glossar/rechteausweitung/index.json"
        },
        {
            "language": "it",
            "hreflang": "it-IT",
            "title": "Escalation dei privilegi",
            "url": "https://www.wp-feint.com/it/glossario/escalation-dei-privilegi/",
            "markdown": "https://www.wp-feint.com/it/glossario/escalation-dei-privilegi/index.md",
            "json": "https://www.wp-feint.com/it/glossario/escalation-dei-privilegi/index.json"
        },
        {
            "language": "pt",
            "hreflang": "pt-BR",
            "title": "Escalonamento de privilégios",
            "url": "https://www.wp-feint.com/pt/glossario/escalonamento-de-privilegios/",
            "markdown": "https://www.wp-feint.com/pt/glossario/escalonamento-de-privilegios/index.md",
            "json": "https://www.wp-feint.com/pt/glossario/escalonamento-de-privilegios/index.json"
        },
        {
            "language": "nl",
            "hreflang": "nl-NL",
            "title": "Privilege-escalatie",
            "url": "https://www.wp-feint.com/nl/woordenlijst/privilege-escalatie/",
            "markdown": "https://www.wp-feint.com/nl/woordenlijst/privilege-escalatie/index.md",
            "json": "https://www.wp-feint.com/nl/woordenlijst/privilege-escalatie/index.json"
        }
    ],
    "headings": [
        {
            "level": 1,
            "text": "Privilege escalation"
        },
        {
            "level": 2,
            "text": "Vertical and horizontal escalation"
        },
        {
            "level": 2,
            "text": "WordPress examples"
        },
        {
            "level": 2,
            "text": "For WordPress: on the developer side"
        },
        {
            "level": 2,
            "text": "For WordPress: on the administrator side"
        }
    ],
    "body": "In MITRE's ATT&CK framework, privilege escalation is a tactic in its own right: the attacker tries to gain higher-level permissions by taking advantage of system weaknesses, misconfigurations or vulnerabilities. The CWE catalog files the most common cause under “Improper Privilege Management”: the software doesn't properly assign, track or check a user's privileges. On a WordPress site, it is one of the most dangerous vulnerability families, because it turns a simple registration form into administrator access.\n\n## Vertical and horizontal escalation\n\nThere are two directions. **Vertical** escalation grants a higher role: an anonymous visitor becomes an administrator, a subscriber changes settings. **Horizontal** escalation stays at the same level but crosses the barrier between users: a customer reads another customer's orders. This second form often goes through an [IDOR vulnerability](https://www.wp-feint.com/glossary/idor/), where changing an ID in the request is all it takes.\n\n![Three-column table: vertical escalation (visitor who creates an administrator account, subscriber who changes settings, web account that becomes root), horizontal escalation (customer who reads another's order, author who edits another author's post, often an IDOR vulnerability) and defenses (check the capability on every action, least privilege, watch for new administrators)](https://www.wp-feint.com/media/2026/10/elevation-privileges-types-en.webp)\n\n## WordPress examples\n\n- **Ultimate Member, CVE-2023-3460**: before version 2.6.7, the plugin didn't stop visitors from creating accounts with arbitrary capabilities, and therefore administrators. The flaw was being exploited when it was disclosed. [The full story](https://www.wp-feint.com/ultimate-member-cve-2023-3460-administrators/) lists the checks to run afterward.\n- **LiteSpeed Cache, CVE-2024-28000**: an incorrect privilege assignment, with no authentication, up to version 6.3.0.1, rated 9.8 on the [CVSS](https://www.wp-feint.com/glossary/cvss/) scale. [The three LiteSpeed Cache vulnerabilities of 2024](https://www.wp-feint.com/litespeed-cache-privilege-escalation-flaws/) show how a user simulation feature became a way in.\n\n*Video: “What Is Privilege Escalation?” (Netwrix)*\n\n## For WordPress: on the developer side\n\nEvery sensitive action must check a **capability** with `current_user_can()`, at the time of the action, rather than just hiding a button in the interface. The official documentation advises against checking a role name, which can give unreliable results: you check the capability actually needed, and for a specific piece of content you pass its ID.\n\n```\nif ( ! current_user_can( 'edit_post', $post_id ) ) {\n    wp_die( 'You are not allowed to do this.', 403 );\n}\n```\n\nREST API routes must declare a `permission_callback`: since WordPress 5.5, leaving it out triggers a notice, and `__return_true` is only acceptable for a truly public route. Finally, a [nonce](https://www.wp-feint.com/glossary/nonce/) protects against request forgery but, as the documentation points out, it should never be used as authorization on its own.\n\n## For WordPress: on the administrator side\n\n- Under Settings, General, only check “Anyone can register” if the site needs it, and keep Subscriber as the default role.\n- Apply least privilege to roles and capabilities: an editor doesn't need to be an administrator, and neither does an agency outside of maintenance work.\n- Update plugins that handle accounts, registrations or roles first.\n- Check the list of administrators regularly, for example with `wp user list --role=administrator`.\n\nA successful escalation almost always leaves a trace: an account created or a role changed. The [WP Feint Pro activity log](https://www.wp-feint.com/features/administrator-activity-log/) records these events with their date, which helps you spot an unexpected administrator; it doesn't block exploitation of the flaw itself, which is the job of updates and a firewall.\n\n## Related terms\n\n- [IDOR (insecure direct object reference)](https://www.wp-feint.com/glossary/idor/)\n- [Nonce](https://www.wp-feint.com/glossary/nonce/)\n- [CVSS score](https://www.wp-feint.com/glossary/cvss/)\n- [Two-factor authentication (2FA)](https://www.wp-feint.com/glossary/two-factor-authentication/)\n- [CSRF (cross-site request forgery)](https://www.wp-feint.com/glossary/csrf/)\n\n\n## Sources\n\n- [MITRE ATT&CK : Privilege Escalation (TA0004)](https://attack.mitre.org/tactics/TA0004/)\n- [MITRE CWE-269 : Improper Privilege Management](https://cwe.mitre.org/data/definitions/269.html)\n- [WordPress Developer Resources : current_user_can()](https://developer.wordpress.org/reference/functions/current_user_can/)\n- [WordPress REST API Handbook : Adding Custom Endpoints](https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/)",
    "definition": "Privilege escalation is an attack that grants more rights than were originally given: a visitor becomes an administrator, a subscriber changes settings, a customer reads another customer's data. It exploits a vulnerability, a missing access check or a misconfiguration.",
    "group": "Web security",
    "aka": [
        "elevation of privilege",
        "privilege elevation",
        "EoP",
        "vertical privilege escalation"
    ],
    "related": [
        {
            "title": "IDOR (insecure direct object reference)",
            "url": "https://www.wp-feint.com/glossary/idor/",
            "markdown": "https://www.wp-feint.com/glossary/idor/index.md"
        },
        {
            "title": "Nonce",
            "url": "https://www.wp-feint.com/glossary/nonce/",
            "markdown": "https://www.wp-feint.com/glossary/nonce/index.md"
        },
        {
            "title": "CVSS score",
            "url": "https://www.wp-feint.com/glossary/cvss/",
            "markdown": "https://www.wp-feint.com/glossary/cvss/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": "CSRF (cross-site request forgery)",
            "url": "https://www.wp-feint.com/glossary/csrf/",
            "markdown": "https://www.wp-feint.com/glossary/csrf/index.md"
        }
    ],
    "sources": [
        {
            "title": "MITRE ATT&CK : Privilege Escalation (TA0004)",
            "url": "https://attack.mitre.org/tactics/TA0004/"
        },
        {
            "title": "MITRE CWE-269 : Improper Privilege Management",
            "url": "https://cwe.mitre.org/data/definitions/269.html"
        },
        {
            "title": "WordPress Developer Resources : current_user_can()",
            "url": "https://developer.wordpress.org/reference/functions/current_user_can/"
        },
        {
            "title": "WordPress REST API Handbook : Adding Custom Endpoints",
            "url": "https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/"
        }
    ],
    "format": "application/json"
}