How I Exploited an Auth0 Misconfiguration to Bypass Login Restrictions
The application disabled its signup page but left Auth0's database signup endpoint enabled, so an attacker could create an account by sending a crafted request to that endpoint. The attacker then logged in with the new account, bypassing the intended restriction that only authorised parties could access the system.
Published on amjadali110.medium.com
I recently found an interesting bug while hunting on a program, and I’m excited to share it with you all. I am sharing this write-up after a very long time because I was too busy with my job, college, learning new stuff, and so on personally � .
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Auth0 database connection had public signups enabled, so the signup API remained reachable even though the application's own signup page was disabled.
Impact
An attacker could create an unauthorised account and gain access to the application, bypassing the intended restriction that only authorised parties could log in.
What the attacker needed
Knowledge of the Auth0 client_id and connection; network access to the Auth0 endpoint
The fix
The fix is to enable the 'Disable Sign Ups' setting in the Auth0 database connection configuration.
How it was found
- Intercept the login request to see the request body structure.
- Change the endpoint to the Auth0 signup endpoint and adjust parameters to email and connection.
- Send the modified request to create an account.
- Log in with the newly created credentials.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Auth0 is a service that handles login and signup for websites. The site turned off its own signup page, but the Auth0 service behind it still allowed new accounts to be created directly. That let anyone make an account and log in, even though the site meant to stop that.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.