SSRF in Chrome PDF Generator
Discovery
const params = new URLSearchParams(window.location.search);
const url = params.get('url') || '';
const type = params.get('type') || '';
fetch(`/pdf/download?url=${encodeURIComponent(url)}&type=${encodeURIComponent(type)}`)
.then(response => response.text())
.then(downloadUrl => {
if (downloadUrl) {
const link = document.createElement('a');
link.href = downloadUrl;
link.click();
}
})
.catch(error => console.error('Download failed:', error));
// a comment like this was left here in the actual page source
//?type=pdf&url=https://subdomain.target.com/test.html
Further Testing
Internal Network Enumeration via JavaScript Execution

Remediation
Last updated