Skip to content
Access control Write-up Advanced

The App With No Products

A developer portal allowed an external user to create an app without any API product by removing the product field from the save request. The resulting credentials were rejected by the API-key path but accepted by the OAuth token path, letting the app call a protected proxy that should have been outside its permissions.

Nikita Markevich Follow

Published on bugs.exposed

Bounty$9,000 View original

Apigee OAuth Research

Nikita Markevich, on bugs.exposed

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

Apigee is Google Cloud's API management layer. It sits in front of backend services: a request arrives at an API proxy, and the proxy runs policies for authentication, routing, transformation, rate limits and other gateway work. The customer does not usually hand every consumer direct access to every proxy. Instead, Apigee has a small object model for applications and permissions.

An API consumer registers a developer app. Apigee gives that app a consumer key and a consumer secret. The API provider then attaches one or more API products to the app. A product can include particular proxies, operations, paths, environments, quotas and approval state. In practical terms, the credentials answer which app is calling?; the products answer what may that app call?

That is the foundation for both authentication styles involved in this research.

The simpler path is an API key. A client sends the app's consumer key with the request, and a VerifyAPIKey policy checks it:

XML
<VerifyAPIKey name="Verify-API-Key">
  <APIKey ref="request.queryparam.apikey"/>
</VerifyAPIKey>

This policy does more than check whether the key exists. Apigee resolves the developer app behind it, checks its state, and verifies that one of its API products covers the current proxy and resource.

OAuth in Apigee adds another step. Apigee can act as the authorization server: an app presents its credentials to a token endpoint, an OAuthV2 policy issues an access token, and another OAuthV2 policy validates that token on the protected proxy.

The distinction between VerifyAPIKey and VerifyAccessToken has nothing to do with frontend and backend code. An API key is the shortest application-authentication path. OAuth exchanges app credentials or a user grant for a shorter-lived, independently revocable token with scopes and other metadata. Either way, the app's API products are supposed to remain the authorization boundary. Wrapping the key in an access token should not increase what the app may reach.

Apigee's app-registration documentation makes the empty-product edge case unusually clear. It warns administrators not to register an app without associating it with an API product that restricts specific proxies or resource paths, because the resulting key can behave like a skeleton key across the organization. The name is dramatic, but accurate: a credential that is not bounded to the intended doors is not much of an access-control mechanism.

At first that sounded like an administrator footgun. Administrators can create products, attach proxies, approve apps and edit credentials; if they deliberately create an unbounded app, a warning in the administration documentation is reasonable. Then the researcher noticed another place where apps were created.

Setup

An integrated developer portal is the public side of an Apigee program. The API provider publishes documentation and a catalogue of available APIs there. External developers can register an account and manage their own apps, subscribe those apps to published products, and view or rotate their keys.

The word developer is easy to misread here. A portal developer is not necessarily someone who develops Apigee proxies and has access to the Google Cloud project. They are the customer of the API: the person or company writing an application that consumes it. Apigee's own portal documentation treats registration and app management as a self-service flow for those external consumers.

The portal is also not the source of truth for the app. When the user clicks Save, the portal sends a request to Apigee. Apigee stores the developer app and returns its key and secret. That server-side boundary is important because the browser belongs to the user.

For the dynamic analysis the researcher built three small proxies on managed runtime 1-17-0-apigee-4: a token endpoint, a target protected by VerifyAccessToken, and a control target protected by VerifyAPIKey. All requests below used the same product-less developer app.

The OAuth test used the client_credentials grant. It is meant for a trusted client acting on its own behalf, normally from code that can protect the consumer secret. There is no end-user login in this grant; the application authenticates as itself.

XML
<OAuthV2 name="Generate-Access-Token">
  <Operation>GenerateAccessToken</Operation>
  <SupportedGrantTypes>
    <GrantType>client_credentials</GrantType>
  </SupportedGrantTypes>
  <GrantType>request.queryparam.grant_type</GrantType>
  <GenerateResponse enabled="true"/>
</OAuthV2>

The target proxy then uses the same policy type with a different operation:

XML
<OAuthV2 name="Verify-Access-Token">
  <Operation>VerifyAccessToken</Operation>
</OAuthV2>

Finding it

The normal portal form required at least one published API. A user could not click Save with an empty selection. In the browser, the rule looked correct:

JSON
{
  "name": "my-app",
  "apiProducts": ["hello-world"]
}

The researcher intercepted the request after the form validation and removed apiProducts:

JSON
{
  "name": "my-app"
}

The server accepted it. It created the app, issued a real consumer key and secret, and stored no valid product association. Updating an existing app with a malformed value such as apiProducts: [{}] reached the same state.

This was the missing server-side check. The UI told an external consumer that a product was mandatory, while the API behind it did not enforce the same invariant. Now the documented skeleton-key state was no longer limited to an administrator making a dangerous configuration choice. An ordinary portal user could create it for their own app.

A malformed record is only interesting if the runtime trusts it, so the next step was dynamic analysis.

