Exploiting IDOR in a Support Portal Chatbot
An API endpoint on a support portal chatbot returned customer details for any sequential user ID, and also worked without an authentication token. An attacker could enumerate all users and read their personal information.
infosecwriteups.com
Published on infosecwriteups.com
Sometimes, I avoid testing support or help portals, assuming they might be hosted on third-party platforms like Jira or Zendesk, to save time and effort and avoid dups. However, after this incident, I’ve learned never to make that assumption again.
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 deprecated API endpoint lacked both object-level authorisation and authentication checks, and used predictable sequential identifiers.
Impact
An attacker could enumerate all users and read personal data such as names, emails, account statuses and roles, without any authentication.
What the attacker needed
A service account number; no authentication token needed
The fix
The vulnerable endpoint was removed after the team confirmed it was a deprecated API overlooked during decommissioning.
How it was found
- Start a chat on the support portal by entering a name, email and service account number.
- Use an existing service account number to pass verification.
- Review Burp Suite history and notice API calls such as Authenticate, Verify and User.
- Observe that the /api/v2/user/110022 endpoint returns service account details.
- Brute force user IDs with Intruder and see many customer records returned.
- Remove the authorisation token and resend the request; the endpoint still returns full user details.
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.
An IDOR is when a website uses a simple number or name to pick which record to show, and does not check that you are allowed to see it. Here the chatbot's API returned any customer's details just by changing the number in the request. Worse, it did not even ask for a login token, so anyone on the internet could read the data.
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.