IDOR in a Session Replay API: One Sequential ID From Wiping Any Customer’s Data
The session replay API validated the project ID against the user's token but did not check that the collection ID belonged to that project, allowing any authenticated user to rename or permanently delete another customer's saved recording collections. Because collection IDs were globally sequential, an attacker could enumerate and delete every customer's collections.
Published on medium.com
While testing the Session Replay feature of an enterprise analytics platform, I found a Broken Object-Level Authorization (BOLA / IDOR) bug that let any authenticated user rename — and permanently delete — the saved recording collections of any other customer on the platform.
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 server validated the project ID against the session token but failed to verify that the collection ID belonged to that project, allowing cross-tenant object access.
Impact
Any authenticated user could rename or permanently delete any other customer's saved recording collections, and because collection IDs were globally sequential, an attacker could automate deletion across every customer on the platform.
What the attacker needed
A free account; victim has a collection; sequential collection IDs
How it was found
- Create two separate accounts in two separate projects, one as attacker and one as victim.
- Each account creates a marked-recordings collection in its own Session Replay area.
- Capture the attacker's rename collection request and send it to Repeater.
- Change only the collection ID in the request to the victim's collection ID, keeping the attacker's token and project ID.
- Send the request and observe a 200 OK response showing the victim's collection was renamed.
- Use the same technique with the DELETE endpoint to permanently delete the victim's collection.
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.
A session replay tool records what users do on a website so teams can watch it later. The platform stored these recordings in folders called collections, and each customer had their own project. The bug was that the server checked which project you belonged to but not whether the folder you asked to change was actually in your project, so you could edit or delete someone else's folder by changing its ID number.
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.