Exploitation

Step 1: the API-key path denied the app

The consumer key was sent directly to VerifyAPIKey:

HTTP
GET /protected-by-verifyapikey?[redacted] HTTP/1.1
Host: <APIGEE_HOST>

Apigee found the key but rejected the app for exactly the expected reason:

HTTP
HTTP/1.1 400 Bad Request
Content-Type: application/json

{
  "fault": {
    "faultstring": "Consumer key missing ApiProduct association",
    "detail": {
      "errorcode": "keymanagement.service.consumer_key_missing_api_product_association"
    }
  }
}

That response was useful. It proved the app and key were real, and it proved that the runtime considered the empty association invalid. The portal had created a bad state, but this enforcement path failed closed.

Step 2: OAuth approved the same app

The same key and its secret were sent to the token proxy:

HTTP
GET /oauth/accesstoken?grant_type=client_credentials HTTP/1.1
Host: <APIGEE_HOST>
Authorization: Basic Base64(<CONSUMER_KEY>:<CONSUMER_SECRET>)

Instead of rejecting the product-less app, Apigee minted a token. The response was trimmed and redacted, but the two important fields are untouched:

JSON
{
  "access_token": "[REDACTED]",
  "api_product_list": "[]",
  "api_product_list_json": [],
  "grant_type": "client_credentials",
  "expires_in": "1799",
  "status": "approved"
}

The token did not accidentally inherit a product. It explicitly carried an empty product list and was still marked approved.

Step 3: the protected proxy accepted the token

Token issuance alone was not the bypass. VerifyAccessToken still had an opportunity to reject it when the protected proxy was called:

HTTP
GET /protected HTTP/1.1
Host: <APIGEE_HOST>
Authorization: Bearer <ACCESS_TOKEN>

HTTP/1.1 200 OK

Same app, same underlying credentials, opposite answer. VerifyAPIKey said the missing product invalidated the key. OAuthV2 issued a token for it and then accepted that token at a protected proxy.

Step 4: adding a product removed access

To control for the less obvious possibility that the target proxy was simply outside product enforcement, a valid product was attached to the app, but one that did not include /protected. After the relevant caches refreshed, the token flow was repeated.

Text
Invalid API call as no apiproduct match found

That result made the bug hard to explain away. With the wrong product, Apigee evaluated the boundary and denied the call. With no product, the call succeeded. Adding a restriction made the app less powerful.

The behaviour was not a universal bypass of every control in Apigee. It required a consumer-facing portal, a usable OAuth token endpoint, and a target that relied on OAuthV2 with VerifyAccessToken. Authorization implemented inside the backend could still deny the request. The broken boundary was specific and important: the API products selected by the provider did not constrain the product-less OAuth client.

Root cause

The dynamic results gave a clean code-review question: where does VerifyAPIKey reject an empty product list, and why does VerifyAccessToken not make the same decision?

The API-key path eventually reached OAuth2RuntimeServiceImpl.getConsumerDetailsForApiKey(...). Its behaviour was controlled by a plainly named setting:

Text
conf_feature-flags_allow.app.without.product=false

The runtime exposed that setting through KMSConfiguration.isAppWithoutAPIProductAllowed(). With the default set to false, a key whose app had no product association raised CONSUMER_KEY_MISSING_APIPRODUCT_ASSOCIATION. That matched the 400 response from the control proxy.

The OAuth path reached another part of the same runtime service. populateApiProductAttributes(...) loaded the products associated with the token, tried to find one covering the current proxy and resource, and tracked the result in proxyOrResourceSet. The decisive branch in the decompiled runtime was:

Text
if (apiProductObjects.size() == 0 || !proxyOrResourceSet) {
    if (this.kmsFeatures.disableUnboundedPermissions()) {
        throw new UnAuthorizedException(
            ErrorCodes.INVALID_API_CALL_AS_NO_APIPRODUCT_MATCH_FOUND,
            new Object[0]);
    }
}

Read the two conditions separately. The outer branch knows that the token has no products or that none of its products cover the proxy/resource. But knowing that is not enough to deny the request. The exception sits behind disableUnboundedPermissions().

The same feature gate appeared in the adjacent blank-resource case:

Text
if (resource != null && StringUtils.isBlank(resource)) {
    if (this.kmsFeatures.disableUnboundedPermissions()) {
        throw new UnAuthorizedException(
            ErrorCodes.CONSUMER_KEY_WITH_EMPTY_FLOW_RESOURCE_NAME,
            new Object[0]);
    }
}

That was the code-level explanation for the strange control result. When a real product existed but did not cover the proxy, the runtime had a concrete product boundary to enforce and the request failed. For the empty set, OAuth retained older unbounded permissions behaviour unless a separate legacy-style feature disabled it. The current API-key path did not rely on that feature; it had its own fail-closed allow.app.without.product guard.

