The API That Returned Every Customer’s Private AI Assistant
An API endpoint that listed AI assistants returned every customer's private configurations to any authenticated user, regardless of which organisation they belonged to. An attacker with a free account could read unpublished assistants, internal prompts, voice settings and other proprietary metadata from across the platform.
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
The API required authentication but did not filter results by the authenticated user's tenant or organisation, so every logged-in account received the same global dataset.
Impact
Any authenticated user could read private and unpublished AI assistant configurations, including internal prompts and business-specific instructions, from every organisation on the platform; the issue allowed disclosure only, not modification.
What the attacker needed
A free account on the platform; ability to send an authenticated API request
The fix
The endpoint should scope every query to the tenant associated with the authenticated account so that only that organisation's assistants are returned.
How it was found
- Create a low-privileged account and send the request that lists AI assistants.
- Observe that the response contains thousands of assistants with varied names, dates, settings and unpublished status.
- Create a second, unrelated account and repeat the same request.
- Confirm the second account receives the identical dataset and identifiers.
- Remove authentication entirely and confirm the API returns an unauthorized response.
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 site checks who you are (authentication). It should also check what you are allowed to see (authorization). Here, the site checked the first but not the second, so any logged-in user could see data belonging to every other customer.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.