How I Turned a Database Import Feature into an Internal Network Scanner: The Art of the SSRF…
The database import feature accepted a user-supplied URL and fetched it without restricting the destination, allowing an attacker to make the server request arbitrary internal or external resources. This could leak the server's IP address and potentially reach internal-only services.
Hi Hackers For confidentiality reasons, I’ll refer to the target simply as Target. While testing Target’s cloud database platform, I found an SSRF in the database import feature.
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
Impact
An authenticated low-privilege user could make the server fetch arbitrary URLs, leaking internal IP addresses and potentially reaching internal-only services; the text does not confirm actual access to internal services beyond the port scan.
What the attacker needed
Authenticated low-privilege account; access to database import feature
How it was found
- Send a request to the import endpoint with an S3 URL pointing to the AWS metadata service.
- Observe that the request fails silently.
- Change the import type to HTTP and set the URL to a Burp Collaborator address.
- Send the request and check the Collaborator for an incoming HTTP interaction.
- Note the source IP of the server that made the request.
- Run a port scan against that IP to confirm it is a live service.
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 server-side request forgery (SSRF) happens when a website lets you give it a web address and it fetches that address for you. If the site does not check where the address points, an attacker can make the server visit internal systems that are not otherwise reachable from the internet. Here, the import feature fetched any URL, so the attacker could see the server's own IP and probe internal services.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.