Skip to content
Access control Write-up Beginner

When a Production Backend Has No Authentication: Internal Disclosure and Unauthenticated State Changes

A production Spring Boot backend exposed its API documentation, build metadata, internal cluster addresses, and metrics without authentication. The same service also accepted unauthenticated order-submission requests with attacker-controlled bodies and returned a success acknowledgement, though downstream fulfilment was not proven.

redhunter01 Follow

Published on medium.com

Cybersecurity

redhunter01, on medium.com

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

Context

During a bug bounty assessment of a production commerce backend, the researcher found a publicly reachable Spring Boot service that enforced no authentication at all. The service was exposed under a dedicated API path of the application and sat alongside the business APIs, exposing its own API documentation, source-control metadata, internal infrastructure information, operational metrics and multiple state-changing operations to anonymous internet users.

The most significant finding was a production order-submission endpoint that accepted a fully attacker-controlled request body without credentials and returned a successful acknowledgement. The API documentation showed a business endpoint for sending order information to an external fulfilment/trading-partner workflow.

The research uncovered two separate classes of impact:

Text
Unauthenticated API
       │
       ├── Internal information disclosure
       │      ├── API contract
       │      ├── source metadata
       │      ├── internal topology
       │      ├── downstream services
       │      └── operational metrics
       │
       └── Unauthenticated state changes
              └── Order-submission handler

One limitation is stated explicitly: the order acknowledgement was not claimed to prove downstream fulfilment. The endpoint was proven reachable and mutating from the public internet, but the available response did not provide an order identifier or a read-back mechanism to establish downstream fulfilment.

Setup

The assessment was carried out against a production commerce backend. The service was built with Spring Boot and exposed standard operational endpoints alongside its business APIs. No accounts, roles or special tooling are described beyond the ability to send anonymous HTTP requests to the production host.

Finding it

The first thing checked was whether the API had an authentication boundary. Rather than starting with the business endpoints, the researcher looked for API documentation. The service exposed an OpenAPI document publicly, and the response was successful without any authentication:

HTTP
GET /v3/api-docs→ HTTP 200

The OpenAPI specification contained no authentication security scheme and no global security requirement. More importantly, the individual business operations also lacked authentication requirements. That changed the testing hypothesis: if the API documentation itself is public and the contract declares no security requirements, are the actual business endpoints equally exposed? The answer was yes.

An anonymous request was sufficient to reach the production API. There was no Authorization: Bearer ... header, no API key, no application session cookie and no account of any kind. The service therefore effectively looked like:

Text
Internet
   │
   ▼
Production API
   │
   ├── Documentation
   ├── Diagnostics
   ├── Metrics
   └── Business operations

rather than:

Text
Internet
   │
   ▼
Authentication / Gateway
   │
   ▼
Production API

That distinction became important when enumerating what the unauthenticated surface actually exposed.

Exploitation

Step 1: Read the OpenAPI contract anonymously

The public OpenAPI document was the entry point. It returned HTTP 200 with no credentials and described the complete API contract, routes, models and fields. Because the specification declared no security scheme and no global security requirement, it provided a map of the application's functionality without requiring aggressive endpoint discovery.

Step 2: Enumerate the diagnostic and operational surface

Several diagnostic and operational endpoints returned data to anonymous callers. The exposed information included:

Endpoint category Exposure
OpenAPI documentation Complete API contract, routes, models, and fields
Swagger UI Interactive API console
Git/build information Commit, release, build, and repository metadata
Peer information Internal cluster addresses and management surfaces
Global information Internal documentation and service references
Prometheus metrics Operational metrics and downstream infrastructure information

The service therefore disclosed both how the application works and where its backend dependencies live.

Step 3: Read source-control metadata

The exposed build-information endpoint returned information that should normally remain internal. The response included values equivalent to:

Text
commit ID
release tag
build timestamp
repository origin
build metadata

This gives direct information about the exact production software version and source-control state. A typical production architecture should not need to expose its internal repository origin to anonymous internet users, and the value increases when combined with the API documentation and infrastructure disclosures.

Step 4: Read internal infrastructure information

One of the most interesting endpoints was the peer-information endpoint. It returned internal RFC1918 addresses belonging to the production cluster, and the response also exposed internal management paths associated with those nodes. Conceptually, the disclosure looked like:

Text
Production API
      │
      ▼
Peer information
      │
      ├── Internal node A
      ├── Internal node B
      ├── Internal node C
      ├── ...
      └── Internal node N
             │
             └── Internal management interface

The exposed addresses belonged to private network space and were accompanied by management endpoints. The researcher did not attempt to access or interact with those internal management interfaces. The point of the finding was that the public service itself disclosed the internal topology to anonymous callers.

Step 5: Read internal documentation references and metrics

Another diagnostic endpoint exposed references to internal documentation and operational resources. The metrics endpoint provided even more context. The publicly accessible Prometheus output contained information about:

  • downstream service names
  • service dependencies
  • request volumes
  • application behaviour
  • operational counters
  • internal infrastructure references

