How I Cracked the “Uncrackable” UUIDs and Found Every User’s Secret Data
The application used sequential version 1 UUIDs for document identifiers, making them predictable. An attacker could enumerate these UUIDs to access other users' documents and map user relationships.
Free link 🎈
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 application used version 1 UUIDs (time-based and sequential) for document identifiers without proper authorization checks, allowing predictable enumeration.
Impact
An attacker could access thousands of documents across the organisation, including financial reports and user data, and map user relationships, potentially leading to further lateral movement.
What the attacker needed
A free account; ability to upload documents; knowledge of at least one document UUID
The fix
The fix involved migrating to proper version 4 UUIDs with proper authorization checks.
How it was found
- Create multiple test accounts and upload documents to collect UUIDs.
- Analyse the UUIDs and notice they are sequential version 1 UUIDs.
- Write a script to generate sequential UUIDs based on a known one.
- Use the script to request documents with predicted UUIDs and collect accessible ones.
- Extract user IDs from the shared_with field to map relationships.
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.
UUIDs are long strings meant to be unique and hard to guess, like a random serial number. Here, the developer used a type of UUID that includes a timestamp and increments, so each new one is just the previous plus one. That made it easy to guess other users' document IDs and read their files.
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.