Exploiting a double-edged SSRF for server and client-side impact
The export feature took a user-supplied location parameter and used it to fetch a page for a PDF screenshot, allowing requests to internal hosts and external attacker-controlled servers. An attacker could access internal services and, by tricking a logged-in user into clicking a link, capture screenshots of authenticated pages and leak the user's email and API key.
Published on yassineaboukir.com
bug bouties appsec
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 application did not validate or restrict the location parameter, allowing arbitrary URLs to be fetched and rendered.
Impact
An attacker could access internal services and, by tricking a logged-in user into clicking a link, capture screenshots of authenticated pages and leak the user's email and API key.
What the attacker needed
Victim clicks a link; attacker has an email address to receive reports; internal hostnames known or guessable
The fix
The program fixed the vulnerability and rewarded it with their maximum bounty.
How it was found
- Send a request to the export endpoint with a location parameter pointing to an authenticated page.
- Receive a PDF screenshot of that page, confirming the server fetches the URL.
- Modify the location parameter to use bypass techniques like @example.com to point to an external host.
- Receive a PDF screenshot from the external host, confirming SSRF.
- Point the location parameter to internal hosts discovered via reconnaissance.
- Access internal services like Redash, Puppet, Elastic, and Kibana through the screenshots.
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 picture of a web page you chose. It did not check which page you asked for, so someone could make it visit secret internal computers or their own server. They could also trick a logged-in user into making a picture of their private pages and sending it to the attacker.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.