The metrics response was approximately hundreds of kilobytes of operational information. This is much more useful to an attacker than a generic banner such as:

Text
Spring Boot

It can provide a map of how the production service communicates with the rest of the environment.

Step 6: Identify a state-changing business endpoint

Information disclosure alone was not the end of the investigation. The API documentation showed a business endpoint responsible for sending order information to an external fulfilment/trading-partner workflow. The endpoint was conceptually:

Text
POST /fanatics/send

The question was whether the lack of authentication was merely an information-disclosure problem or whether anonymous users could actually invoke business functionality. The endpoint was tested with a controlled, non-production-impacting payload, and no credentials were supplied.

Step 7: Submit an order body without credentials

The request contained an attacker-controlled order body including fields such as:

Text
trading-partner identifier
purchase-order identifier
currency
order total
shipping information
line items
quantity
SKU

The request was accepted by the production API. The response was:

JSON
{
  "code": 200,
  "success": true,
  "errors": []
}

This behaviour was reproduced consecutively. The critical observation was not simply the HTTP 200, but that a state-changing business handler accepted the request without any authentication context. The endpoint did not require:

Text
Bearer token
API key
Session cookie

or another credential.

Step 8: Probe the validation boundary

The endpoint was then tested for meaningful server-side validation. The handler continued returning the same success acknowledgement for business-invalid inputs, including malformed or nonsensical values. Examples included invalid:

Text
quantity
price
country
currency
trading-partner identifier

This indicated that the endpoint was not merely missing authentication; it also lacked an appropriate business-validation boundary. The distinction is:

Text
Authentication
        ↓
Authorization
        ↓
Business validation
        ↓
State change

The vulnerable service effectively allowed an anonymous caller to reach the business handler without the expected controls.

What was proven

The strongest way to describe the finding is precisely. The following was demonstrated:

Text
Anonymous internet user
        ↓
No credentials
        ↓
Reach production API
        ↓
Submit attacker-controlled order body
        ↓
Server accepts request
        ↓
{"success":true}

The service therefore exposed an unauthenticated state-changing operation. However, the response was not claimed to prove that a downstream fulfilment order was created. The response contained only:

Text
code
success
errors

There was no order identifier and no corresponding read-back endpoint available for confirmation. The service's operational metrics were also consistent with the endpoint completing locally rather than demonstrating a synchronous downstream fulfilment call. A success:true acknowledgement proves that the application accepted the operation; it does not automatically prove that an external fulfilment partner completed the transaction.

Why the combination matters

The information disclosure and state-changing behaviour reinforced each other. An attacker could first obtain:

Text
API contract
       +
source metadata
       +
internal topology
       +
service dependencies
       +
operational metrics

and then use that knowledge to understand the exposed business functionality. The resulting attack surface looked approximately like:

Text
Anonymous Internet User
                          │
                          ▼
                 Production API
                          │
          ┌───────────────┴───────────────┐
          ▼                               ▼
  Internal Disclosure              Business Operations
          │                               │
          ├── API contract                └── Order submission
          ├── Git metadata                    │
          ├── Internal hosts                  ▼
          ├── Management paths          Attacker-controlled
          ├── Dependencies              request accepted
          └── Metrics

This is substantially different from simply having Swagger accidentally enabled. The API was exposing both its internal architecture and a business operation that accepted unauthenticated state-changing requests.

Methodology

The discovery came from treating the API as an application rather than assuming that a production hostname implied authentication. The workflow was roughly:

Text
Discover backend
      ↓
Find API documentation
      ↓
Inspect OpenAPI security definitions
      ↓
Test documented endpoints anonymously
      ↓
Enumerate diagnostic exposure
      ↓
Identify state-changing routes
      ↓
Test authentication boundary
      ↓
Test validation boundary
      ↓
Stop before causing production impact

The OpenAPI document was particularly valuable because it provided a map of the service without requiring aggressive endpoint discovery. Once it became clear that the API specification contained no authentication requirements, the next question was whether that documentation accurately reflected production behaviour. It did.

Production safety

Because the endpoint was live production infrastructure, validation was deliberately constrained. The objective was to demonstrate:

Text
Unauthenticated reachability
+
Attacker-controlled input
+
Server acceptance

without attempting to create real orders, trigger fulfilment, interact with real customer data, or access the disclosed internal management interfaces. The test payload used controlled placeholder values, which allowed the authentication and validation weaknesses to be established without unnecessarily affecting production systems.

Root cause

The architectural mistake was that the backend service had no authentication boundary in front of it and enforced none itself. It appears to function as an internal service rather than a public consumer API, and the application did not independently verify the caller. Because the service was reachable from the internet, that assumption failed, and nothing in the application independently verified the caller.

The OpenAPI contract reflected the same gap: it declared no authentication security scheme and no global security requirement, and the individual business operations carried no authentication requirements either. The order handler also lacked a business-validation boundary, accepting malformed or nonsensical values such as invalid quantity, price, country, currency and trading-partner identifier with the same success acknowledgement. The anonymous caller reached the business handler without the expected controls.

Impact