That was the split: the two entry points did not share one invariant. The API-key path asked, "Is an app without a product allowed?" The OAuth path asked, "Has unbounded access been disabled here?" Those questions happened to produce different answers for exactly the state the portal let an external user create.

When the issue was reported, the initial objection was the existing skeleton-key warning. The documentation already told Apigee administrators that product-less credentials were dangerous. But the warning was also why the researcher kept pushing. An API provider is trusted to define products and decide which consumers receive them. A portal user is offered a catalogue and allowed to request access to those published choices. Removing one field from a self-service request should not give that consumer the state administrators are explicitly warned never to create.

The difference sounds obvious once the actors are named, but the word developer caused a surprising amount of confusion. An Apigee proxy developer or administrator works on the provider side. An app developer in the portal may be any external API customer with a self-registered account. Treating the latter as already trusted collapses the entire purpose of products and app registration.

Impact

An external, self-registered portal user could create a developer app with no API product association, receive a real consumer key and secret, exchange them for an OAuth access token through a client_credentials token endpoint, and have that token accepted by a proxy protected with OAuthV2 / VerifyAccessToken. The API products the provider had selected did not constrain that client.

The bypass was conditional.

The report lists Mar 16, 2026 as the reported date. The first answer came with no bounty. After reconsideration, Google awarded $3,760.44; after another round about the attacker model and the role of the portal, the total became $9,000.

Fix

Google's May 12, 2026 Apigee release notes describe the fix in managed release 1-17-0-apigee-7: OAuthV2 now enforces API product associations and denies apps without valid products. The note marks the beginning of a multi-zone rollout, so it is not an exact timestamp for every instance.

The report is marked patched.

Variants to test

The three-result control is the reusable idea: a valid matching product grants access, a wrong product denies it, and an empty product list used to grant more access than either. Permission collections deserve exactly that order, because "nothing" is often where old compatibility behaviour, missing validation and an attacker's best option meet.

  1. Strip the product field from portal app creation. Remove apiProducts from the save request, or send a malformed value such as apiProducts: [{}]. A positive result is a created app with a real consumer key and secret and no valid product association.
  2. Compare the two enforcement paths on the same app. Send the consumer key to a VerifyAPIKey proxy and the key plus secret to a client_credentials token endpoint, then use the token on a VerifyAccessToken proxy. A positive result is a 400 from the API-key path and a 200 from the OAuth path for the same credentials.
  3. Add a non-matching product and retry. Attach a valid product that does not cover the target path, wait for caches to refresh, and repeat the token flow. A positive result is a denial with the wrong product and success with no product at all.
  4. Check the feature gates. Look for allow.app.without.product and disableUnboundedPermissions() in the runtime, and check which one each entry point consults. A positive result is an entry point that asks whether unbounded access has been disabled rather than whether a product is present.
  5. Test the blank-resource case. Send a request whose flow resource name is blank. A positive result is the same gate deciding the outcome, with CONSUMER_KEY_WITH_EMPTY_FLOW_RESOURCE_NAME only raised when unbounded permissions are disabled.

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

What happened, in plain words

Imagine a large office building with a reception desk. Visitors sign in at reception, get a badge, and the badge says which floors they may enter. The building manager decides which floors each visitor is allowed to reach. That is the whole idea behind the system described here, and the bug is that one of the two doors handed out a badge that was not bounded by the visitor's product list.

In this report the building is Apigee, Google Cloud's product for managing APIs. An API (Application Programming Interface) is the way one piece of software talks to another over the internet. When you use a weather app on your phone, the app does not know the weather itself; it asks a weather service through an API, and the service answers with data. Companies put Apigee in front of their APIs so that every request passes through a checkpoint before reaching the real service behind it. That checkpoint is called an API proxy.

The proxy can check who is calling, route the request, change the data, count how many requests arrive, and enforce limits. The customer (the company running the API) does not usually let every caller reach every proxy directly. Instead, Apigee has a small model of applications and permissions, and the bug lives in the gap between two ways of checking those permissions.

Before going further, three everyday comparisons will help:

  • A consumer key is like a membership card number. It identifies which application is calling.
  • A consumer secret is like the PIN that goes with the card. It proves the caller really holds the card.
  • An API product is like a list of rooms the membership grants access to. The card says who you are; the product list says where you may go.

That is the foundation for both authentication styles in this research. Authentication means proving who you are. Authorization means deciding what you are allowed to do. The bug is an authorization bug: the system knew perfectly well who was calling, but it failed to apply the list of allowed rooms.

How Apigee normally gives an app access

An API consumer registers a developer app. Apigee gives that app a consumer key and a consumer secret. The API provider then attaches one or more API products to the app. A product can include particular proxies, operations, paths, environments, quotas and approval state. In practical terms, the credentials answer which app is calling?; the products answer what may that app call?

The simpler path is an API key. A client sends the app's consumer key with the request, and a VerifyAPIKey policy checks it. A policy here is a small rule that Apigee runs on each request, like a checklist item at the reception desk.

