strix/skills/technologies/auth0.md
Auth0 misconfigurations enable account takeover, cross-tenant data access, and privilege escalation through Rules/Actions, loose application settings, weak API authorization, and token acceptance bugs in consuming applications. Test both the Auth0 tenant configuration and how downstream APIs validate Auth0-issued tokens.
Auth0 Components
Token Types
Management
/api/v2/)Tenant Discovery
# From app config, JS bundles, mobile apps
domain: tenant.us.auth0.com / tenant.eu.auth0.com / login.customdomain.com
client_id, audience, scope values in authorize URLs
OIDC Discovery
GET https://TENANT.auth0.com/.well-known/openid-configuration
GET https://TENANT.auth0.com/.well-known/jwks.json
Authenticated Userinfo (requires bearer access token — unauthenticated requests return 401)
GET https://TENANT.auth0.com/userinfo
Authorization: Bearer <access_token>
Application Fingerprint
https://TENANT.auth0.com/authorize?client_id=...auth0-js, @auth0/auth0-spa-js, auth0-react in frontend bundlesaudience parameter in token requestsManagement API Exposure
read:users, update:users, create:users scopesCallback URL / Origin Misconfigurations
https://app.com/*, http://localhost:*com.app://callback)Token Settings
Missing Scope/RBAC Enforcement
scope or permissions claim/userinfo or validate permissions arrayaudience accepted — token for App A works on App B's APITest:
# Token for audience A used against API B
Authorization: Bearer <token_with_audience_A>
Post-Login Rule/Action Injection
user.app_metadata.role = 'admin' // if user can set app_metadata via signup/API
context.authorization manipulation in ActionsSignup / Registration Actions
pre-user-registration not blocking disposable emails or role self-assignmentorg_id validation in API — user from Org A accesses Org B datadelete:users, update:users_app_metadata/api/v2/users enumerationget_user script returning excessive profile fieldsCross-Application Token Confusion
client_secret reused across environments (dev/prod)aud validationResource Owner Password Grant (if enabled)
Impersonation / Delegation
act_as or delegation features misconfigured (legacy features in older tenants)user_metadata / app_metadataaud, iss, scope/permissions on every requestapp_metadata writable only by admin via Management API, not user signuporg_id in token and API enforces itaudience and scope reveal API targetspermissions, scope, org_id, https://.../roles claimsoauth and authentication_jwt skills for flow/token layer testingAuth0 security spans tenant configuration (callbacks, MFA, Rules) and downstream API token validation (aud, scope, permissions, org_id). A perfectly configured Universal Login fails if the API accepts tokens without enforcing Auth0's authorization model.