Skip to content
Access control Write-up Intermediate

Hiding A Signup Button Isnt Security From Client Side Controls To Cross Tenant Data Exposure

The application hid the signup option in the UI but the backend API still accepted registration requests, and the signup response returned the email confirmation token. An attacker could create an account, confirm it without email access, set their own is_staff flag to true, and then read users and API keys belonging to other tenants.

Manohar_K Follow

Published on infosecwriteups.com

A common security mistake is to assume that if a feature is hidden from the user interface, it is also disabled.

Manohar_K, on infosecwriteups.com

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 backend trusted client-supplied values and frontend flags instead of enforcing authorisation server-side, so registration, the confirmation token, the is_staff field and the tenant identifier were all accepted from the client without proper checks.

Impact

An unauthenticated attacker could create and confirm an account, escalate to staff, cross tenant boundaries, enumerate other organisations' users and retrieve API credentials belonging to multiple tenants.

What the attacker needed

No account needed; access to the public login page; ability to send direct API requests

The fix

The backend should enforce registration policy, never return confirmation tokens in the signup response, reject or authorise changes to security-sensitive fields such as is_staff, derive the tenant from the authenticated identity, and stop returning API keys in list endpoints.

How it was found

  1. Inspect the login page JavaScript bundles and find the API configuration and endpoints.
  2. Visit the signup URL directly even though no signup button is shown.
  3. Send a registration request to the people endpoint with an email, password and domain identifier.
  4. Use the confirmation token returned in the signup response to send a password request and receive an authentication token.
  5. Send an update request to the people endpoint setting is_staff to true.
  6. Use the staff token to query the people endpoint with another tenant's domain identifier and then the domains endpoint to retrieve API keys.

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 hid the signup button, but the server behind it still accepted new account requests. When it created an account, it also handed back the secret code meant to prove you own the email address, so the attacker could confirm the account without ever reading the inbox. After logging in, the attacker could mark their own account as staff and then see other organisations' users and API keys.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.