Signed, Sealed, Delivered: How I Replayed Signed URLs to Steal E
A pre-signed S3 URL for a PDF invoice was found in a JavaScript file and remained valid for a long time, allowing the attacker to change the filename and download many other internal documents. The same signing pattern also gave access to a database backup containing credentials and secrets.
Free Link 🎈
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 signed URL had a very long expiry, was not bound to a user or IP address, and the signing key allowed access to any object in the bucket rather than a single file.
Impact
The attacker could download hundreds of internal documents including payroll, PII, invoices, NDA scans, and a full database backup with admin credentials and API keys, potentially leading to full system compromise.
What the attacker needed
A pre-signed URL exposed in client-side code; No authentication required to use the URL
The fix
The signed URLs should have short expiration times, be bound to a specific user or IP address, and only allow access to a single object; credentials should be rotated and per-request validation enforced.
How it was found
- Find a pre-signed S3 URL in a JavaScript file during reconnaissance.
- Open the URL and download a PDF invoice.
- Change the filename in the URL to other invoice numbers and download more files.
- Use a fuzzing tool with the same signed URL to enumerate many PDF filenames.
- Find a backup location inside one of the downloaded PDFs and replay that URL to download a full SQL backup.
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 pre-signed URL is a web link that includes a digital signature, so the storage service lets anyone who has the link download a file without logging in. Here the link was meant to be temporary and limited to one invoice, but it stayed valid for a very long time and worked for many other files. By changing the file name in the link, the attacker could download private documents and even a database backup.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.