Authentication Bypass via Email Domain Suffix Manipulation
The application only checked the email domain suffix on the client side, so an attacker could change the domain in the HTTP request to register with an external email address. This allowed the attacker to access other users' applications, self-approve applications, and perform admin-level CRUD operations via API endpoints.
Published on bishal0x01.medium.com
Authentication is the process of verifying the identity of a user, system, or entity to ensure they are who they claim to be before granting access to resources. This process involves presenting credentials, like usernames and passwords, and validating them against a trusted source.
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 server trusted the client-side email suffix check and did not re-validate the email domain on the backend, and API endpoints lacked proper authorization checks.
Impact
An attacker could bypass authentication, access all users' and admins' sensitive data, perform CRUD operations as an admin, access internal documents, and self-approve critical workflows.
What the attacker needed
Ability to intercept HTTP requests; a valid external email address
The fix
The issue was fixed by validating the email domain on the backend and enforcing proper access controls on API endpoints.
How it was found
- Intercept the registration request and change the email domain to an external domain.
- Complete registration and verify the account via the confirmation email.
- Modify application IDs to access other users' applications.
- Use API endpoints to self-approve applications and perform admin CRUD actions.
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.
The website tried to make sure only people with a company email address could sign up, but it only checked this in the browser, not on the server. By intercepting the request and changing the email domain, the attacker could sign up with any email address. Once inside, they could see and change other people's data because the server did not properly check who was allowed to do what.
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.