Cybersecurity glossary

What is OAuth Misconfiguration?

Learn what OAuth misconfiguration is, which deployment mistakes enable account takeover and token theft, and how to harden redirect URIs, grants, scopes, and client settings.

Identity and accessUpdated July 20, 2026
Also known asInsecure OAuth configurationOAuth security misconfiguration

Definition

OAuth misconfiguration is the insecure setup or implementation of OAuth 2.0 (or related identity flows) such that redirect handling, clients, grants, scopes, or token validation fail to enforce intended security properties, enabling impersonation or unauthorized API access.

Why OAuth misconfiguration matters

OAuth can be implemented correctly and still fail in production because of a single loose setting: a wildcard redirect, a missing state check, or a client that trusts any bearer token. OAuth misconfiguration turns a delegated-access framework into an account takeover path.

These bugs are attractive because they often look like “integration glue” rather than security code—and because successful exploits yield real tokens for real APIs.

High-impact misconfigurations

Unsafe redirect URIs

Partial matches, wildcards, or open redirects let codes/tokens land on attacker sites.

Missing PKCE / state

Public clients without PKCE and CSRF `state` checks invite code interception and login CSRF.

Dangerous grants enabled

Legacy implicit or password grants expand attack surface beyond modern guidance.

Overbroad scopes

Clients request and receive far more privilege than the feature needs.

Weak token validation

Resource servers skip audience, issuer, or signature checks.

Confused client secrets

Public apps ship secrets, or confidential clients leak them in mobile binaries.

How attackers abuse misconfig

1

Map the OAuth endpoints

Identify authorize/token URLs, client IDs, redirect URIs, and scopes in use.

2

Probe redirect handling

Test variations, open redirects, and parameter pollution against registered callbacks.

3

Abuse the grant

Steal or inject authorization codes, skip PKCE, or force victim consent flows.

4

Obtain tokens

Exchange stolen material or receive tokens at an attacker-controlled redirect.

5

Call APIs as the victim

Use access tokens against resource servers that trust them.

6

Persist via refresh tokens

Long-lived refresh tokens keep access after the initial redirect theft.

Hardening checklist

AreaRequired practice
Redirect URIsExact string match allowlists; no wildcards or open redirects
Public clientsAuthorization code + PKCE; no embedded client secrets
CSRF on loginUnpredictable state (and/or modern PAR/secured flows)
ScopesLeast privilege; explicit consent for sensitive scopes
Resource serversValidate iss/aud/exp/sig/scopes on every call
  • Audit every OAuth client registration for redirect URI hygiene.
  • Disable unused grants and legacy flows on the authorization server.
  • Enforce PKCE for mobile and SPA clients.
  • Verify mix-up and cross-client token acceptance cannot occur.
  • Rotate and vault confidential client credentials.
  • Monitor unusual consent grants and redirect failures.
  • Pentest OAuth the same way you pentest login—end to end with real clients.
  • Align implementations with RFC 9700 OAuth security BCP.

The practical takeaway

OAuth misconfiguration is insecure OAuth setup and implementation—especially around redirects, grants, PKCE/state, scopes, and token validation. The framework’s security guarantees only hold when those details are right.

Treat OAuth clients as production identity components: exact redirects, modern grants, least-privilege scopes, and strict token checks on every API.

Related security terms

Frequently asked questions

What is OAuth misconfiguration in simple terms?

It means OAuth was set up insecurely—for example allowing dangerous redirect URLs, skipping PKCE, or accepting tokens without proper checks—so attackers can steal logins or access data.

What is the most common OAuth flaw?

Weak redirect URI validation is among the most frequent and impactful issues because authorization codes or tokens can be delivered to attacker-controlled endpoints.

Why is missing PKCE dangerous?

Public clients without PKCE are easier targets for authorization code interception and injection attacks on mobile and SPA flows.

Can overbroad scopes be a misconfiguration?

Yes. Granting always-on wide scopes turns every stolen token into a high-impact incident and violates least privilege.

Is using the implicit grant a misconfiguration today?

For new applications, yes—it is discouraged. Prefer authorization code with PKCE per current OAuth security guidance.

How do you test for OAuth misconfiguration?

Review registered redirect URIs, try parameter manipulations, verify state/PKCE enforcement, inspect token validation, and test whether tokens from one client are accepted elsewhere incorrectly.

Who owns fixing OAuth misconfig?

Usually identity platform owners plus each client application team. Both authorization server settings and client implementation must be correct.

References

Explore authoritative guidance and frameworks related to oauth misconfiguration.

Explore every security definition

Return to the glossary to search by term, alias, starting letter, or security category.

Browse glossary