The demonstrated impact falls into two major categories.

1. Internal information disclosure

Anonymous users could obtain:

  • the complete API contract
  • source-control and build metadata
  • internal production cluster addresses
  • internal management endpoint references
  • internal documentation references
  • downstream service hostnames
  • operational metrics

This provides detailed visibility into the architecture of a production commerce backend.

2. Unauthenticated state-changing operation

The order-submission handler accepted an attacker-controlled request body without credentials and returned a successful acknowledgement. This establishes a direct broken-access-control condition on a production business operation. The exact downstream fulfilment impact was intentionally not asserted because it was not independently demonstrated: the response contained no order identifier and there was no read-back endpoint, and the metrics were consistent with local completion rather than a synchronous downstream call.

Fix

The report sets out five remediation measures.

  1. Put authentication at the gateway. The backend appears to function as an internal service rather than a public consumer API, so it should be protected by an authentication and authorization layer before requests reach the application:
Text
Internet
   ↓
Authentication / API Gateway
   ↓
Authorization
   ↓
Unified service

Anonymous internet users should not be able to invoke backend-to-backend business operations.

  1. Protect diagnostic endpoints. Endpoints exposing:
Text
/v3/api-docs
/swagger-ui/*
/gitInfo
/info/*
/metrics/*

should either be disabled in production or restricted to authenticated/internal users. Operational diagnostics should not expose internal IP addresses, source repositories, internal documentation, downstream infrastructure or production metrics to anonymous callers.

  1. Enforce authorization on business operations. Every state-changing operation should independently enforce authorization. The application should not rely solely on the assumption that:
Text
"only internal systems can reach this endpoint"

The application itself should verify that the caller is authorized to perform the operation.

  1. Validate order data server-side. The order handler should independently validate trading-partner identity, SKU, quantity, prices, currency, destination, order structure and permitted callers. Client-supplied values should never be treated as trusted merely because they arrive at a backend endpoint.

  2. Restrict management interfaces. Internal management interfaces should remain accessible only from the appropriate internal network or administrative security boundary. They should never become indirectly exposed through a public diagnostic endpoint.

Variants to test

  • Public OpenAPI documents on other hosts. Request the documentation path anonymously and look for a 200 response with no security scheme and no global security requirement. A positive result is a contract that describes business operations with no declared authentication.
  • Spring Boot actuator and diagnostic paths. Try the build-information, peer-information, global-information and metrics endpoints anonymously. A positive result is commit, release, build or repository metadata, RFC1918 addresses with management paths, internal documentation references, or Prometheus output naming downstream services.
  • Documented state-changing routes. Take each POST or other mutating operation from the contract and send a controlled placeholder body with no credentials. A positive result is a success acknowledgement such as {"code": 200, "success": true, "errors": []} from a handler that should require a caller identity.
  • Validation boundary probes. Resend the same request with malformed or nonsensical values for quantity, price, country, currency and partner identifier. A positive result is the same success acknowledgement, showing that business validation is missing as well as authentication.
  • Read-back checks. After a successful acknowledgement, look for an order identifier in the response or a documented read endpoint. If neither exists, treat the downstream effect as unproven, as this report does, rather than assuming fulfilment occurred.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 25 min read.

What happened, in plain words

A security researcher was testing a large online shop's hidden back end, the part of a website that ordinary visitors never see. He found that one of its services was reachable from the open internet and asked for no proof of identity at all. No password, no login, no key. Anyone with a browser or a simple request tool could talk to it.

That service also handed out its own instruction manual (a document describing every function it offers), details about the software version it was running, the private network addresses of the machines behind it, and live statistics about how it was working. On top of that, one of its functions accepted an order and replied that everything was fine, again without asking who was calling.

The researcher was careful about one thing: he never claimed a real order was actually placed with a real business partner. The reply said "success", but it contained no order number and there was no way to look the order up afterwards. So the proven facts are: the service was reachable, it accepted the request, and it said yes. What happened after that is unknown.

This article walks through the whole investigation from the beginning, explaining every term as it appears. You only need to know how to use a browser and a computer.

The two kinds of problem found

The researcher grouped what he found into two families. The diagram below is his own summary:

Text
Unauthenticated API
       │
       ├── Internal information disclosure
       │      ├── API contract
       │      ├── source metadata
       │      ├── internal topology
       │      ├── downstream services
       │      └── operational metrics
       │
       └── Unauthenticated state changes
              └── Order-submission handler

Line by line:

  • Unauthenticated API: an API is a way for two computer programs to talk to each other, like a waiter taking your order to the kitchen. "Unauthenticated" means the waiter never asks who you are. Anyone can place an order.
  • Internal information disclosure: the service gave away information that was meant to stay inside the company. Think of a shop that leaves its staff rota and delivery schedule taped to the front window.
  • API contract: the list of everything the API can do, with the exact names and shapes of the data it expects.
  • Source metadata: details about the programming code itself, such as which version was built and when.
  • Internal topology: a map of the company's private network, meaning which machines exist and how they connect.
  • Downstream services: other programs that this one talks to in order to finish its work, like a kitchen talking to a delivery driver.
  • Operational metrics: live numbers about how the service is behaving, such as how many requests it receives.
  • Unauthenticated state changes: a "state change" means the server actually does something and its condition changes, for example recording an order. "Unauthenticated" again means no identity check.
  • Order-submission handler: the specific piece of the program that receives an order and passes it on.

One limitation was stated openly: the researcher did not claim that the "success" reply proved a real order reached a business partner. The endpoint was shown to be reachable and to change something from the public internet, but the reply had no order identifier and no way to read the order back, so the later steps could not be confirmed.

Setting the scene

The target was a live production commerce backend. The service was built with a tool called Spring Boot. Spring Boot is a popular framework, meaning a ready-made set of building blocks, for writing web services in the Java programming language. It comes with a set of built-in "operational" pages that report on the service's health and settings, and those pages sat right next to the shop's real business functions.

No accounts, roles or special tools are described. The only precondition for the whole finding was that the API's address could be reached from the internet without any credential. A credential is anything you show to prove who you are: a password, a key, a login session.

Finding it

The first question the researcher asked was simple: does this API check who is calling? Instead of starting with the business functions, he looked for the API's documentation. That is like checking whether a building's floor plan is lying on the pavement before trying the doors.

The service published an OpenAPI document openly. OpenAPI is a standard format for describing an API: which addresses exist, what data each one takes, and what it sends back. The request for it succeeded with no login:

HTTP
GET /v3/api-docs→ HTTP 200

Line by line:

  • GET is the type of request a browser makes when it simply asks for something, as opposed to sending data. It is the same "GET" you see in everyday web traffic.
  • /v3/api-docs is the address, or path, of the documentation page on the server.
  • HTTP 200 is the status code the server replied with. Status codes are three-digit numbers; 200 means "OK, here you go". A 401 or 403 would have meant "who are you?" or "not allowed".
  • The arrow is just the researcher's shorthand for "and the answer was".

The OpenAPI document contained no authentication security scheme and no global security requirement. In plain terms: the manual had a section where it could say "to use this API you must log in", and that section was empty. Even more telling, each individual business function was listed without any login requirement either.

That raised a natural question: if the manual is public and says no login is needed, do the real functions behave the same way? The answer was yes.

An anonymous request, meaning one with no identity attached, was enough to reach the live API. There was no Authorization: Bearer ... header, no API key, no application session cookie and no account of any kind. A few of those terms deserve a moment:

  • A header is a small labelled line sent along with a web request, like the address and return-address fields on an envelope.
  • Authorization: Bearer ... is a standard header used to carry a token. A token is a temporary string of characters that stands in for a login, like a cloakroom ticket: show the ticket, get the coat, no need to prove who you are again.
  • An API key is a long secret string a program includes to identify itself, similar to a membership card.
  • A session cookie is a small piece of data your browser stores after you log in and sends back with each request, so the server remembers you between page loads.

So the shape of the service was this:

Text
Internet
   │
   ▼
Production API
   │
   ├── Documentation
   ├── Diagnostics
   ├── Metrics
   └── Business operations

Line by line:

  • Internet at the top means anyone, anywhere, with a connection.
  • The arrow points straight down into the Production API, the live service handling real business.
  • Underneath, the service offers four groups of things: Documentation (the manual), Diagnostics (self-check pages), Metrics (live statistics) and Business operations (the actual work, such as orders).

A safer design would have looked like this instead:

Text
Internet
   │
   ▼
Authentication / Gateway
   │
   ▼
Production API

Here, every request first passes through an Authentication / Gateway layer. A gateway is a front door that checks visitors before letting them in, and authentication is the act of confirming identity. Only after passing that check does a request reach the Production API. In the real case, that front door was missing.

That difference mattered when the researcher started listing what the open service actually exposed.

How the problem was used

Step 1: Read the OpenAPI contract anonymously

The public OpenAPI document was the entry point. It answered with HTTP 200 and no credentials, and it described the complete API contract: the routes (addresses), the models (shapes of data) and the fields (individual pieces of data). Because the document declared no security scheme and no global security requirement, it acted as a map of the application without the researcher having to guess addresses one by one. Guessing addresses is noisy and slow; reading the manual is quiet and fast.

Step 2: List the diagnostic and operational pages

Several diagnostic and operational pages returned data to anonymous callers. "Diagnostic" here means pages a service uses to report on itself, normally for the company's own engineers. The exposed information was:

Endpoint category Exposure
OpenAPI documentation Complete API contract, routes, models, and fields
Swagger UI Interactive API console
Git/build information Commit, release, build, and repository metadata
Peer information Internal cluster addresses and management surfaces
Global information Internal documentation and service references
Prometheus metrics Operational metrics and downstream infrastructure information

A quick guide to the table:

  • An endpoint is one specific address on a server that does one specific job, like one counter in a large office.
  • Swagger UI is a web page that turns an OpenAPI document into clickable buttons, so you can try each function from the browser. An interactive API console is exactly that: a control panel for the API.
  • Git is the tool programmers use to track changes to code. A commit is one saved change, a release tag is a label marking a version, and a repository is the store where the code and its history live.
  • Peer information refers to the other machines in the same cluster. A cluster is a group of computers working together as one service.
  • Prometheus is a popular tool for collecting live measurements from software. Metrics are those measurements, such as request counts.

So the service revealed both how the application works and where its back-end dependencies live. That is like a shop publishing not only its price list but also the addresses of its warehouses.

Step 3: Read source-control metadata

The exposed build-information page returned information that should normally stay internal. The response included values equivalent to:

Text
commit ID
release tag
build timestamp
repository origin
build metadata

Line by line:

  • commit ID is the unique fingerprint of one saved change in the code history.
  • release tag is the label attached to the version that was shipped.
  • build timestamp is the date and time the software was compiled, meaning turned from human-written code into a runnable program.
  • repository origin is the address of the company's private code store.
  • build metadata is any extra information recorded during that compilation.

This tells an attacker exactly which version of the software is running and where its code lives. A normal production setup has no reason to show its private code store address to anonymous visitors. The value grows when combined with the API documentation and the network details: together they describe both the software and the surroundings.

Step 4: Read internal infrastructure information

One of the most interesting pages was the peer-information page. It returned internal RFC1918 addresses belonging to the production cluster, and it also exposed internal management paths for those machines. RFC1918 is a standard that sets aside certain address ranges for private networks. Those addresses work only inside a company's own network, much like room numbers inside one building rather than street addresses. A management path is an address that controls a machine rather than serving normal traffic.

The disclosure looked like this:

Text
Production API
      │
      ▼
Peer information
      │
      ├── Internal node A
      ├── Internal node B
      ├── Internal node C
      ├── ...
      └── Internal node N
             │
             └── Internal management interface

Line by line:

  • The Production API is asked for its peer information.
  • The Peer information page answers with a list of machines, called nodes here, labelled A, B, C and so on up to N. A node is one computer in a cluster.
  • The dots mean the list continues in the same pattern.
  • Each node is linked to an Internal management interface, a control panel reachable only from inside the network.

The addresses were private and came with management endpoints. The researcher did not try to access or interact with those internal management interfaces. The finding was simply that the public service itself handed the internal map to anonymous callers. That restraint matters: touching internal systems could disrupt a live company.

Step 5: Read internal documentation references and metrics

Another diagnostic page exposed references to internal documentation and operational resources. The metrics page gave even more context. The publicly readable Prometheus output contained information about:

  • downstream service names
  • service dependencies
  • request volumes
  • application behaviour
  • operational counters
  • internal infrastructure references

In plain words: the names of the other services this one talks to, which service relies on which, how much traffic arrives, how the application behaves, running totals of events, and pointers to internal machines. The metrics response was roughly hundreds of kilobytes of operational information. A kilobyte is about a thousand characters, so this was a substantial document, not a single line.

That is far more useful to an attacker than a generic banner such as:

Text
Spring Boot

A banner is a line a service shows to announce what software it runs. Knowing only "Spring Boot" tells you little. Knowing the service names, the traffic patterns and the internal references gives a map of how the production service communicates with the rest of the environment.

Step 6: Spot a function that changes something

Information disclosure alone was not the end of the investigation. The API documentation showed a business function responsible for sending order information to an external fulfilment/trading-partner workflow. Fulfilment means the process of actually getting goods to a customer, and a trading partner is an outside business that takes part in that process.

The function was, in concept:

Text
POST /fanatics/send

Line by line:

  • POST is the request type used when you send data to a server to create or change something, as opposed to GET, which only asks for something.
  • /fanatics/send is the address. "Send" suggests it dispatches an order onwards.
  • The word "conceptually" means this is the shape of the address rather than a promise about every detail.

The question now was whether the missing login was only an information problem or whether anonymous users could actually trigger business behaviour. The researcher tested the function with a controlled, non-production-impacting payload. A payload is the body of data sent with a request, and "controlled" means deliberately chosen to be harmless. No credentials were supplied.

Step 7: Submit an order body without credentials

The request contained an attacker-controlled order body with fields such as:

Text
trading-partner identifier
purchase-order identifier
currency
order total
shipping information
line items
quantity
SKU

Line by line:

  • trading-partner identifier says which outside business the order is for.
  • purchase-order identifier is the order's reference number.
  • currency is the money type, such as euros or pounds.
  • order total is the amount of money.
  • shipping information is where the goods should go.
  • line items are the individual products on the order.
  • quantity is how many of each product.
  • SKU stands for stock keeping unit, a unique code for one product, like a barcode number.

"Attacker-controlled" means every one of those values was chosen by the person sending the request, not by the shop.

The production API accepted the request. The reply was:

JSON
{
  "code": 200,
  "success": true,
  "errors": []
}

Line by line:

  • The outer braces { and } mark a JSON object. JSON is a common text format for structured data, built from names and values.
  • "code": 200 repeats the HTTP status inside the body: 200 means OK.
  • "success": true says the operation succeeded.
  • "errors": [] is an empty list, shown by the square brackets, meaning no errors were reported.

This behaviour was reproduced consecutively, meaning it happened again and again, not once by accident. The key observation was not the HTTP 200 by itself. It was that a function which changes something accepted the request with no authentication context at all. The function did not require:

Text
Bearer token
API key
Session cookie

or any other credential. Those three are the identity proofs described earlier: a temporary ticket, a membership card and a browser's memory of your login.

Step 8: Test the validation boundary

The researcher then checked whether the function performed meaningful server-side validation. Validation means checking that the data makes sense before acting on it, and "server-side" means the check happens on the server rather than in the browser, where the sender could tamper with it.

The function kept returning the same success reply for business-invalid inputs, including malformed or nonsensical values. Examples included invalid:

Text
quantity
price
country
currency
trading-partner identifier

In other words, a quantity that makes no sense, a price that makes no sense, a country that does not exist, a currency that is not real, or a partner identifier that matches nobody, all got the same cheerful "success". This showed the function was not merely missing a login check; it also lacked a proper business-validation boundary. A boundary here means the point where bad data should be stopped.

The proper order of checks is:

Text
Authentication
        ↓
Authorization
        ↓
Business validation
        ↓
State change

Line by line:

  • Authentication asks "who are you?"
  • Authorization asks "are you allowed to do this?"
  • Business validation asks "does this data make sense?"
  • State change is the actual action, such as recording an order.

The arrows show the order: each check should happen before the next. The vulnerable service let an anonymous caller jump straight to the last step without passing the earlier ones.

What was actually proven

The researcher described the finding precisely. What was demonstrated was:

Text
Anonymous internet user
        ↓
No credentials
        ↓
Reach production API
        ↓
Submit attacker-controlled order body
        ↓
Server accepts request
        ↓
{"success":true}

Line by line:

  • An anonymous internet user, someone with no account, started the chain.
  • They supplied no credentials.
  • They still reached the production API.
  • They submitted an attacker-controlled order body.
  • The server accepted the request.
  • It answered {"success":true}.

So the service exposed an unauthenticated operation that changes something. But the reply was not claimed to prove that a real fulfilment order was created. The reply contained only:

Text
code
success
errors

Those are the three fields explained above: a status number, a true/false flag and a list of errors. There was no order identifier, meaning no reference number for a created order, and no read-back endpoint, meaning no address where the researcher could look the order up afterwards. The service's operational metrics were also consistent with the function finishing locally rather than showing a synchronous downstream fulfilment call. "Synchronous" means the service waits for the other side to answer before replying; the evidence suggested no such wait happened.

A success:true acknowledgement proves the application accepted the operation. It does not automatically prove that an external fulfilment partner completed the transaction. This is the difference between a waiter saying "I've taken your order" and the kitchen actually cooking it.

Why the combination matters

The information disclosure and the state-changing behaviour reinforced each other. An attacker could first collect:

Text
API contract
       +
source metadata
       +
internal topology
       +
service dependencies
       +
operational metrics

Line by line, those are the manual, the code version details, the network map, the list of connected services and the live statistics, added together. With that knowledge, the exposed business functions become much easier to understand and use. The resulting attack surface, meaning the total set of things an attacker can try, looked approximately like this:

Text
Anonymous Internet User
                          │
                          ▼
                 Production API
                          │
          ┌───────────────┴───────────────┐
          ▼                               ▼
  Internal Disclosure              Business Operations
          │                               │
          ├── API contract                └── Order submission
          ├── Git metadata                    │
          ├── Internal hosts                  ▼
          ├── Management paths          Attacker-controlled
          ├── Dependencies              request accepted
          └── Metrics

Line by line:

  • An Anonymous Internet User reaches the Production API.
  • The path then splits in two.
  • On the left, Internal Disclosure lists what leaked: the API contract, Git metadata (code version details), Internal hosts (private machine addresses), Management paths (control addresses), Dependencies (connected services) and Metrics (live statistics).
  • On the right, Business Operations leads to Order submission, where an Attacker-controlled request was accepted.

This is substantially different from simply having Swagger accidentally enabled. Swagger being left on is a common, minor mistake: it shows the manual. Here the API exposed both its internal architecture and a business operation that accepted unauthenticated requests that change things.

The method, step by step

The discovery came from treating the API as an application in its own right, rather than assuming that a production hostname implies authentication. A hostname is the name of a machine on the internet, and "production" means the live system customers use. The workflow was roughly:

Text
Discover backend
      ↓
Find API documentation
      ↓
Inspect OpenAPI security definitions
      ↓
Test documented endpoints anonymously
      ↓
Enumerate diagnostic exposure
      ↓
Identify state-changing routes
      ↓
Test authentication boundary
      ↓
Test validation boundary
      ↓
Stop before causing production impact

Line by line:

  • Discover backend: notice that a back-end service exists and is reachable.
  • Find API documentation: locate the manual.
  • Inspect OpenAPI security definitions: read the part of the manual that should say what login is required.
  • Test documented endpoints anonymously: try the listed addresses with no credentials.
  • Enumerate diagnostic exposure: list, one by one, what the self-check pages reveal.
  • Identify state-changing routes: pick out the addresses that do something rather than just read.
  • Test authentication boundary: check whether those addresses ask who you are.
  • Test validation boundary: check whether they reject nonsense data.
  • Stop before causing production impact: halt before anything could affect real customers or systems.

The OpenAPI document was especially valuable because it mapped the service without aggressive endpoint discovery, meaning without blindly trying many addresses. Once it was clear the specification required no authentication, the next question was whether the documentation matched real behaviour. It did.

Staying safe on a live system

Because the function was live production infrastructure, testing was deliberately limited. The goal was to demonstrate:

Text
Unauthenticated reachability
+
Attacker-controlled input
+
Server acceptance

Line by line:

  • Unauthenticated reachability: the address could be reached without logging in.
  • Attacker-controlled input: the data sent was chosen by the sender.
  • Server acceptance: the server took the request and said yes.

All of this was done without trying to create real orders, trigger fulfilment, touch real customer data or access the disclosed internal management interfaces. The test payload used controlled placeholder values, meaning made-up stand-ins rather than real details. That let the authentication and validation weaknesses be shown without unnecessarily affecting production systems.

Why it was possible

The architectural mistake was that the back-end service had no authentication boundary in front of it and enforced none itself. It appears to work as an internal service rather than a public consumer API, and nothing inside the application independently checked the caller. Because the service was reachable from the internet, that assumption failed, and nothing inside the application independently checked the caller.

The OpenAPI contract reflected the same gap: it declared no authentication security scheme and no global security requirement, and the individual business functions carried no authentication requirements either. The order function also lacked a business-validation boundary, accepting malformed or nonsensical values such as an invalid quantity, price, country, currency and trading-partner identifier with the same success reply. The anonymous caller reached the business function without the expected controls.

What the impact was

The demonstrated impact falls into two major categories.

1. Internal information disclosure

Anonymous users could obtain:

  • the complete API contract
  • source-control and build metadata
  • internal production cluster addresses
  • internal management endpoint references
  • internal documentation references
  • downstream service hostnames
  • operational metrics

This gives detailed visibility into the architecture of a production commerce backend. In everyday terms, a stranger could learn how the shop's systems are built, where its machines live and what software they run.

2. Unauthenticated state-changing operation

The order-submission function accepted an attacker-controlled request body without credentials and returned a successful acknowledgement. This establishes a direct broken-access-control condition on a production business operation. "Broken access control" is the security category for systems that fail to check whether a caller is allowed to do something.

The exact downstream fulfilment impact was intentionally not asserted because it was not independently demonstrated: the reply contained no order identifier, there was no read-back endpoint, and the metrics were consistent with local completion rather than a synchronous downstream call.

How to fix it

The report sets out five measures.

  1. Put authentication at the gateway. The back end appears to work as an internal service rather than a public consumer API, so it should be protected by an authentication and authorization layer before requests reach the application:
Text
Internet
   ↓
Authentication / API Gateway
   ↓
Authorization
   ↓
Unified service

Line by line: a request from the Internet first meets an Authentication / API Gateway, which checks identity. It then passes an Authorization check, which confirms permission. Only then does it reach the Unified service, the single protected entry point. Anonymous internet users should not be able to invoke business operations meant for one back-end system talking to another.

  1. Protect diagnostic endpoints. Endpoints exposing:
Text
/v3/api-docs
/swagger-ui/*
/gitInfo
/info/*
/metrics/*

should either be disabled in production or restricted to authenticated or internal users. Line by line, these are the manual, the clickable console, the code-version page, the general information pages and the statistics pages. The asterisk * is a wildcard meaning "anything after this point". Operational diagnostics should not expose internal IP addresses, source repositories, internal documentation, downstream infrastructure or production metrics to anonymous callers.

  1. Enforce authorization on business operations. Every operation that changes something should independently enforce authorization. The application should not rely solely on the assumption that:
Text
"only internal systems can reach this endpoint"

That line is the dangerous belief that the address is hidden, so no check is needed. The application itself should verify that the caller is authorized to perform the operation.

  1. Validate order data server-side. The order function should independently validate trading-partner identity, SKU, quantity, prices, currency, destination, order structure and permitted callers. Client-supplied values, meaning anything the sender provides, should never be treated as trusted merely because they arrive at a back-end endpoint.

  2. Restrict management interfaces. Internal management interfaces should remain accessible only from the appropriate internal network or administrative security boundary. They should never become indirectly exposed through a public diagnostic page.

What to try on other targets

  • Public OpenAPI documents on other hosts. Request the documentation path anonymously and look for a 200 response with no security scheme and no global security requirement. A positive result is a contract that describes business operations with no declared authentication.
  • Spring Boot actuator and diagnostic paths. Try the build-information, peer-information, global-information and metrics endpoints anonymously. A positive result is commit, release, build or repository metadata, RFC1918 addresses with management paths, internal documentation references, or Prometheus output naming downstream services.
  • Documented state-changing routes. Take each POST or other mutating operation from the contract and send a controlled placeholder body with no credentials. A positive result is a success acknowledgement such as {"code": 200, "success": true, "errors": []} from a function that should require a caller identity.
  • Validation boundary probes. Resend the same request with malformed or nonsensical values for quantity, price, country, currency and partner identifier. A positive result is the same success acknowledgement, showing that business validation is missing as well as authentication.
  • Read-back checks. After a successful acknowledgement, look for an order identifier in the response or a documented read endpoint. If neither exists, treat the downstream effect as unproven, as this report does, rather than assuming fulfilment occurred.

The final lesson

The finding started with a simple question: does this production API actually have an authentication boundary? The answer was no. That single architectural failure exposed much more than an API specification. It exposed:

Text
API documentation
        +
Source metadata
        +
Internal topology
        +
Service dependencies
        +
Operational metrics
        +
Unauthenticated business operations

Line by line, that is the manual, the code version details, the network map, the connected services, the live statistics and business functions anyone could call, all added together.

The most important lesson for API security testing is: do not assume that a back-end API is protected simply because it is meant to be internal. Verify the authentication boundary from the perspective of an anonymous internet client. And when an unauthenticated API is found, do not stop at information disclosure. Map the documented operations, identify the ones that change something, and check whether the server independently enforces authentication, authorization and business validation.

In this case, the result was a production back end that disclosed its internal architecture while also accepting attacker-controlled requests against an order-submission operation, all without requiring credentials.

Glossary

  • API: a way for two computer programs to talk to each other, like a waiter carrying orders between you and the kitchen.
  • API contract: the document describing every function an API offers, with the data each one expects and returns.
  • API key: a long secret string a program includes to identify itself, like a membership card.
  • API gateway: a front door that checks requests before letting them reach the service behind it.
  • Authentication: the act of confirming who someone is.
  • Authorization: the act of confirming whether someone is allowed to do something.
  • Authorization header: a small labelled line sent with a request that carries proof of identity, such as a token.
  • Bearer token: a token sent in the Authorization header, where simply showing the ticket is enough.
  • Broken access control: the security category for systems that fail to check whether a caller is allowed to do something.
  • Build: the process of turning human-written code into a runnable program.
  • Build metadata: extra information recorded during a build, such as the time and version.
  • Cluster: a group of computers working together as one service.
  • Commit: one saved change in a code history, identified by a unique fingerprint called a commit ID.
  • Credential: anything you show to prove who you are, such as a password, key or login session.
  • Currency: the type of money used, such as euros or pounds.
  • Diagnostic endpoint: a page a service uses to report on itself, normally for its own engineers.
  • Downstream service: another program that this one talks to in order to finish its work.
  • Endpoint: one specific address on a server that does one specific job.
  • Fulfilment: the process of actually getting goods to a customer.
  • GET: the request type used to ask for something without changing it.
  • Git: the tool programmers use to track changes to code.
  • Header: a small labelled line sent along with a web request, like the fields on an envelope.
  • Hostname: the name of a machine on the internet.
  • HTTP 200: the status code meaning "OK, here is the response".
  • JSON: a common text format for structured data, built from names and values.
  • Line items: the individual products listed on an order.
  • Management interface: a control panel for a machine, normally reachable only from inside a network.
  • Metrics: live measurements about how software is behaving, such as request counts.
  • Node: one computer in a cluster.
  • OpenAPI: a standard format for describing an API, including its addresses, data shapes and security requirements.
  • Payload: the body of data sent with a request.
  • Peer information: details about the other machines in the same cluster.
  • POST: the request type used to send data to a server to create or change something.
  • Production: the live system that real customers use.
  • Prometheus: a popular tool for collecting live measurements from software.
  • Purchase-order identifier: the reference number of an order.
  • Read-back endpoint: an address where you can look up something you created, to confirm it exists.
  • Repository: the store where code and its history live.
  • RFC1918: the standard that sets aside certain address ranges for private networks, usable only inside an organisation.
  • Route: an address on a server, as listed in an API contract.
  • Security scheme: the part of an API description that says what login is required.
  • Server-side validation: checking that data makes sense on the server, where the sender cannot tamper with the check.
  • Session cookie: a small piece of data your browser stores after logging in and sends back with each request, so the server remembers you.
  • SKU: stock keeping unit, a unique code for one product, like a barcode number.
  • Spring Boot: a popular framework, meaning a ready-made set of building blocks, for writing web services in Java.
  • State change: an action that alters something on the server, such as recording an order.
  • Swagger UI: a web page that turns an OpenAPI document into clickable buttons for trying each function.
  • Synchronous: waiting for another system to answer before replying yourself.
  • Token: a temporary string of characters that stands in for a login, like a cloakroom ticket.
  • Trading partner: an outside business that takes part in fulfilling orders.
  • Unauthenticated: with no identity check at all.
  • Validation boundary: the point where bad or nonsensical data should be stopped.

More by redhunter01

View all

24 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.