Simple IDORs Lead To PII Leaks Got $1476 Bounty
The API accepted arbitrary user IDs in team invite/remove requests without checking workspace membership, and the server logged full user details for those IDs in the workspace audit logs. An attacker with permission to remove invites could enumerate user IDs and harvest email addresses and other PII for arbitrary platform users.
Published on medium.com
I discovered two IDORs in a SaaS task-management product that allowed me to leak PII for arbitrary users (including users from other organizations) via the workspace audit logs. Both issues are the same root problem: the API accepts arbitrary user IDs in team invite/remove requests and the server logs full user…
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
Impact
An attacker with permission to cancel/remove invites could enumerate user IDs and harvest email addresses and other PII for arbitrary platform users, enabling targeted phishing and mass data harvesting.
What the attacker needed
Permission to cancel/remove invites (often admin); valid platform user IDs to enumerate
The fix
The API should verify that referenced user IDs belong to the workspace before acting, and audit logs should never write PII for operations on non-members.
How it was found
- Intercept the 'remove user' request, which uses PUT /team/v1/team/<workspace_id> with a JSON body containing a numeric user ID.
- Replace the user ID with any other valid platform user ID that does not belong to the workspace.
- Replay the request and observe a successful response.
- Check the workspace audit logs, which now show PII for the arbitrary user ID.
- Repeat the same technique on the alternate endpoint POST /team/v1/team/<team_id> to get the same audit-log PII leak.
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 (Insecure Direct Object Reference) happens when a website lets you change an identifier in a request to access someone else's data. Here, the team management API did not check that the user ID you sent actually belonged to your workspace, and it then wrote that user's personal details into your audit log. This meant someone with admin rights could swap in any user ID and read that person's email and profile information.
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.