XML
<VerifyAPIKey name="Verify-API-Key">
  <APIKey ref="request.queryparam.apikey"/>
</VerifyAPIKey>

Line by line:

  • <VerifyAPIKey name="Verify-API-Key"> starts a rule called Verify-API-Key whose job is to check an API key.
  • <APIKey ref="request.queryparam.apikey"/> says where to find the key: in the incoming request's query parameters, under the name apikey. A query parameter is the part of a web address after the question mark, like ?apikey=abc.
  • </VerifyAPIKey> closes the rule.

This policy does more than check whether the key exists. Apigee resolves the developer app behind it, checks its state, and verifies that one of its API products covers the current proxy and resource. In plain words: it looks up the membership card, checks the membership is still active, and then checks that the member's room list includes the room they are trying to enter.

OAuth in Apigee adds another step. OAuth is a standard way for an application to obtain a temporary pass instead of sending its long-term password on every request. Apigee can act as the authorization server, the office that issues passes: an app presents its credentials to a token endpoint, an OAuthV2 policy issues an access token, and another OAuthV2 policy validates that token on the protected proxy.

An access token is a short string that stands in for the credentials for a limited time. Think of a cloakroom ticket: you hand in your coat once, and the ticket lets you collect it later without carrying the coat around. If the ticket is lost or stolen, it expires soon and can be cancelled on its own, without changing your coat.

The distinction between VerifyAPIKey and VerifyAccessToken has nothing to do with frontend and backend code. An API key is the shortest application-authentication path. OAuth exchanges app credentials or a user grant for a shorter-lived, independently revocable token with scopes and other metadata. A scope is a named permission attached to a token, such as "read only". Either way, the app's API products are supposed to remain the authorization boundary. Wrapping the key in an access token should not increase what the app may reach. In the building comparison: swapping your membership card for a day pass should not add floors to your room list.

Apigee's app-registration documentation makes the empty-product edge case unusually clear. It warns administrators not to register an app without associating it with an API product that restricts specific proxies or resource paths, because the resulting key can behave like a skeleton key across the organization. A skeleton key is a key cut to open every lock. The name is dramatic, but accurate: a credential that is not bounded to the intended doors is not much of an access-control mechanism.

At first that sounded like an administrator footgun. A footgun is a feature that makes it easy to shoot yourself in the foot: the tool works as designed, but the design invites a dangerous mistake. Administrators can create products, attach proxies, approve apps and edit credentials; if they deliberately create an unbounded app, a warning in the administration documentation is reasonable. Then the researcher noticed another place where apps were created.

The other door: the developer portal

An integrated developer portal is the public side of an Apigee program. The API provider publishes documentation and a catalogue of available APIs there. External developers can register an account and manage their own apps, subscribe those apps to published products, and view or rotate their keys. A portal here is simply a website, like a shop front, where outside people can browse the catalogue and sign up.

The word developer is easy to misread here. A portal developer is not necessarily someone who develops Apigee proxies and has access to the Google Cloud project. They are the customer of the API: the person or company writing an application that consumes it. Apigee's own portal documentation treats registration and app management as a self-service flow for those external consumers. Self-service means nobody at the company checks each request by hand; the website handles it automatically, like a supermarket checkout rather than a counter with a clerk.

The portal is also not the source of truth for the app. When the user clicks Save, the portal sends a request to Apigee. Apigee stores the developer app and returns its key and secret. That server-side boundary is important because the browser belongs to the user. Anything the browser does can be changed by the person using it: form rules, hidden fields, the lot. Only checks made on the server can be trusted, because the server is the part the user cannot edit.

For the dynamic analysis the researcher built three small proxies on managed runtime 1-17-0-apigee-4: a token endpoint, a target protected by VerifyAccessToken, and a control target protected by VerifyAPIKey. A runtime is the running software that actually handles requests; the version string identifies which build was in use. A control in testing is a comparison case you know the expected answer for, so you can tell whether a surprising result is real or just how the system always behaves. All requests below used the same product-less developer app.

The OAuth test used the client_credentials grant. A grant is the particular OAuth procedure being used. client_credentials is meant for a trusted client acting on its own behalf, normally from code that can protect the consumer secret. There is no end-user login in this grant; the application authenticates as itself. Compare it to a company card used for expenses: the company, not an individual employee, is the one being charged.

XML
<OAuthV2 name="Generate-Access-Token">
  <Operation>GenerateAccessToken</Operation>
  <SupportedGrantTypes>
    <GrantType>client_credentials</GrantType>
  </SupportedGrantTypes>
  <GrantType>request.queryparam.grant_type</GrantType>
  <GenerateResponse enabled="true"/>
</OAuthV2>

