Abusing URL Shortners to discover sensitive resources or assets
The author found that URL shortener services like Bitly expose a debug endpoint that reveals whether the service is Bitly-powered. By brute-forcing short URLs, they discovered sensitive internal URLs and resources, such as Jira and Google Docs links.
Published on shubs.io
September 23 2015 · websec bruteforce
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 URL shortener service exposes a debug endpoint and allows enumeration of short codes without rate limiting or access control.
Impact
An attacker could discover internal or sensitive URLs, such as Jira and Google Docs links, expanding the attack surface; however, rate limiting may require the use of proxies.
What the attacker needed
URL shortener powered by Bitly; ability to send HTTP requests
The fix
The URL shortener service should restrict access to the debug endpoint and implement rate limiting to prevent enumeration.
How it was found
- Visit the /debug endpoint of the URL shortener to confirm it is Bitly-powered.
- Run a directory brute-force tool against the shortener domain to find valid short codes.
- Filter the results to extract the redirect targets, revealing sensitive URLs.
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.
URL shorteners turn long web addresses into short ones. Some shorteners have a special page that tells you which service they use. By guessing many short codes, you can find links that were meant to be private, like internal company pages.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.