How I Took Down an Entire Application Using google.com and Earned a $2,000 Bounty
An integration endpoint accepted a user-supplied URL and fetched it without a timeout, so pointing it at a closed port on a public host made each request hang for about 30 seconds. Sending many such requests in parallel exhausted the server's worker threads and made the whole application unresponsive.
Published on medium.com
Sometimes the most interesting vulnerabilities are not the ones that leak sensitive data.
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 backend used a synchronous HTTP client with no timeout, so each request to an unresponsive port blocked a worker thread until the connection attempt timed out.
Impact
The whole application could be made unresponsive for as long as the attacker kept sending parallel requests, affecting all users rather than one account.
What the attacker needed
Access to the integration endpoint; ability to send many parallel requests
How it was found
- Send a normal integration request with a reachable URL and observe a fast success response.
- Change the destination URL to a public host on a closed port and observe the request hang for about 30 seconds before failing.
- Queue the same request 100 times in parallel using Burp.
- Try to load the main application from a browser and from other devices and networks; it does not respond.
- Stop the attack and confirm the application returns to normal.
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.
The application had a feature where you give it a web address and it goes off to fetch that page. The code that did the fetching had no time limit, so if the address pointed to a port where nothing answers, the request just waited and waited. Because the server only has a limited number of workers, filling them all with waiting requests meant no one else could use the site.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.