What is URL shortening
The shortened URLs used to access new client contracts had only five alphanumeric characters, making them guessable. An attacker could brute-force these URLs to access other clients' contracts, which disclosed personal and service information.
blog.detectify.com
Published on blog.detectify.com
{{media:0}}
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 shortened URL path used only five alphanumeric characters, providing insufficient entropy to prevent brute-force enumeration.
Impact
An attacker could access other clients' contracts, disclosing personal data such as names, phone numbers, national identity numbers, installation addresses, and service prices.
What the attacker needed
Receive a shortened URL; No authentication required
The fix
The vulnerability was fixed by increasing the path length to 10 alphanumeric characters and preventing search engine indexing.
How it was found
- Receive an SMS with a shortened URL to view a new contract.
- Notice the URL path is only five alphanumeric characters long.
- Generate a list of possible five-character alphanumeric combinations.
- Use Gobuster to brute-force the shortened URLs.
- Identify working URLs that redirect to other clients' contracts.
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 shortened URL is a short link that redirects to a longer web address. Here, the short links were used to access private contracts, but because the short part was only five characters long, someone could try many combinations to find other people's links. This let them see personal information that should have been private.
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.