November 28, 2026
The Mistake That Exposed Thousands of Private Documents
The only truly secure system is one that is powered off, cast in a block of concrete and sealed in a lead-lined room with armed guards, and…

By godelian
4 min read
The only truly secure system is one that is powered off, cast in a block of concrete and sealed in a lead-lined room with armed guards, and even then I have my doubts…
— Gene Spafford
Introduction
Logistics runs on paperwork, and that paperwork holds secrets: who ships what, to whom, and for how much. On Amazon, the app that connects trucking carriers with loads, every document is supposed to stay with the single carrier it belongs to.
We wanted to know how firm that line really was, so we pulled on it. This is what happened.
This was joint work with my collaborator @mo7mead, and I want to thank them for it!
Investigation
Mobile apps are honest in a way their servers are not. Take one apart and you can read exactly how it talks to the backend: every request it makes, every value it sends. So that is where we started with Amazon
One exchange stood out. To open a document, the app asks for it by an identifier, and that identifier is supplied by the client.
In other words, the "which document" decision is made on the phone, not on the server. That leaves the server one job before it answers: check that the document actually belongs to the carrier asking for it. Do that, and the system is safe. Skip it, and any carrier can reach any document by changing a single value. We had to find out which it was.
The missing question
Every request to Amazon carries a session token, so the server always knows who is asking. That half works perfectly: log in as the wrong person and you get nothing.
The trouble is the second question, the one that actually protects the data: is this particular document yours ?
When the app asks for a document, the server looks it up and hands back a ready-to-use link to the file.
If it returns that link without first checking that the document belongs to the carrier asking, then the identifier on the phone is the only thing deciding what you see, and that identifier is yours to change.
That is what we found. The server checked the login and skipped the ownership check. Swap in a document identifier that belongs to another carrier, keep your own valid session, and the server answers with their paperwork. No password, no trick, no broken encryption, just a question the server never asked. (In security terms, this is Broken Object Level Authorization, or an IDOR)
Why one open door becomes thousands
A single document is bad enough. Two details turn it into something much larger.
First, the link the server hands back is not really a link, it is a key. Once issued, that signed URL opens the file on its own, with no login attached, until it quietly expires. It can be copied, logged, cached, or passed around, and it keeps working the whole time. Authorization happens once, when the link is minted, and never again.
Second, the identifiers do not have to be guessed one at a time. Amazon has a companion feature that, given a shipment reference, lists the documents attached to it and their identifiers. Those feed straight back into the same document request, and repeating it across shipments turns a single peek into a steady stream.
Together, the missing check stops being a one-off. It becomes a way to walk the marketplace and collect other carriers' paperwork at scale, one signed link at a time.
Steps to Reproduce
We verified this responsibly: on accounts we controlled, stopping at the first proof, and redacting any third-party data. Anyone reproducing it should do the same and never pull real carriers' documents
Baseline. Log in as a carrier, open one of your own loads that has documents, and capture a genuine request:
GET /document/v1/retrieve/{documentId}GET /document/v1/retrieve/{documentId}Confirm a 200 that returns your own presignedS3Url. This is the normal, expected behavior.
Negative control. Request a well-formed but non-existent documentId. Note whether the server answers 404 or 403 — this shows whether existence is checked before authorization.
Cross-tenant test. Using a documentId that belongs to a second account you control (or a consenting colleague), send the request from the first account's session:
GET /document/v1/retrieve/<FOREIGN_DOCUMENT_ID> HTTP/2
accept: application/json
authorization: <YOUR_OWN_SESSION_TOKEN>GET /document/v1/retrieve/<FOREIGN_DOCUMENT_ID> HTTP/2
accept: application/json
authorization: <YOUR_OWN_SESSION_TOKEN>Secure behavior is 403 or an empty response. The vulnerable behavior is a 200 that returns the other account's document and a working presignedS3Url.
Stop there — one cross-account document is proof enough.
Impact
The documents behind this flaw are not trivia. A bill of lading and a proof of delivery name the companies shipping and receiving goods, their addresses, what was in the truck and how much, reference numbers, and the signatures of the people who handled it.
For the people named in them, that is a privacy exposure. For a competitor, it is business intelligence: a view of who a rival ships for, where, and how often, straight from the paperwork. And because the flaw scales from one document to many, this is not a single leaked file but a window into other carriers' operations across the platform.
Conclusion
The most damaging flaws are rarely the exotic ones. This was not a clever exploit or a broken lock, it was a missing question. The system was careful about who you are and quiet about whether a thing is yours, and in that gap sat other carriers' private paperwork.
We reported it to the Amazon Vulnerability Research Program, and it has since been fixed. No real carrier data was collected along the way.
If there is one thing to take from this, it is that "is this yours?" deserves to be asked on every request, not just the first.
Thanks again to @mo7mead for the work, and thanks for reading!