How One Exposed API Cost a Shipping Company $10,000 in a Few Hours
An API endpoint was publicly reachable without authentication and could trigger real actions such as creating shipments or adjusting balances. An attacker could send requests to it and cause financial loss, which in this case amounted to $10,000 within a few hours.
Published on medium.com
Cybersecurity
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.
Context

The target in this story is the external-facing infrastructure of a US-based shipping company: its website, its subdomains, its exposed services and, most importantly, the APIs sitting behind them. The author describes the platform as typical of logistics and shipping businesses, where APIs handle shipping rates, order processing, payments, account balances and third-party integrations. These APIs are not decorative: they move data and trigger real actions such as creating shipments, processing payments and adjusting account balances.
The incident is not framed as a bug bounty submission. It is a client engagement: the owner of the company contacted the author after losing $10,000 in a few hours with no ransomware note, no phishing email anyone could point to and no breach warning from any security tool. The author is Tanvir Ahmed, founder of Nexus Web Security, and the write-up is presented as a real client story with lessons for founders and CTOs.
Setup
The report gives no account names, roles, tool versions or request captures. What it does describe is the starting position:
- A US-based shipping company whose website was functioning normally and whose customers were not complaining.
- No visible sign of compromise: no ransomware, no identified phishing email, no security tool alert.
- A financial loss of $10,000 that had already occurred within a few hours.
- An external attack surface consisting of domains, subdomains, exposed services and APIs, reachable from the public internet.
The author started by mapping that entire external attack surface before drawing conclusions, rather than looking only at the website.
Finding it
The investigation began with attack surface mapping: enumerating domains, subdomains, exposed services and APIs reachable from the internet. The reasoning the author gives is that business owners think of the website as the thing to protect, while modern logistics platforms run on a web of APIs behind the scenes, and those APIs are the actual machinery.
That mapping surfaced one API sitting fully exposed on the public internet. Two properties made it stand out:
- There was no authentication layer in front of it, so nothing verified that a request came from someone authorised to make it.
- It was not read-only. The endpoint could trigger real, consequential actions, so anyone reaching it could make the system do things rather than merely read information.
The author stresses that the rest of the business looked healthy: the website worked, customers were not complaining, and nothing visible suggested a problem, because the vulnerable component was not one anyone was actively watching. The pattern described is an API set up months or years earlier to solve an integration problem, got working, and never revisited with the question of whether it should be public.
Exploitation
The report does not publish the endpoint, the request, the response, the parameters or the HTTP method. It describes the exploitation only at the level of behaviour, and the description is short enough to state in full.
Step 1: Reach the endpoint
Anyone who knew, or found, the URL could reach the API. No credential, token or other proof of authorisation was required, because no authentication layer stood in front of it.
Step 2: Send a request that triggers an action
Because the endpoint could trigger real actions rather than only return data, a request to it caused the system to act. The author does not say which action was invoked or how many requests were sent.
Step 3: Observe the financial result
Within a few hours, $10,000 was gone. The report attributes the loss directly to this single unprotected endpoint and notes that it happened fast.
The author's own summary of the barrier to entry is the key technical point: no sophisticated attack was needed. The requirement was knowing the endpoint existed and sending a request to it. The report contains no payloads, no headers, no status codes and no response bodies, so there is nothing further to reproduce here.
Root cause
The root cause described is missing authentication on a publicly reachable API, combined with an endpoint whose actions carry financial consequence. In the author's words, the API had no authentication layer and no verification that a request was coming from someone authorised to make it.
Why the existing defences did not stop it:
- No authentication in front of the endpoint. The API processed requests without establishing who was making them.
- No scoping of what the API could do. The remediation rebuilt access controls so that even authenticated requests were scoped down to only what was actually necessary.
- No inventory. The author's explanation for how this happens is API sprawl: integrations, internal tools and partner connections accumulate under deadline pressure, and nobody has fully mapped or tested them. You cannot secure what you have not inventoried, and this endpoint was not in anyone's field of view.
- **No warning. Nothing about the business looked broken while the loss was occurring: the website functioned, customers were not complaining and no security tool raised an alert.
The report does not include code, configuration or logs, so the precise implementation mistake is not shown; the description is at the level of design and operational practice.
Impact
Under the conditions described, an attacker who knew or found the URL could make the shipping company's system perform real actions without any credential. In this case that translated directly into a financial loss of $10,000 within a few hours. The author is explicit that this was not a data-leak-only situation: the endpoint could trigger consequential actions, which is what made the loss possible.
The report does not state how many parties were involved, whether customer data was accessed, whether the loss was recoverable, or whether the endpoint was abused by more than one actor. It also does not name the affected systems beyond the company's external infrastructure.
Fix
The remediation is described as a sequence of changes made to the client's environment, not as recommendations alone:
- Locked down the exposed endpoint. The API was rebuilt to require proper authentication before any request could be processed.
- Rebuilt access controls around what the API was allowed to do. Even authenticated requests were scoped down to only what was actually necessary, rather than broad, unrestricted access.
- Audited every other API for the same exposure pattern. The author calls this the step that matters most and gets skipped most often, on the reasoning that one exposed API is a red flag that others may be too.
- Explained the reasoning to the client, not just the fix. The owner now understands why it happened, which the author argues changes how the team approaches new integrations.
Beyond the single endpoint, the author ran a full security assessment across the client's entire external-facing infrastructure, and reports that the rest of it has been tested and hardened. The report does not give the technical details of the authentication mechanism or the access control model that replaced the open endpoint.
Variants to test
These are generalisations from the pattern described, not findings from this engagement. The report itself contains no request-level detail to adapt.
- Enumerate APIs during reconnaissance. Map domains, subdomains and exposed services, then look for API paths that respond without credentials. A positive result is an endpoint that returns data or performs an action when called with no authentication header or token.
- Test state-changing endpoints, not just read endpoints. For each unauthenticated endpoint found, check whether it can create, modify or trigger something (shipments, payments, balances) rather than only return information. A positive result is a request without credentials that changes server-side state.
- Check authorisation scope after authentication. Where an endpoint does require a token, try actions beyond the intended role. A positive result is an authenticated request succeeding for an action the account should not be permitted to perform.
- Look for the same pattern across sibling APIs. When one endpoint is found exposed, test the other integrations and partner connections for the same missing control. A positive result is a second endpoint with the same unauthenticated or over-privileged behaviour.
- Ask the inventory question. Before testing, establish which APIs are publicly reachable at all. A positive result is an endpoint in the public reachability set that no one on the owning team can account for.
What happened, in plain words

