How a Simple Profile Update Led to Cross-Tenant Data Exposure
The profile update endpoint accepted a client-supplied company identifier without verifying that the authenticated user belonged to that organisation, allowing the user to associate their account with other tenants. This caused the application to return metadata such as company names, owner email addresses, subscription details and usage metrics belonging to other organisations.
medium.com
Published on medium.com
Free Article Link: Click for free!
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 a client-controlled company identifier in the profile update request and failed to verify that the authenticated user was authorised to associate their account with that organisation.
Impact
An authenticated user could associate their account with other organisations and disclose metadata such as company names, owner email addresses, subscription information and usage metrics across multiple tenants, although additional authorisation controls prevented direct access to sensitive resources such as files and presentations.
What the attacker needed
An authenticated account on the platform
The fix
The server should validate that the authenticated user is authorised to associate their account with the supplied company identifier before accepting the update.
How it was found
- Review the profile update request and notice it contains a company identifier.
- Modify the company identifier to a different value and submit the request.
- Observe that the server accepts the change and associates the account with the other organisation.
- Repeat with several other company identifiers to confirm the behaviour is consistent.
- Observe that the response discloses metadata belonging to the selected organisation.
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.
When you log in to a website, the server should check not just who you are but also what you are allowed to do. Here, a profile update form let the user change which company their account was linked to, and the server trusted that choice without checking. As a result, the user could see private details about other companies that shared the same platform.
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.