Line by line:

  • <OAuthV2 name="Generate-Access-Token"> starts an OAuth rule called Generate-Access-Token.
  • <Operation>GenerateAccessToken</Operation> says this rule's job is to create a token, not to check one.
  • <SupportedGrantTypes> opens the list of grant types this endpoint will accept.
  • <GrantType>client_credentials</GrantType> allows the client_credentials grant.
  • </SupportedGrantTypes> closes that list.
  • <GrantType>request.queryparam.grant_type</GrantType> tells the rule to read the requested grant type from the query parameter named grant_type in the incoming request.
  • <GenerateResponse enabled="true"/> makes the rule send the token back in the response.
  • </OAuthV2> closes the rule.

The target proxy then uses the same policy type with a different operation:

XML
<OAuthV2 name="Verify-Access-Token">
  <Operation>VerifyAccessToken</Operation>
</OAuthV2>

Line by line:

  • <OAuthV2 name="Verify-Access-Token"> starts an OAuth rule called Verify-Access-Token.
  • <Operation>VerifyAccessToken</Operation> says this rule's job is to check a token that the caller presents, rather than to create one.
  • </OAuthV2> closes the rule.

Finding the bug

The normal portal form required at least one published API. A user could not click Save with an empty selection. In the browser, the rule looked correct:

JSON
{
  "name": "my-app",
  "apiProducts": ["hello-world"]
}

Line by line:

  • { opens a JSON object. JSON is a plain text format for structured data, used by websites to send information back and forth.
  • "name": "my-app" gives the app a name, here my-app.
  • "apiProducts": ["hello-world"] lists the products the app is subscribed to. The square brackets mean a list, and here it contains one entry, hello-world.
  • } closes the object.

The researcher intercepted the request after the form validation and removed apiProducts:

JSON
{
  "name": "my-app"
}

Line by line:

  • { opens the JSON object.
  • "name": "my-app" still names the app.
  • } closes the object. The product list is simply gone.

Intercepting a request means catching it between the browser and the server, using browser developer tools or a proxy tool, so you can read and change it before it is sent. The form had already done its check in the browser, so the edited request went out without the product field.

The server accepted it. It created the app, issued a real consumer key and secret, and stored no valid product association. Updating an existing app with a malformed value such as apiProducts: [{}] reached the same state. A malformed value is one that has the wrong shape: [{}] is a list containing an empty object, which is not a real product name.

This was the missing server-side check. The UI told an external consumer that a product was mandatory, while the API behind it did not enforce the same invariant. An invariant is a rule that must always hold, like "every app has at least one product". The UI enforced it; the server did not. Now the documented skeleton-key state was no longer limited to an administrator making a dangerous configuration choice. An ordinary portal user could create it for their own app.

A malformed record is only interesting if the runtime trusts it, so the next step was dynamic analysis. Dynamic analysis means running the system and watching what it actually does, as opposed to reading its code. A record in a database is just a row; the question is whether the running software acts on it.

Exploitation, step by step

Step 1: the API-key path denied the app

The consumer key was sent directly to VerifyAPIKey:

HTTP
GET /protected-by-verifyapikey?[redacted] HTTP/1.1
Host: <APIGEE_HOST>

