Skip to content
Access control Write-up Intermediate

Unauthenticated Access to Internal Employee Content Through Unprotected API Endpoints

Several backend API endpoints on an employee-facing platform did not enforce the Entra/MSAL authentication that the frontend required, so an anonymous internet user could retrieve employee-only content, internal operational details, employee names and backend metadata. A second unauthenticated configuration endpoint exposed a static file-service token, which combined with file identifiers from the content API allowed retrieval of files without per-file authorization.

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. 12 min read.

Context

The target was an internal employee-facing platform. Its frontend was protected by an enterprise identity provider: the application's JavaScript referenced Microsoft's login infrastructure, and the normal user flow required an employee to authenticate before reaching the platform. Behind that frontend sat a backend API, and the security question that drove the whole investigation was whether the API enforced the same boundary the frontend did.

The feature at the centre of the report is a content API that serves articles and communications to employees, together with a configuration API and a file service used to deliver attachments. The content records carried fields such as creator, editor, visibilityType, views, content/body, attachment references and database metadata.

The vulnerability class is broken access control, specifically missing authentication for critical function (CWE-306) combined with exposure of sensitive information (CWE-200): API authorization misconfiguration, a trust-boundary bypass, and static bearer-token authorization for files.

Setup

The precondition was simply an internet-facing position with no credentials: the tests were performed as an anonymous user, deliberately sending requests with no cookie, no Authorization header and no session. The researcher's approach was to work from the API rather than the UI, mapping which hosts the frontend talked to and which routes returned data.

Finding it

The starting assumption under test was the common one: because the frontend requires authentication, the backend must be enforcing it. The intended flow looks like this:

Text
Frontend
   |
   | Entra/MSAL authentication
   v
Employee application
   |
   v
Backend API

and the security assumption should be that an unauthenticated user cannot reach the backend API at all. In practice applications often end up with an unauthenticated user reaching an API endpoint and receiving 200 OK. That gap between the intended trust boundary and the API's actual authorization behaviour is where the finding lived.

Rather than spending the testing time interacting with the frontend, the researcher examined API behaviour and asked a fixed set of questions: which API hosts the frontend communicates with, which endpoints return application data, which require authentication and which do not, whether authentication checks are implemented consistently, what an unauthenticated response actually contains, whether information from one endpoint can be chained into another, and whether a token represents a user, a file, or simply the application itself. The goal was not to find a strange parameter but to demonstrate that an anonymous attacker can cross a security boundary that should require authentication.

Exploitation

Step 1: Locate the content endpoint and strip authentication

The application exposed an API backend. One interesting route was:

HTTP
GET /v1/teamone/api/readContent

It accepted parameters such as appId and type, for example:

HTTP
GET /v1/teamone/api/readContent?appId=TEAM_TECH&type=NEWS

The first test was deliberately simple: remove all authentication, send the request, observe the response. The request carried:

Text
Cookie: none
Authorization: none
Session: none

and the endpoint still returned:

HTTP
HTTP/1.1 200 OK

That was the first strong signal.

Step 2: Differential testing against sibling endpoints

To establish that authentication existed in the application at all, the researcher compared endpoints that appeared to belong to the same application. Some sibling routes returned:

HTTP
HTTP/1.1 401 Unauthorized

when accessed without authentication. For example:

HTTP
GET /v1/teamone/api/appConfig?appId=TEAM_TECH

returned:

Text
401 Unauthorized

while the content route returned:

HTTP
GET /v1/teamone/api/readContent?appId=TEAM_TECH&type=NEWS
Text
200 OK

This is the evidence that matters: authentication was implemented, but specific data-bearing routes sat outside the enforcement boundary. The problem was not that developers forgot authentication entirely.

Step 3: Examine what the anonymous response contains

The next question was what an unauthenticated attacker can actually obtain. The response contained internal employee-platform content, with records including fields such as:

Text
creator
editor
visibilityType
views
content/body
attachment references
database metadata

Among the returned records was an internal operational article referencing an internal tool, an internal hostname, an internal network segment, employee operational procedures and internal authentication requirements. The content was clearly not ordinary public marketing material; language referring to an internal network/VLAN and employee authentication was a particularly useful indicator.

This produced an important distinction: visibilityType = PUBLIC did not necessarily mean internet-accessible. The application's own content indicated that the PUBLIC audience tier meant content distributed broadly within the employee platform. A field called public, visible or enabled has to be interpreted through the application's business logic, not its name.

Step 4: Prove the content was internal

Claiming "the API returns public content" would have been a weak report, so the researcher collected independent indicators that the content was intended for an internal audience:

  1. Internal network references: the content referenced an internal operational environment and network segment.
  2. Employee identities: creator/editor fields exposed real employee names.
  3. Internal operational instructions: the content contained instructions for employees operating internal systems.
  4. Internal contact information: some records contained internal support/contact information.
  5. Frontend authentication: the corresponding employee-facing applications required enterprise authentication.
  6. Sibling API endpoints: other endpoints on the same API correctly returned 401 Unauthorized.

Together these made a far stronger argument than "I found an API returning JSON".

Step 5: The configuration endpoint

Looking at other endpoints used by the same frontend, the researcher found:

HTTP
GET /v1/teamone/api/appLayoutConfig

It also responded without authentication. The response contained application configuration, and more importantly an image/file URL contained a token used by the application's file service. The flow was:

Text
Unauthenticated API
   |
   v
Configuration
   |
   v
File-service token

This turned a single isolated information disclosure into a potential cross-endpoint attack chain.

Step 6: Determine whether the token is user-bound

