How I Discovered a Critical Vulnerability in a Leading UK Retail Giant’s System
An SSRF vulnerability in a PDF generation feature allowed an attacker to make the server request the AWS metadata service. The response PDF contained sensitive AWS credentials for the EC2 instance.
In the realm of cybersecurity, the discovery of vulnerabilities is a critical aspect of enhancing system security and protecting sensitive data. My recent exploration into the digital infrastructure of a major UK retail chain, which I will refer to as “redacted.com” for confidentiality, led to an intriguing and…
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 PDF generation feature accepted a user-supplied URL and fetched it without validating or restricting the destination, allowing access to internal services such as the cloud metadata endpoint.
What the attacker needed
Access to the interactive map service
How it was found
- Scan subdomains and files to find the interactive map service.
- Modify the url parameter to point to the AWS metadata service.
- Receive a PDF containing the AWS credentials.
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 website had a feature that made a PDF from a web address you supplied. The server fetched that address without checking it, so the attacker pointed it at a special internal address that only the server can reach. That address returned secret login details for the company's cloud server, which were then shown in the PDF.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.