Line by line:

  • GET /protected-by-verifyapikey?[redacted] HTTP/1.1 is the first line of an HTTP request. HTTP is the language browsers and servers use to talk. GET means "give me this". /protected-by-verifyapikey is the path being requested. ?[redacted] passes the key as a query parameter. HTTP/1.1` is the version of the protocol.
  • Host: <APIGEE_HOST> names the server being contacted. The angle brackets mark a placeholder that was filled in for the real test.

Apigee found the key but rejected the app for exactly the expected reason:

HTTP
HTTP/1.1 400 Bad Request
Content-Type: application/json

{
  "fault": {
    "faultstring": "Consumer key missing ApiProduct association",
    "detail": {
      "errorcode": "keymanagement.service.consumer_key_missing_api_product_association"
    }
  }
}

Line by line:

  • HTTP/1.1 400 Bad Request is the status line. 400 is an HTTP status code meaning the server refused the request because something about it was wrong. Status codes are three-digit numbers: 200 means success, 400 means a bad request, 401 means not authorised.
  • Content-Type: application/json says the body of the response is JSON.
  • The blank line separates the headers from the body. Headers are the labelled lines of extra information that travel with a request or response.
  • "fault" is the outer object holding the error.
  • "faultstring": "Consumer key missing ApiProduct association" is the human-readable message: the key has no product attached.
  • "detail" holds the machine-readable specifics.
  • "errorcode": "keymanagement.service.consumer_key_missing_api_product_association" is the internal code for this exact error.

That response was useful. It proved the app and key were real, and it proved that the runtime considered the empty association invalid. The portal had created a bad state, but this enforcement path failed closed. Fail closed means that when something is wrong, access is refused by default. The opposite, fail open, means access is allowed when something is wrong, which is exactly what the next step found.

Step 2: OAuth approved the same app

The same key and its secret were sent to the token proxy:

HTTP
GET /oauth/accesstoken?grant_type=client_credentials HTTP/1.1
Host: <APIGEE_HOST>
Authorization: Basic Base64(<CONSUMER_KEY>:<CONSUMER_SECRET>)

Line by line:

  • GET /oauth/accesstoken?grant_type=client_credentials HTTP/1.1 asks the token endpoint for a token using the client_credentials grant.
  • Host: <APIGEE_HOST> names the server.
  • Authorization: Basic Base64(<CONSUMER_KEY>:<CONSUMER_SECRET>) is the header that carries the credentials. Basic authentication means sending the username and password joined by a colon, encoded with Base64. Base64 is not encryption; it is just a way of writing bytes as text, and anyone can decode it. It is only safe over an encrypted connection.

Instead of rejecting the product-less app, Apigee minted a token. The response was trimmed and redacted, but the two important fields are untouched:

JSON
{
  "access_token": "[REDACTED]",
  "api_product_list": "[]",
  "api_product_list_json": [],
  "grant_type": "client_credentials",
  "expires_in": "1799",
  "status": "approved"
}

Line by line:

  • "access_token": "[REDACTED]" is the token itself. It was blanked out here so it cannot be reused.
  • "api_product_list": "[]" is the product list as text, and it is empty.
  • "api_product_list_json": [] is the same empty list in proper JSON form.
  • "grant_type": "client_credentials" records which grant was used.
  • "expires_in": "1799" says the token lasts 1799 seconds, just under half an hour.
  • "status": "approved" says the app is approved.

The token did not accidentally inherit a product. It explicitly carried an empty product list and was still marked approved. That is the heart of the problem: the system looked at an empty room list and said "fine".

Step 3: the protected proxy accepted the token

Token issuance alone was not the bypass. VerifyAccessToken still had an opportunity to reject it when the protected proxy was called:

HTTP
GET /protected HTTP/1.1
Host: <APIGEE_HOST>
Authorization: Bearer <ACCESS_TOKEN>

HTTP/1.1 200 OK

Line by line:

  • GET /protected HTTP/1.1 requests the protected path.
  • Host: <APIGEE_HOST> names the server.
  • Authorization: Bearer <ACCESS_TOKEN> presents the token. Bearer means "whoever holds this token is treated as its owner", like a cloakroom ticket: the person holding it gets the coat, no questions asked. That is why tokens must be kept secret.
  • The blank line ends the request.
  • HTTP/1.1 200 OK is the server's answer: 200 means success.

Same app, same underlying credentials, opposite answer. VerifyAPIKey said the missing product invalidated the key. OAuthV2 issued a token for it and then accepted that token at a protected proxy. Two doors, one building, two different answers about the same visitor.

Step 4: adding a product removed access

To control for the less obvious possibility that the target proxy was simply outside product enforcement, a valid product was attached to the app, but one that did not include /protected. After the relevant caches refreshed, the token flow was repeated. A cache is a temporary store of recent answers kept to save time; after a change, the old answer can linger until the cache refreshes.

Text
Invalid API call as no apiproduct match found

This is the error message returned: the call is invalid because no API product matches. In plain words, the system checked the room list, found the requested room was not on it, and said no.

That result made the bug hard to explain away. With the wrong product, Apigee evaluated the boundary and denied the call. With no product, the call succeeded. Adding a restriction made the app less powerful. That is backwards: a restriction should never reduce what you can do compared with having no restriction at all.

The behaviour was not a universal bypass of every control in Apigee. It required a consumer-facing portal, a usable OAuth token endpoint, and a target that relied on OAuthV2 with VerifyAccessToken. Authorization implemented inside the backend could still deny the request. The broken boundary was specific and important: the API products selected by the provider did not constrain the product-less OAuth client.

Why the two paths disagreed

The dynamic results gave a clean code-review question: where does VerifyAPIKey reject an empty product list, and why does VerifyAccessToken not make the same decision? Code review means reading the program's source or decompiled code to understand why it behaves as observed. Decompiled means turned back from the machine's internal form into readable code.

The API-key path eventually reached OAuth2RuntimeServiceImpl.getConsumerDetailsForApiKey(...). That is a method, a named block of code, whose job is to look up the consumer details for an API key. Its behaviour was controlled by a plainly named setting:

Text
conf_feature-flags_allow.app.without.product=false

Line by line:

  • conf_feature-flags_ is a prefix marking this as a configuration flag, a switch that changes behaviour.
  • allow.app.without.product is the name of the switch: may an app exist without a product?
  • =false sets it to false, meaning no, such an app is not allowed.

The runtime exposed that setting through KMSConfiguration.isAppWithoutAPIProductAllowed(). With the default set to false, a key whose app had no product association raised CONSUMER_KEY_MISSING_APIPRODUCT_ASSOCIATION. That matched the 400 response from the control proxy. In plain words: the API-key door asks "is an app without a product allowed?", gets "no", and shuts.

The OAuth path reached another part of the same runtime service. populateApiProductAttributes(...) loaded the products associated with the token, tried to find one covering the current proxy and resource, and tracked the result in proxyOrResourceSet. The decisive branch in the decompiled runtime was:

Text
if (apiProductObjects.size() == 0 || !proxyOrResourceSet) {
    if (this.kmsFeatures.disableUnboundedPermissions()) {
        throw new UnAuthorizedException(
            ErrorCodes.INVALID_API_CALL_AS_NO_APIPRODUCT_MATCH_FOUND,
            new Object[0]);
    }
}

Line by line:

  • if (apiProductObjects.size() == 0 || !proxyOrResourceSet) { checks two things joined by ||, which means "or". The first, apiProductObjects.size() == 0, is true when the token has no products at all. The second, !proxyOrResourceSet, is true when no product covers the current proxy or resource. If either is true, the code enters the block.
  • if (this.kmsFeatures.disableUnboundedPermissions()) { is a second, nested check: has the feature that disables unbounded permissions been switched on? Unbounded permissions means permissions with no limit, access to everything.
  • throw new UnAuthorizedException( raises an error, which stops the request.
  • ErrorCodes.INVALID_API_CALL_AS_NO_APIPRODUCT_MATCH_FOUND, is the error code used, the same message seen in step 4.
  • new Object[0]); is an empty list of extra arguments for the error.
  • The two } lines close the inner and outer blocks.

Read the two conditions separately. The outer branch knows that the token has no products or that none of its products cover the proxy/resource. But knowing that is not enough to deny the request. The exception sits behind disableUnboundedPermissions(). If that switch is off, the code notices the problem and then does nothing about it. It is like a guard who checks your ticket, sees it is blank, and waves you through because the rule about blank tickets was never turned on.

The same feature gate appeared in the adjacent blank-resource case:

Text
if (resource != null && StringUtils.isBlank(resource)) {
    if (this.kmsFeatures.disableUnboundedPermissions()) {
        throw new UnAuthorizedException(
            ErrorCodes.CONSUMER_KEY_WITH_EMPTY_FLOW_RESOURCE_NAME,
            new Object[0]);
    }
}

Line by line:

  • if (resource != null && StringUtils.isBlank(resource)) { checks that a resource value exists and is blank, meaning empty or only spaces. && means "and".
  • if (this.kmsFeatures.disableUnboundedPermissions()) { is the same switch as before.
  • throw new UnAuthorizedException( raises an error.
  • ErrorCodes.CONSUMER_KEY_WITH_EMPTY_FLOW_RESOURCE_NAME, is the error code for a key with an empty flow resource name.
  • new Object[0]); is again an empty argument list.
  • The closing braces end the blocks.

That was the code-level explanation for the strange control result. When a real product existed but did not cover the proxy, the runtime had a concrete product boundary to enforce and the request failed. For the empty set, OAuth retained older unbounded permissions behaviour unless a separate legacy-style feature disabled it. The current API-key path did not rely on that feature; it had its own fail-closed allow.app.without.product guard.

That was the split: the two entry points did not share one invariant. The API-key path asked, "Is an app without a product allowed?" The OAuth path asked, "Has unbounded access been disabled here?" Those questions happened to produce different answers for exactly the state the portal let an external user create. Two guards at two doors, each asking a different question, and the visitor only had to find the door with the weaker question.

The warning was aimed at the wrong person

When the issue was reported, the initial objection was the existing skeleton-key warning. The documentation already told Apigee administrators that product-less credentials were dangerous. But the warning was also why the researcher kept pushing. An API provider is trusted to define products and decide which consumers receive them. A portal user is offered a catalogue and allowed to request access to those published choices. Removing one field from a self-service request should not give that consumer the state administrators are explicitly warned never to create.

The difference sounds obvious once the actors are named, but the word developer caused a surprising amount of confusion. An Apigee proxy developer or administrator works on the provider side. An app developer in the portal may be any external API customer with a self-registered account. Treating the latter as already trusted collapses the entire purpose of products and app registration. A warning in the staff handbook is no use if the person walking in off the street can reach the same state by editing a form.

What an attacker could do

An external, self-registered portal user could create a developer app with no API product association, receive a real consumer key and secret, exchange them for an OAuth access token through a client_credentials token endpoint, and have that token accepted by a proxy protected with OAuthV2 / VerifyAccessToken. The API products the provider had selected did not constrain that client.

The bypass was conditional. In other words, the bypass applied to targets that relied on OAuthV2 with VerifyAccessToken, while authorization implemented inside the backend could still deny the request.

The report lists Mar 16, 2026 as the reported date. The first answer came with no bounty. A bounty is a payment a company makes to a researcher who reports a security problem responsibly. After reconsideration, Google awarded $3,760.44; after another round about the attacker model and the role of the portal, the total became $9,000. The attacker model is the description of who the attacker is and what they can do, which is what decides whether a bug matters.

The fix

Google's May 12, 2026 Apigee release notes describe the fix in managed release 1-17-0-apigee-7: OAuthV2 now enforces API product associations and denies apps without valid products. The note marks the beginning of a multi-zone rollout, so it is not an exact timestamp for every instance. A rollout is the staged delivery of a change across many servers; multi-zone means it happens region by region, so different places may get it at different times.

The report is marked patched.

Variants to test

The three-result control is the reusable idea: a valid matching product grants access, a wrong product denies it, and an empty product list used to grant more access than either. Permission collections deserve exactly that order, because "nothing" is often where old compatibility behaviour, missing validation and an attacker's best option meet. Compatibility behaviour is code kept around so that old setups keep working, even when the old behaviour is unsafe.

  1. Strip the product field from portal app creation. Remove apiProducts from the save request, or send a malformed value such as apiProducts: [{}]. A positive result is a created app with a real consumer key and secret and no valid product association.
  2. Compare the two enforcement paths on the same app. Send the consumer key to a VerifyAPIKey proxy and the key plus secret to a client_credentials token endpoint, then use the token on a VerifyAccessToken proxy. A positive result is a 400 from the API-key path and a 200 from the OAuth path for the same credentials.
  3. Add a non-matching product and retry. Attach a valid product that does not cover the target path, wait for caches to refresh, and repeat the token flow. A positive result is a denial with the wrong product and success with no product at all.
  4. Check the feature gates. Look for allow.app.without.product and disableUnboundedPermissions() in the runtime, and check which one each entry point consults. A positive result is an entry point that asks whether unbounded access has been disabled rather than whether a product is present.
  5. Test the blank-resource case. Send a request whose flow resource name is blank. A positive result is the same gate deciding the outcome, with CONSUMER_KEY_WITH_EMPTY_FLOW_RESOURCE_NAME only raised when unbounded permissions are disabled.

Glossary

  • API: the way one piece of software asks another for data or actions over a network.
  • API key: a string that identifies which application is calling.
  • API product: a named bundle of proxies, paths, quotas and approval state that defines what an app may call.
  • API proxy: the checkpoint in Apigee that receives a request and runs rules before passing it to the backend.
  • Access token: a short-lived string that stands in for credentials on later requests.
  • Apigee: Google Cloud's product for managing and protecting APIs.
  • Attacker model: the description of who an attacker is and what they can do.
  • Authentication: proving who you are.
  • Authorization: deciding what you are allowed to do.
  • Authorization server: the component that issues tokens after checking credentials.
  • Base64: a way of writing bytes as text; not encryption, and anyone can decode it.
  • Bearer: a token style where whoever holds the token is treated as its owner.
  • Bounty: a payment for a responsibly reported security problem.
  • Cache: a temporary store of recent answers kept to save time.
  • Client credentials: an OAuth grant where the application authenticates as itself, with no user login.
  • Code review: reading program code to understand its behaviour.
  • Compatibility behaviour: old code kept so old setups keep working, even when it is unsafe.
  • Consumer key: the identifier Apigee gives a developer app.
  • Consumer secret: the password that goes with a consumer key.
  • Control: a comparison test case with a known expected result.
  • Decompiled: turned back from machine form into readable code.
  • Developer app: the record in Apigee that represents an application calling the API.
  • Developer portal: the public website where external developers register and manage apps.
  • Dynamic analysis: running the system and observing what it actually does.
  • Fail closed: refusing access by default when something is wrong.
  • Fail open: allowing access when something is wrong.
  • Footgun: a feature that makes a dangerous mistake easy.
  • Grant: a particular OAuth procedure for obtaining a token.
  • Header: a labelled line of extra information sent with a request or response.
  • HTTP: the language browsers and servers use to communicate.
  • Integrated developer portal: an Apigee portal tied to the API program, with a catalogue and self-service sign-up.
  • Intercept: catch a request between browser and server so it can be read or changed.
  • Invariant: a rule that must always hold.
  • JSON: a plain text format for structured data.
  • Malformed: having the wrong shape or format.
  • Method: a named block of code that performs a task.
  • Multi-zone rollout: staged delivery of a change across regions.
  • OAuth: a standard for obtaining temporary tokens instead of sending long-term credentials each time.
  • Policy: a rule Apigee runs on each request.
  • Portal developer: an external API customer with a self-registered portal account, not an Apigee administrator.
  • Query parameter: the part of a web address after the question mark, such as ?apikey=abc.
  • Rollout: staged delivery of a change across many servers.
  • Runtime: the running software that handles requests.
  • Scope: a named permission attached to a token.
  • Self-service: handled automatically by a website, without a person checking each request.
  • Skeleton key: a key that opens every lock.
  • Status code: a three-digit number in an HTTP response, such as 200 for success or 400 for a bad request.
  • Token endpoint: the address where an app exchanges credentials for a token.
  • Unbounded permissions: permissions with no limit, access to everything.
  • VerifyAPIKey: the Apigee policy that checks an API key and its product association.
  • VerifyAccessToken: the Apigee policy that checks an OAuth access token.

More by Nikita Markevich

View all

11 more disclosed reports, best first.

More from Google

View all

The newest disclosed reports for this program.

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.