The next question was whether the token was tied to the authenticated user. The researcher compared configuration responses associated with multiple application identifiers, and the same token appeared across different application contexts. That suggested the model was not:

Text
User A -> Token A
User B -> Token B

but:

Text
Application -> Universal Token

A properly designed authorization system for employee files should evaluate something like: is this user authenticated, is this user authorized, and is this user allowed to access this specific file. The observed design behaved much closer to: does the request contain the universal token, and if yes, allow the file operation.

Step 7: Chain the endpoints

The chain the researcher mapped was: an unauthenticated user reaches the readContent API, which returns employee data, internal content and file IDs; the unauthenticated appLayoutConfig endpoint returns a static file token; that token is accepted by the file download endpoint, leading to file retrieval.

Text
Unauthenticated User
        |
        v
readContent API (no authentication)
        |
        +--> Employee data
        +--> Internal content
        +--> File IDs
                    |
                    v
appLayoutConfig (no authentication)
        |
        v
Static file token
        |
        v
File download endpoint
        |
        v
File retrieval

Step 8: Control test, with and without the token

A good proof of concept contains controls, so the same file request was tested in two conditions. Without the token:

HTTP
GET /v1/filestore/download/files/<FILE_ID>

returned:

Text
401 Unauthorized

With the token:

HTTP
GET /v1/filestore/download/files/<FILE_ID>?[redacted]

returned:

Text
200 OK

This established that the token was being used as an authorization mechanism.

Step 9: Test for per-file authorization

The next question was whether the token authorizes a specific file or the entire file service. A valid file ID obtained from the content response could be requested using the token, and that succeeded. The researcher then tested against a non-existent UUID. The request did not fail at the authorization layer; instead the server progressed far enough to attempt file resolution and returned a file-not-found/server-side error. Conceptually, an invalid or absent authorization gives:

Text
Invalid/no authorization
        |
        v
      401

whereas a valid universal token gives:

Text
Valid universal token
        |
        v
File lookup
        |
        v
File exists? -- No --> File-not-found error

That behaviour strongly indicated the token acts as a broad service-level gate rather than proving ownership or recipient authorization for the individual file.

Step 10: Understand the limit imposed by UUIDs

The file IDs were UUIDv4 values, so the researcher did not claim that every file in the storage system could be downloaded. The demonstrated primitive was:

Text
Known/leaked file ID
        +
Universal token
        |
        v
File access

Blind enumeration is impractical because of the UUID, but file IDs can become available through unauthenticated API responses, application content, shared links, logs or other accidental disclosures, and other endpoints that expose file references.

Step 11: Test the boundaries

Equally important was testing what did not work. The researcher attempted to manipulate request parameters to reach more privileged content, with attempts conceptually equivalent to:

Text
visibilityType=PRIVATE
isAdmin=true
includePrivate=true

Parameter manipulation around application identifiers and content types was also tested. These attempts did not bypass the server-side visibility restrictions, so the report could honestly state that the vulnerability exposed the records returned to anonymous users but did not demonstrate arbitrary access to private records.

Step 12: The control matrix

The final proof relied on several independent controls:

Test Result What it demonstrated
Unauthenticated readContent 200 Missing authentication
Unauthenticated appConfig 401 Auth exists elsewhere
Unauthenticated appLayoutConfig 200 Missing authentication
File without token 401 Token is an authorization gate
File with leaked token 200 Token grants access
Token + arbitrary nonexistent UUID File lookup error No obvious per-file auth layer
Private-content parameter manipulation Blocked Impact boundary
NoSQL/injection attempts No bypass Not an injection issue

The pattern is positive test plus negative control plus sibling endpoint comparison plus boundary test, which is much stronger than one successful request.

Root cause

The application had frontend authentication, authenticated API endpoints, unauthenticated data endpoints and universal file-service authorization at the same time. The intended architecture appeared to be internet, then Entra/MSAL, then employee identity, then authorized API, authorized content and authorized file. The vulnerable architecture effectively allowed the internet to reach both an authenticated API and an unauthenticated API, with the latter leading to internal data, a universal token and the file service.

The mistake is an inconsistent security architecture: authentication was implemented but not applied consistently across all employee-only routes, so data-bearing routes such as readContent and appLayoutConfig fell outside the enforcement boundary. For files, the design used a static token as a service-level gate instead of evaluating user identity, file ownership or a sharing ACL per request. Existing defences did not stop this because the frontend boundary was never the real boundary: the backend routes were reachable directly, and the file service accepted a token that was not tied to a user.

Impact

The demonstrated impact was confidentiality, in several classes:

  • Internal information disclosure: anonymous users could retrieve employee-facing communications and operational content.
  • Employee enumeration: creator/editor fields exposed employee identities, which can provide context for targeted social engineering.
  • Infrastructure reconnaissance: operational content disclosed internal infrastructure concepts, hostnames, network segments and system relationships.
  • Backend reconnaissance: database metadata exposed implementation details associated with the application's CosmosDB backend.
  • File-service exposure: the configuration endpoint disclosed a reusable service token, while file identifiers were exposed by content responses.

The final impact was a chained confidentiality issue rather than a harmless public image download. The vulnerability did not demonstrate customer/fan data access, credential disclosure, database credentials, direct database access, administrative control, arbitrary code execution or modification of internal content. File impact was limited to files whose identifiers became available, because the IDs were UUIDv4 and not enumerable. The issue was treated as a medium-severity confidentiality vulnerability after review.