A shipping company in the United States lost $10,000 in a few hours. There was no ransom note, no phishing email that anyone could point to, and no warning from any security tool. The owner of the company contacted Tanvir Ahmed, founder of Nexus Web Security, to find out what had happened and to stop it happening again.
The answer was one API that anyone on the internet could reach, with nothing in front of it asking who was calling. That API was not just a way to read information: it could make the system do things, and in this case those things cost money. The author describes this as a real client story, not a bug bounty submission, and uses it to make a point for founders and CTOs.
This article walks through the same story from the beginning, explaining every technical idea as it appears. If you can use a browser, you can follow it.
The starting position
The report does not give account names, roles, tool versions or captured requests. What it does describe is where things stood before the investigation began:
- A US-based shipping company whose website was working normally and whose customers were not complaining.
- No visible sign of a break-in: no ransomware, no phishing email that could be identified, no alert from a security tool.
- A loss of $10,000 that had already happened within a few hours.
- An external attack surface made up of domains, subdomains, exposed services and APIs, all reachable from the public internet.
Before drawing any conclusions, the author started by mapping that entire external attack surface, rather than looking only at the website.
What "external attack surface" means
Think of a shop. The front door is what customers see, but behind it there is a stockroom, a delivery entrance, a staff door, a loading bay and maybe a window left open upstairs. The external attack surface is every one of those entrances that can be reached from the street, not just the front door.
On the internet, the equivalents are:
- Domains: the main names a business owns, such as its website address.
- Subdomains: extra names under the main one, often used for separate services (a support portal, a status page, an internal tool that was made reachable from outside).
- Exposed services: software running on the company's machines that answers requests coming from the internet.
- APIs: the topic of this story, explained next.
What an API is
An API (Application Programming Interface) is a way for one piece of software to talk to another. A useful comparison is a restaurant. You do not walk into the kitchen and cook; you tell the waiter what you want, the waiter takes the order to the kitchen, and food comes back. The API is the waiter: a fixed set of requests you can make, and a fixed set of answers you get back.
On the web, an API is usually a URL that accepts a request and returns data, or performs an action. When you use a shopping app and it shows you a delivery estimate, the app has almost certainly asked an API for that estimate.
For a shipping company, the author lists what these APIs handle: shipping rates, order processing, payments, account balances and third-party integrations. They are not decoration. They move data and trigger real actions such as creating shipments, processing payments and adjusting account balances. In the restaurant comparison, some waiters only bring information back from the kitchen, while others can actually place an order and charge your card.
Finding it
The investigation started with attack surface mapping: listing the domains, subdomains, exposed services and APIs that could be reached from the internet. The reason to start there, the author explains, is that business owners think of the website as the thing to protect, while modern logistics platforms run on a web of APIs behind the scenes. Those APIs are the actual machinery.
That mapping turned up one API sitting fully exposed on the public internet. Two things made it stand out:
- There was no authentication layer in front of it. Authentication is the process of proving who you are, like showing a passport at a border or a membership card at a club. With no authentication layer, nothing checked that a request came from someone authorised to make it.
- It was not read-only. The endpoint could trigger real, consequential actions, so anyone reaching it could make the system do things rather than merely read information.
The author stresses that the rest of the business looked healthy. The website worked, customers were not complaining, and nothing visible suggested a problem, because the vulnerable component was not one anyone was actively watching. The pattern described is an API set up months or years earlier to solve an integration problem, got working, and never revisited with the question of whether it should be public.
Why nobody noticed
The author's explanation is API sprawl. A new integration here, a quick internal tool there, a partner connection that needed a fast solution under a deadline. Over time a growing company accumulates a list of APIs that nobody has fully mapped, let alone tested. The author's summary is blunt: you cannot secure what you have not inventoried. An inventory here just means a list of what you have and where it is, like a stock list for a warehouse.
Exploitation
The report does not publish the endpoint, the request, the response, the parameters or the HTTP method. It describes what happened only at the level of behaviour, and that description is short enough to state in full.
Step 1: Reach the endpoint
Anyone who knew, or found, the URL could reach the API. No credential, token or other proof of authorisation was required, because no authentication layer stood in front of it.
A URL is the address of something on the web, the text you type into a browser's address bar. A credential is anything you use to prove who you are, such as a username and password. A token is a short piece of text that a system issues to a logged-in user and that the user presents on later requests instead of repeating the password, a bit like a cloakroom ticket: whoever holds the ticket gets the coat. Here, none of that was needed.
Step 2: Send a request that triggers an action
Because the endpoint could trigger real actions rather than only return data, a request to it caused the system to act. The author does not say which action was invoked or how many requests were sent.
A request is what your browser sends to a server when you load a page or an app fetches data: a message asking for something. Normally the server checks the request before acting on it. Here it acted without checking.
Step 3: Observe the financial result
Within a few hours, $10,000 was gone. The report attributes the loss directly to this single unprotected endpoint and notes that it happened fast.
The author's own summary of the barrier to entry is the key technical point: no sophisticated attack was needed. The requirement was knowing the endpoint existed and sending a request to it. The report contains no payloads, no headers, no status codes and no response bodies, so there is nothing further to reproduce here.
A payload is the part of a request that carries the actual instruction or data. Headers are the extra lines attached to a request that describe it, such as what kind of content it carries or who is sending it. A status code is the three-digit number a server sends back to say how it went, such as 200 for success or 404 for not found. A response body is the actual content the server sends back. None of these appear in the report.
Root cause
The root cause is the underlying reason something went wrong, as opposed to the symptom you first notice. Here it is missing authentication on a publicly reachable API, combined with an endpoint whose actions carry financial consequence. In the author's words, the API had no authentication layer and no verification that a request was coming from someone authorised to make it.
Why the existing defences did not stop it:
- No authentication in front of the endpoint. The API processed requests without establishing who was making them.
- No scoping of what the API could do. The remediation rebuilt access controls so that even authenticated requests were scoped down to only what was actually necessary. Access control means deciding what each caller is allowed to do once they are identified, like a hotel key card that opens your room but not the penthouse.
- No inventory. The author's explanation for how this happens is API sprawl: integrations, internal tools and partner connections accumulate under deadline pressure, and nobody has fully mapped or tested them. You cannot secure what you have not inventoried, and this endpoint was not in anyone's field of view.
- **No warning. Nothing about the business looked broken while the loss was occurring: the website functioned, customers were not complaining and no security tool raised an alert. Monitoring means watching systems for signs of trouble, like a smoke alarm rather than a fire extinguisher.
The report does not include code, configuration or logs, so the precise implementation mistake is not shown; the description is at the level of design and operational practice.
Impact
Under the conditions described, an attacker who knew or found the URL could make the shipping company's system perform real actions without any credential. In this case that translated directly into a financial loss of $10,000 within a few hours. The author is explicit that this was not a data-leak-only situation: the endpoint could trigger consequential actions, which is what made the loss possible.
The report does not state how many parties were involved, whether customer data was accessed, whether the loss was recoverable, or whether the endpoint was abused by more than one actor. It also does not name the affected systems beyond the company's external infrastructure.
Fix
The remediation is described as a sequence of changes made to the client's environment, not as recommendations alone. Remediation means the work of closing the hole, not just describing it.
- Locked down the exposed endpoint. The API was rebuilt to require proper authentication before any request could be processed. In the restaurant comparison, the waiter now asks for your membership card before taking any order.
- Rebuilt access controls around what the API was allowed to do. Even authenticated requests were scoped down to only what was actually necessary, rather than broad, unrestricted access. The key card now opens only the doors the guest actually needs.
- Audited every other API for the same exposure pattern. The author calls this the step that matters most and gets skipped most often, on the reasoning that one exposed API is a red flag that others may be too. An audit is a systematic check of everything against a standard, like counting every item in a warehouse rather than trusting the last stock take.
- Explained the reasoning to the client, not just the fix. The owner now understands why it happened, which the author argues changes how the team approaches new integrations.
Beyond the single endpoint, the author ran a full security assessment across the client's entire external-facing infrastructure, and reports that the rest of it has been tested and hardened. Hardening means making a system more resistant to attack, the way you might fit better locks and brighter lights.
Variants to test
These are generalisations from the pattern described, not findings from this engagement. The report itself contains no request-level detail to adapt.
- Enumerate APIs during reconnaissance. Map domains, subdomains and exposed services, then look for API paths that respond without credentials. A positive result is an endpoint that returns data or performs an action when called with no authentication header or token. Reconnaissance is the information-gathering phase before any testing, like walking around a building and noting every door before trying any of them.
- Test state-changing endpoints, not just read endpoints. For each unauthenticated endpoint found, check whether it can create, modify or trigger something (shipments, payments, balances) rather than only return information. A positive result is a request without credentials that changes server-side state. State here means the stored situation on the server, such as a balance or an order record; changing it means the server's records are altered.
- Check authorisation scope after authentication. Where an endpoint does require a token, try actions beyond the intended role. A positive result is an authenticated request succeeding for an action the account should not be permitted to perform. Authorisation is different from authentication: authentication is proving who you are, authorisation is what you are allowed to do once you have proved it.
- Look for the same pattern across sibling APIs. When one endpoint is found exposed, test the other integrations and partner connections for the same missing control. A positive result is a second endpoint with the same unauthenticated or over-privileged behaviour. Over-privileged means having more permissions than the job needs.
- Ask the inventory question. Before testing, establish which APIs are publicly reachable at all. A positive result is an endpoint in the public reachability set that no one on the owning team can account for.
Glossary
- API (Application Programming Interface): a fixed set of requests one piece of software can make to another, and the answers it gets back; the waiter between your app and the kitchen.
- Access control: the rules deciding what each caller is allowed to do once they are identified.
- Attack surface: everything a business exposes to the internet that can be reached from outside, not just its website.
- Audit: a systematic check of everything against a standard.
- Authentication: proving who you are, such as with a password or a token.
- Authorisation: what you are allowed to do once you have proved who you are.
- Credential: anything used to prove identity, such as a username and password.
- Domain: a name a business owns on the internet, such as its website address.
- Endpoint: a specific URL that accepts requests and does something with them.
- External attack surface: the parts of a business's systems reachable from the public internet.
- Hardening: making a system more resistant to attack.
- Headers: extra lines attached to a request describing it, such as its content type or sender.
- Inventory: a list of what systems and APIs exist and where they are.
- Monitoring: watching systems for signs of trouble.
- Over-privileged: having more permissions than the job requires.
- Payload: the part of a request carrying the actual instruction or data.
- Reconnaissance: the information-gathering phase before testing.
- Remediation: the work of closing a security hole.
- Request: the message a browser or app sends to a server asking for something.
- Response body: the content a server sends back.
- Root cause: the underlying reason something went wrong, as opposed to the symptom.
- State: the stored situation on a server, such as a balance or an order record.
- Status code: the three-digit number a server returns to say how a request went.
- Subdomain: an extra name under a main domain, often used for a separate service.
- Token: a short piece of text issued to a logged-in user and presented on later requests instead of a password.
- URL: the address of something on the web, typed into a browser's address bar.