One triage lesson is worth recording: the first file successfully downloaded was a harmless holiday image, and the triage team reasonably asked why file access mattered if the file was public and harmless. The file itself was not the primary impact. It was a controlled demonstration that an unauthenticated endpoint exposes file identifiers, another unauthenticated endpoint exposes a universal token, the token is accepted by the file service, and the file service does not appear to perform per-file authorization. The sensitive material was the internal employee content and operational information returned by the unauthenticated content API.

The report also initially faced scepticism because records were labelled visibilityType: PUBLIC. The answer was evidence rather than assertion: the content contained internal network information, employee operational instructions, employee-only procedures, internal contacts and enterprise authentication references; the frontend required employee authentication; and sibling API endpoints required authentication. That supported PUBLIC meaning an internal distribution tier rather than unrestricted internet publication.

Fix

The development team confirmed that a fix was being worked on. The recommended remediation is to enforce the same authentication boundary consistently across all employee-only endpoints. Routes such as:

Text
/v1/teamone/api/readContent
/v1/teamone/api/appLayoutConfig
/v1/filestore/*

should not be publicly reachable if the associated data is intended for authenticated employees, and the server should validate the authenticated identity before returning employee content.

For files, authorization should be resource-specific. Instead of a static token leading directly to file access, the check should be conceptually equivalent to:

Text
authenticated user
        +
requested file
        +
file ACL / recipient relationship
        |
        v
allow / deny

Additional improvements listed in the report: short-lived tokens, scoped tokens, per-user authorization, per-file authorization, token rotation, server-side access-control checks, consistent authentication middleware, avoiding sensitive backend metadata in client responses, and minimising unnecessary employee information in anonymous responses. Most importantly, do not rely on the frontend to enforce an authorization boundary; every sensitive backend endpoint must independently enforce authorization.

Variants to test

  1. Sibling endpoint differential. Send the same request to every route under a shared API prefix with cookies, Authorization and session removed. A positive result is one route returning 200 with meaningful data while its siblings return 401, which points at inconsistent middleware configuration.
  2. Configuration endpoints. Request layout, bootstrap and config routes anonymously and inspect URLs embedded in the response. A positive result is a token, signed URL or storage credential in a response that required no authentication.
  3. Token scope comparison. Collect the same configuration response for several application or tenant identifiers and compare tokens. A positive result is an identical token across contexts, indicating an application-level rather than user-level credential.
  4. Token as authorization gate. Request a known file with and without the token. A positive result is 401 without it and 200 with it, proving the token is the authorization mechanism.
  5. Per-object authorization probe. With a valid token, request a well-formed but non-existent object identifier. A positive result is an error from the lookup layer rather than an authorization denial, suggesting no per-object check runs before resolution.
  6. Identifier chaining. Take fileId, documentId or similar identifiers from one anonymous response and feed them to download, preview or streaming endpoints. A positive result is content retrieval using only identifiers and tokens obtained anonymously.
  7. Visibility semantics. Try parameter values such as visibilityType=PRIVATE, isAdmin=true and includePrivate=true on the content route. A blocked result is itself useful: it documents the boundary and keeps the impact claim accurate.
  8. Injection checks on the same parameters. Attempt NoSQL or similar injection against the content route. A positive result would be a bypass of the visibility filter, which would change the finding from information disclosure to arbitrary record access.
  9. Frontend bundle review. Search JavaScript bundles and API clients for route names, hosts and feature-specific endpoints that the UI never calls directly, then replay them anonymously. A positive result is an undocumented route returning data without authentication.

When a boundary is proven, stop: a single controlled retrieval is enough to establish the behaviour, and the report is stronger for documenting what did not work alongside what did.

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. 29 min read.

What happened, in plain words

A company had an internal website for its employees. To get in, an employee had to log in with the company's Microsoft-based login system. The website looked locked down, and from the outside it seemed that only staff could see anything.

But the website was only the shop window. Behind it sat a set of services, called an API, that actually hold and deliver the content. Those services were reachable directly over the internet, and several of them did not check whether the person asking had logged in at all. Anyone who knew the right web address could ask for employee-only articles and get them back, complete with employee names, internal network details and references to attached files.

A second unprotected service handed out a password-like string, called a token, that the file storage service accepted. With a file identifier taken from the first service and that token, a file could be downloaded without logging in.

The researcher who found this reported it, the company accepted it, and the reward was $400 USD. The severity was lowered from High to Medium during review because the exposed material was internal employee content, not customer data or credentials.

This article walks through the same investigation step by step, explaining every term from scratch along the way.

The pieces you need to know first

Before following the story, here are the basic ideas it relies on. Each one is explained again where it first appears, so you can also read straight on and come back.

A website versus an API. A website is what you see in the browser: buttons, pages, images. An API (Application Programming Interface) is the behind-the-scenes counter where the website asks for data. Think of a restaurant: the dining room is the website, the kitchen is the API, and the waiter carries orders between them. Normally you only talk to the waiter. The problem in this story is that the kitchen door was open to the street, so anyone could walk in and ask for food directly.

Authentication versus authorization. Authentication answers "who are you?" (logging in). Authorization answers "what are you allowed to see or do?" (permissions). They are different questions, and a system can do the first well while failing at the second. That is exactly what happened here.

A cookie, a session and a token. When you log in to a website, the site usually gives your browser a small piece of data to remember you by. A cookie is a small label your browser stores and sends back with each request. A session is the server's memory of your logged-in visit. A token is a string of characters that acts like a ticket or a wristband: whoever holds it is treated as allowed. If a token is the same for everyone, it is like a nightclub stamp that never changes, so anyone who learns it can get in.

A request and a response. Your browser sends a request ("give me this page") and the server sends back a response, starting with a status code. 200 OK means "here you go". 401 Unauthorized means "you are not logged in, go away". These two codes are the backbone of the whole story.

An endpoint. An endpoint is one specific address on the API, like one counter in a large office. /v1/teamone/api/readContent is one endpoint; /v1/teamone/api/appConfig is another.

A parameter. Parameters are the extra details attached to an address after a question mark, like ?appId=TEAM_TECH&type=NEWS. They tell the endpoint which content you want, similar to ticking boxes on an order form.

A UUID. A UUID (Universally Unique Identifier) is a long random-looking identifier, for example a string of letters and numbers in a fixed pattern. Because it is effectively impossible to guess, knowing one is like knowing the exact shelf position of a file in a huge warehouse: you can fetch that file, but you cannot find the others by wandering.

The vulnerability class. This finding is classed as broken access control, specifically missing authentication for critical function (CWE-306) combined with exposure of sensitive information (CWE-200). In plain words: some important functions did not check who was calling, and as a result sensitive information leaked. The report also names API authorization misconfiguration, a trust-boundary bypass, and static bearer-token authorization for files. A trust boundary is the imaginary line between "outsiders" and "insiders"; a bypass means crossing that line without permission. A static bearer token is a fixed token that is simply presented with a request ("bearer" means "the bearer of this token is allowed").

The target and the feature

The target was an internal employee-facing platform. Its frontend, the part employees see, was protected by an enterprise identity provider: the application's JavaScript referenced Microsoft's login infrastructure, and the normal user flow required an employee to authenticate before reaching the platform. JavaScript is the code your browser runs to make a page interactive; if it mentions Microsoft's login system, that is a strong hint that logging in is expected.

Behind that frontend sat a backend API. The security question that drove the whole investigation was whether the API enforced the same boundary the frontend did. In other words: the front door had a lock, but was the back door locked too?

The feature at the centre of the report is a content API that serves articles and communications to employees, together with a configuration API and a file service used to deliver attachments. The content records carried fields such as creator, editor, visibilityType, views, content/body, attachment references and database metadata. A field is one labelled piece of information in a record, like a column in a spreadsheet. So each article record said who created it, who edited it, who was allowed to see it, how many views it had, the article text itself, links to attached files, and some technical details about the database behind it.

Setup

The precondition was simply an internet-facing position with no credentials: the tests were performed as an anonymous user, deliberately sending requests with no cookie, no Authorization header and no session. A header is a small line of extra information attached to a request, and Authorization is the header where a login token would normally travel.

The researcher's approach was to work from the API rather than the UI. Instead of clicking around the website, they looked at what the website was quietly asking the servers for, and then asked those servers the same questions themselves, without logging in.

Finding it

The starting assumption under test was the common one: because the frontend requires authentication, the backend must be enforcing it. The intended flow looks like this:

Text
Frontend
   |
   | Entra/MSAL authentication
   v
Employee application
   |
   v
Backend API

Line by line: the top box is the frontend, the part in the browser. The arrow labelled "Entra/MSAL authentication" means the login step uses Microsoft's Entra identity service (MSAL is Microsoft's library for handling that login). The next box is the employee application, and the final arrow leads to the backend API, the service that actually holds the data. Read top to bottom, it says: you must pass the Microsoft login before you ever reach the application, and the application then talks to the API.

The security assumption should be that an unauthenticated user cannot reach the backend API at all. In practice applications often end up with an unauthenticated user reaching an API endpoint and receiving 200 OK. That gap between the intended trust boundary and the API's actual authorization behaviour is where the finding lived.

Rather than spending the testing time interacting with the frontend, the researcher examined API behaviour and asked a fixed set of questions: which API hosts the frontend communicates with, which endpoints return application data, which require authentication and which do not, whether authentication checks are implemented consistently, what an unauthenticated response actually contains, whether information from one endpoint can be chained into another, and whether a token represents a user, a file, or simply the application itself. The goal was not to find a strange parameter but to demonstrate that an anonymous attacker can cross a security boundary that should require authentication.

Why this matters: if you only click around the website, you only ever see what the website lets you see. The website might hide a button, but the API behind it may still answer if asked directly. Asking directly is the whole technique.

Exploitation

Step 1: Locate the content endpoint and strip authentication

The application exposed an API backend. One interesting route was:

HTTP
GET /v1/teamone/api/readContent

Line by line: GET is the type of request that means "give me something" (as opposed to sending data). /v1/teamone/api/readContent is the address of the endpoint, where v1 suggests a version number and readContent suggests it returns articles. This is the address the researcher wanted to test.

It accepted parameters such as appId and type, for example:

HTTP
GET /v1/teamone/api/readContent?appId=TEAM_TECH&type=NEWS

Line by line: everything after the ? is the order form. appId=TEAM_TECH says which application's content is wanted, and type=NEWS says which kind of content. The & simply separates the two parameters.

The first test was deliberately simple: remove all authentication, send the request, observe the response. The request carried:

Text
Cookie: none
Authorization: none
Session: none

Line by line: Cookie: none means no cookie was sent, so the server had no memory of a login. Authorization: none means no login token was attached. Session: none means no session identifier was included. In short: the request arrived as a complete stranger, with no proof of identity whatsoever.

and the endpoint still returned:

HTTP
HTTP/1.1 200 OK

Line by line: HTTP/1.1 is the version of the web protocol used, and 200 OK is the status code meaning "success, here is your data". A stranger asked for employee content and the server said yes. That was the first strong signal.

Why this step was taken: before testing anything clever, you establish the simplest possible fact. If a request with no identity at all gets a success response, you have something worth investigating.

Step 2: Differential testing against sibling endpoints

To establish that authentication existed in the application at all, the researcher compared endpoints that appeared to belong to the same application. Some sibling routes returned:

HTTP
HTTP/1.1 401 Unauthorized

when accessed without authentication. For example:

HTTP
GET /v1/teamone/api/appConfig?appId=TEAM_TECH

Line by line: this is a different endpoint on the same API, appConfig, asking for configuration for the same application TEAM_TECH. A sibling endpoint is simply another address under the same roof.

returned:

Text
401 Unauthorized

Line by line: 401 means "you are not authenticated". The server recognised that a stranger was asking and refused.

while the content route returned:

HTTP
GET /v1/teamone/api/readContent?appId=TEAM_TECH&type=NEWS
Text
200 OK

Line by line: the same anonymous request to the content endpoint, and this time the answer was success.

This is the evidence that matters: authentication was implemented, but specific data-bearing routes sat outside the enforcement boundary. The problem was not that developers forgot authentication entirely. One door was locked and the neighbouring door was not, which tells you the lock exists and was simply not fitted everywhere.

Why this step was taken: a single open endpoint could be explained away as "that data is meant to be public". Showing that its neighbours demand a login proves the application does have a login requirement, and that this particular route slipped outside it.

Step 3: Examine what the anonymous response contains

The next question was what an unauthenticated attacker can actually obtain. The response contained internal employee-platform content, with records including fields such as:

Text
creator
editor
visibilityType
views
content/body
attachment references
database metadata

Line by line: creator and editor are the people who wrote and changed the article. visibilityType is the audience label the application assigns. views is a view counter. content/body is the article text itself. attachment references are pointers to files attached to the article. database metadata is technical information about the database behind the application. Each of these is a small piece of a larger record, and together they describe an article in full.

Among the returned records was an internal operational article referencing an internal tool, an internal hostname, an internal network segment, employee operational procedures and internal authentication requirements. A hostname is the name of a machine on a network, and a network segment is a slice of a private network. The content was clearly not ordinary public marketing material; language referring to an internal network/VLAN and employee authentication was a particularly useful indicator. A VLAN is a separated portion of a network, the kind of detail that only appears in internal documentation.

This produced an important distinction: visibilityType = PUBLIC did not necessarily mean internet-accessible. The application's own content indicated that the PUBLIC audience tier meant content distributed broadly within the employee platform. A field called public, visible or enabled has to be interpreted through the application's business logic, not its name.

Why this step was taken: the status code tells you the door opened; the contents tell you whether anything valuable was behind it. Reading the actual data is what turns a technical curiosity into a real finding.

Step 4: Prove the content was internal

Claiming "the API returns public content" would have been a weak report, so the researcher collected independent indicators that the content was intended for an internal audience:

  1. Internal network references: the content referenced an internal operational environment and network segment.
  2. Employee identities: creator/editor fields exposed real employee names.
  3. Internal operational instructions: the content contained instructions for employees operating internal systems.
  4. Internal contact information: some records contained internal support/contact information.
  5. Frontend authentication: the corresponding employee-facing applications required enterprise authentication.
  6. Sibling API endpoints: other endpoints on the same API correctly returned 401 Unauthorized.

Together these made a far stronger argument than "I found an API returning JSON". JSON is the common text format APIs use to send structured data back, with curly brackets and labelled values.

Why this step was taken: a report is only as strong as its evidence. Six independent clues pointing the same way are much harder to dismiss than one, and they answer the obvious question a reviewer will ask: how do you know this was not meant to be public?

Step 5: The configuration endpoint

Looking at other endpoints used by the same frontend, the researcher found:

HTTP
GET /v1/teamone/api/appLayoutConfig

Line by line: appLayoutConfig suggests this endpoint returns the layout and settings of the application, the kind of information the frontend needs to draw itself. Configuration endpoints are interesting because they often contain more than settings.

It also responded without authentication. The response contained application configuration, and more importantly an image/file URL contained a token used by the application's file service. A URL is a web address, and here one of those addresses carried a token inside it. The flow was:

Text
Unauthenticated API
   |
   v
Configuration
   |
   v
File-service token

Line by line: a stranger calls the API, the API returns configuration, and inside that configuration sits a token for the file service. Read top to bottom, it is a trail from an open door to a key.

This turned a single isolated information disclosure into a potential cross-endpoint attack chain. An attack chain means using the output of one weakness as the input to the next, like finding a key in an unlocked drawer and using it on a locked cabinet.

Why this step was taken: once one endpoint is open, the natural next question is what else the same frontend talks to. Configuration endpoints are a classic place to look because they are built to hand information to the browser, and sometimes they hand over more than intended.

Step 6: Determine whether the token is user-bound

The next question was whether the token was tied to the authenticated user. The researcher compared configuration responses associated with multiple application identifiers, and the same token appeared across different application contexts. That suggested the model was not:

Text
User A -> Token A
User B -> Token B

Line by line: this is the safe design. Each user gets their own token, so a token identifies a person. If User A's token leaks, only User A's access is affected.

but:

Text
Application -> Universal Token

Line by line: this is the risky design. The application itself has one token, shared by everyone. If it leaks, everyone's access is affected, and the token proves nothing about who is asking.

A properly designed authorization system for employee files should evaluate something like: is this user authenticated, is this user authorized, and is this user allowed to access this specific file. The observed design behaved much closer to: does the request contain the universal token, and if yes, allow the file operation.

Why this step was taken: the severity of a leaked token depends entirely on what the token represents. A per-user token leaking is a problem for one person; a universal token leaking is a problem for the whole file store. Comparing responses across different applications is a simple way to tell which kind you are holding.

Step 7: Chain the endpoints

The chain the researcher mapped was: an unauthenticated user reaches the readContent API, which returns employee data, internal content and file IDs; the unauthenticated appLayoutConfig endpoint returns a static file token; that token is accepted by the file download endpoint, leading to file retrieval.

Text
Unauthenticated User
        |
        v
readContent API (no authentication)
        |
        +--> Employee data
        +--> Internal content
        +--> File IDs
                    |
                    v
appLayoutConfig (no authentication)
        |
        v
Static file token
        |
        v
File download endpoint
        |
        v
File retrieval

Line by line: the stranger at the top calls readContent, which has no authentication. That call yields three things: employee data, internal content, and file IDs (the identifiers of attached files). Those file IDs flow down to the next stage, where the stranger calls appLayoutConfig, also without authentication, and receives a static file token. That token is then presented to the file download endpoint, and the result is file retrieval. Each arrow is one step that only works because the previous step handed over something useful.

Why this step was taken: individual weaknesses are often rated low. Showing that two of them combine into a working path from stranger to file is what raises the impact, and it is also what makes the report compelling.

Step 8: Control test, with and without the token

A good proof of concept contains controls, so the same file request was tested in two conditions. A control is a comparison test: you change one thing and see whether the result changes, which proves that thing was the cause. Without the token:

HTTP
GET /v1/filestore/download/files/<FILE_ID>

Line by line: this asks the file store for a specific file, identified by <FILE_ID>, and sends no token. The angle brackets are a placeholder, meaning "put the real identifier here".

returned:

Text
401 Unauthorized

Line by line: without the token, the file store refused. So the file store does have a check.

With the token:

HTTP
GET /v1/filestore/download/files/<FILE_ID>?[redacted]

Line by line: the same request, with the token added as a parameter after the question mark. <REDACTED> stands for the real token value, which is hidden here because it is a secret.

returned:

Text
200 OK

Line by line: with the token, the file store handed over the file. The only difference between the two requests was the token, so the token is what unlocked the door.

This established that the token was being used as an authorization mechanism.

Why this step was taken: without the comparison, someone could argue the file was simply public. Running the same request twice, once with and once without the token, removes that argument entirely.

Step 9: Test for per-file authorization

The next question was whether the token authorizes a specific file or the entire file service. A valid file ID obtained from the content response could be requested using the token, and that succeeded. The researcher then tested against a non-existent UUID. The request did not fail at the authorization layer; instead the server progressed far enough to attempt file resolution and returned a file-not-found/server-side error. Conceptually, an invalid or absent authorization gives:

Text
Invalid/no authorization
        |
        v
      401

Line by line: when the request has no valid authorization, the server stops immediately at the door and returns 401. The check happens first, before anything else.

whereas a valid universal token gives:

Text
Valid universal token
        |
        v
File lookup
        |
        v
File exists? -- No --> File-not-found error

Line by line: with a valid token, the server moves past the door and starts looking for the file. It then asks whether the file exists, and when the answer is no, it returns a file-not-found error. The important detail is the order: the server checked the token, then looked for the file, and never asked whether this particular file was allowed for this particular caller.

That behaviour strongly indicated the token acts as a broad service-level gate rather than proving ownership or recipient authorization for the individual file. A service-level gate is like a building pass that opens the front door of every office in the building, rather than a key to one specific office.

Why this step was taken: this is the difference between "you may open this one drawer" and "you may open any drawer". Requesting a file that does not exist is a safe way to see how far a request gets before being stopped, without touching anyone's real data.

Step 10: Understand the limit imposed by UUIDs

The file IDs were UUIDv4 values, so the researcher did not claim that every file in the storage system could be downloaded. UUIDv4 is a particular version of the UUID format built to be effectively random. The demonstrated primitive was:

Text
Known/leaked file ID
        +
Universal token
        |
        v
File access

Line by line: you need two things together, a file ID you already know or that has leaked, plus the universal token. With both, you get the file. Neither alone is enough.

Blind enumeration is impractical because of the UUID, but file IDs can become available through unauthenticated API responses, application content, shared links, logs or other accidental disclosures, and other endpoints that expose file references. Blind enumeration means guessing identifiers one after another until something works; with random UUIDs, the number of possibilities is so vast that guessing is hopeless.

Why this step was taken: stating the limit honestly makes the report more credible. Overclaiming is the fastest way to lose a reviewer's trust, and it also risks describing an impact that was never actually demonstrated.

Step 11: Test the boundaries

Equally important was testing what did not work. The researcher attempted to manipulate request parameters to reach more privileged content, with attempts conceptually equivalent to:

Text
visibilityType=PRIVATE
isAdmin=true
includePrivate=true

Line by line: visibilityType=PRIVATE tries to ask for content labelled private instead of public. isAdmin=true tries to claim administrator rights through a parameter, as if ticking a box made you an admin. includePrivate=true tries to ask the server to include private records in the results. Each is an attempt to talk the server into giving more than it should.

Parameter manipulation around application identifiers and content types was also tested. These attempts did not bypass the server-side visibility restrictions, so the report could honestly state that the vulnerability exposed the records returned to anonymous users but did not demonstrate arbitrary access to private records.

Why this step was taken: knowing where the weakness stops is as valuable as knowing where it starts. It keeps the impact claim accurate, and it shows the reviewer that the boundary was tested rather than assumed.

Step 12: The control matrix

The final proof relied on several independent controls:

Test Result What it demonstrated
Unauthenticated readContent 200 Missing authentication
Unauthenticated appConfig 401 Auth exists elsewhere
Unauthenticated appLayoutConfig 200 Missing authentication
File without token 401 Token is an authorization gate
File with leaked token 200 Token grants access
Token + arbitrary nonexistent UUID File lookup error No obvious per-file auth layer
Private-content parameter manipulation Blocked Impact boundary
NoSQL/injection attempts No bypass Not an injection issue

Line by line: each row is one experiment and what it proved. The first row shows content was reachable without login. The second shows a neighbouring endpoint did demand login, so authentication exists in the application. The third shows the configuration endpoint was also open. The fourth and fifth show the token is what unlocks files. The sixth shows the server looks for a file before checking whether you may have it. The seventh shows attempts to reach private content were blocked. The eighth shows attempts at injection, a technique where crafted input is used to trick a database into running unintended queries, did not work, so this is not an injection bug.

The pattern is positive test plus negative control plus sibling endpoint comparison plus boundary test, which is much stronger than one successful request.

Root cause

The application had frontend authentication, authenticated API endpoints, unauthenticated data endpoints and universal file-service authorization at the same time. The intended architecture appeared to be internet, then Entra/MSAL, then employee identity, then authorized API, authorized content and authorized file. The vulnerable architecture effectively allowed the internet to reach both an authenticated API and an unauthenticated API, with the latter leading to internal data, a universal token and the file service.

The mistake is an inconsistent security architecture: authentication was implemented but not applied consistently across all employee-only routes, so data-bearing routes such as readContent and appLayoutConfig fell outside the enforcement boundary. For files, the design used a static token as a service-level gate instead of evaluating user identity, file ownership or a sharing ACL per request. An ACL, or access control list, is a per-item list of who is allowed to do what with it.

Existing defences did not stop this because the frontend boundary was never the real boundary: the backend routes were reachable directly, and the file service accepted a token that was not tied to a user. Middleware is the layer of software that sits between an incoming request and the code that handles it, and it is often where login checks are applied.

Impact

The demonstrated impact was confidentiality, meaning unauthorised reading of information, in several classes:

  • Internal information disclosure: anonymous users could retrieve employee-facing communications and operational content.
  • Employee enumeration: creator/editor fields exposed employee identities, which can provide context for targeted social engineering. Enumeration means building a list of people or things; social engineering means manipulating a person into revealing information or taking an action.
  • Infrastructure reconnaissance: operational content disclosed internal infrastructure concepts, hostnames, network segments and system relationships. Reconnaissance means gathering information about a target before acting.
  • Backend reconnaissance: database metadata exposed implementation details associated with the application's CosmosDB backend. CosmosDB is a database product.
  • File-service exposure: the configuration endpoint disclosed a reusable service token, while file identifiers were exposed by content responses.

The final impact was a chained confidentiality issue rather than a harmless public image download. The vulnerability did not demonstrate customer/fan data access, credential disclosure, database credentials, direct database access, administrative control, arbitrary code execution or modification of internal content. Credentials are usernames and passwords or similar secrets, and arbitrary code execution means making a server run code of your choosing.

File impact was limited to files whose identifiers became available, because the IDs were UUIDv4 and not enumerable. The issue was treated as a medium-severity confidentiality vulnerability after review.

One triage lesson is worth recording: the first file successfully downloaded was a harmless holiday image, and the triage team reasonably asked why file access mattered if the file was public and harmless. Triage is the first review of a report, where a team decides whether it is valid and how serious it is. The file itself was not the primary impact. It was a controlled demonstration that an unauthenticated endpoint exposes file identifiers, another unauthenticated endpoint exposes a universal token, the token is accepted by the file service, and the file service does not appear to perform per-file authorization. The sensitive material was the internal employee content and operational information returned by the unauthenticated content API.

The report also initially faced scepticism because records were labelled visibilityType: PUBLIC. The answer was evidence rather than assertion: the content contained internal network information, employee operational instructions, employee-only procedures, internal contacts and enterprise authentication references; the frontend required employee authentication; and sibling API endpoints required authentication. That supported PUBLIC meaning an internal distribution tier rather than unrestricted internet publication.

Fix

The development team confirmed that a fix was being worked on. The recommended remediation is to enforce the same authentication boundary consistently across all employee-only endpoints. Routes such as:

Text
/v1/teamone/api/readContent
/v1/teamone/api/appLayoutConfig
/v1/filestore/*

Line by line: the first two are the content and configuration endpoints that answered strangers. The third, /v1/filestore/*, means everything under the file store, where the * stands for any path below it. All three should not be publicly reachable if the associated data is intended for authenticated employees, and the server should validate the authenticated identity before returning employee content.

For files, authorization should be resource-specific. Instead of a static token leading directly to file access, the check should be conceptually equivalent to:

Text
authenticated user
        +
requested file
        +
file ACL / recipient relationship
        |
        v
allow / deny

Line by line: the decision should combine three inputs, namely who the user is, which file they asked for, and the file's access list or their relationship to it as a recipient. Only then should the server answer allow or deny. The point is that the answer depends on the specific file and the specific person, not on a shared token.

Additional improvements listed in the report: short-lived tokens, scoped tokens, per-user authorization, per-file authorization, token rotation, server-side access-control checks, consistent authentication middleware, avoiding sensitive backend metadata in client responses, and minimising unnecessary employee information in anonymous responses. Short-lived means the token expires quickly; scoped means it only works for a narrow purpose; rotation means replacing it regularly.

Most importantly, do not rely on the frontend to enforce an authorization boundary; every sensitive backend endpoint must independently enforce authorization.

Variants to test

These are the same ideas generalised, so you can try them on other applications. Each one is a small experiment with a clear expected result.

  1. Sibling endpoint differential. Send the same request to every route under a shared API prefix with cookies, Authorization and session removed. A positive result is one route returning 200 with meaningful data while its siblings return 401, which points at inconsistent middleware configuration.
  2. Configuration endpoints. Request layout, bootstrap and config routes anonymously and inspect URLs embedded in the response. A positive result is a token, signed URL or storage credential in a response that required no authentication. A signed URL is a web address that carries its own proof of permission inside it.
  3. Token scope comparison. Collect the same configuration response for several application or tenant identifiers and compare tokens. A positive result is an identical token across contexts, indicating an application-level rather than user-level credential. A tenant is one organisation's separate space inside a shared system.
  4. Token as authorization gate. Request a known file with and without the token. A positive result is 401 without it and 200 with it, proving the token is the authorization mechanism.
  5. Per-object authorization probe. With a valid token, request a well-formed but non-existent object identifier. A positive result is an error from the lookup layer rather than an authorization denial, suggesting no per-object check runs before resolution.
  6. Identifier chaining. Take fileId, documentId or similar identifiers from one anonymous response and feed them to download, preview or streaming endpoints. A positive result is content retrieval using only identifiers and tokens obtained anonymously.
  7. Visibility semantics. Try parameter values such as visibilityType=PRIVATE, isAdmin=true and includePrivate=true on the content route. A blocked result is itself useful: it documents the boundary and keeps the impact claim accurate.
  8. Injection checks on the same parameters. Attempt NoSQL or similar injection against the content route. A positive result would be a bypass of the visibility filter, which would change the finding from information disclosure to arbitrary record access. NoSQL injection is the same idea as database injection, aimed at databases that do not use the traditional SQL query language.
  9. Frontend bundle review. Search JavaScript bundles and API clients for route names, hosts and feature-specific endpoints that the UI never calls directly, then replay them anonymously. A positive result is an undocumented route returning data without authentication. A bundle is the packaged JavaScript file a website sends to your browser.

When a boundary is proven, stop: a single controlled retrieval is enough to establish the behaviour, and the report is stronger for documenting what did not work alongside what did.

Glossary

  • ACL (access control list): a per-item list saying who is allowed to do what with that item.
  • API (Application Programming Interface): the behind-the-scenes service a website uses to fetch and send data.
  • API authorization misconfiguration: a setup mistake where an API does not check permissions the way it should.
  • Attachment reference: a pointer inside a record to a file attached to it.
  • Authentication: proving who you are, usually by logging in.
  • Authorization: deciding what a given identity is allowed to see or do.
  • Authorization header: the part of a request where a login token is normally sent.
  • Bearer token: a token where simply holding it is enough to be allowed.
  • Broken access control: a weakness where the system fails to enforce who may access what.
  • Bundle: the packaged JavaScript file a website sends to the browser.
  • Configuration endpoint: an API address that returns an application's settings and layout information.
  • Control (test): a comparison test where one thing is changed to prove it caused the result.
  • Cookie: a small piece of data a browser stores and sends back so a site can remember you.
  • CosmosDB: a database product mentioned in the report as the application's backend.
  • Credentials: secrets used to prove identity, such as usernames and passwords.
  • CWE-306: the catalogue entry for missing authentication for a critical function.
  • CWE-200: the catalogue entry for exposure of sensitive information.
  • Endpoint: one specific address on an API.
  • Entra/MSAL: Microsoft's identity service and the library used to handle its login.
  • Enumeration: building a list of items, such as people or files, one by one.
  • Field: one labelled piece of information in a record, like a spreadsheet column.
  • Frontend: the part of an application that runs in the browser and that users see.
  • GET: the request type that means "give me something".
  • Header: a small line of extra information attached to a request or response.
  • Hostname: the name of a machine on a network.
  • HTTP/1.1: the version of the web protocol used in the requests shown.
  • Injection: a technique where crafted input tricks a system into running unintended commands or queries.
  • JSON: a common text format for structured data, using curly brackets and labelled values.
  • Middleware: the software layer between an incoming request and the code that handles it, often where login checks live.
  • Network segment: a slice of a private network.
  • NoSQL injection: injection aimed at databases that do not use the traditional SQL query language.
  • Parameter: an extra detail attached to an address after a question mark, telling the endpoint what you want.
  • Per-file authorization: checking permission for each individual file rather than for the service as a whole.
  • Proof of concept (PoC): the minimal demonstration that a weakness is real.
  • Reconnaissance: gathering information about a target before acting.
  • Record: one complete entry in a dataset, such as one article with all its fields.
  • Remediation: the fix for a weakness.
  • Request: the message a browser or tool sends to a server asking for something.
  • Response: the message a server sends back, starting with a status code.
  • Scope (of a token): the narrow set of things a token is allowed to do.
  • Session: the server's memory of a logged-in visit.
  • Severity: how serious a weakness is judged to be.
  • Signed URL: a web address that carries its own proof of permission inside it.
  • Social engineering: manipulating a person into revealing information or taking an action.
  • Static token: a fixed token that does not change per user or per session.
  • Status code: the number at the start of a response saying what happened, such as 200 or 401.
  • Tenant: one organisation's separate space inside a shared system.
  • Token: a string of characters that acts as proof of permission, like a ticket or wristband.
  • Triage: the first review of a report, deciding whether it is valid and how serious it is.
  • Trust boundary: the imaginary line between outsiders and insiders in a system.
  • Trust-boundary bypass: crossing that line without permission.
  • UUID / UUIDv4: a long, effectively random identifier; version 4 is built to be unguessable.
  • VLAN: a separated portion of a network.
  • 200 OK: the status code meaning success.
  • 401 Unauthorized: the status code meaning the caller is not authenticated.

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.