/

CVE-2026-121556

Severity:

HIGH RISK

(8.3)

Tenant IDOR (CWE-639) in FastBee ProductController

CVE-2026-121556

Deferred

Vulnerability type

Category:

Insecure Direct Object Reference (IDOR)

CWE:

CWE-639

Impact:

Cross-tenant data exposure, unauthorized product modification, and deletion

Severity:

HIGH RISK

(8.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

FastBee's ProductController may let an authenticated tenant user access product records belonging to other tenants by providing their product IDs. Depending on the operation exposed, this could reveal sensitive MQTT credentials, change product configuration, or delete products and related records.

Affected context

The issue affects FastBee through version 2.1.0 in product operations handled by ProductController. It becomes risky when a request accepts a product ID but does not adequately verify that the requested product belongs to the authenticated user's tenant.

Exploit preconditions

  • Attack surface: ProductController operations that accept a product ID
  • Required access: An authenticated tenant account
  • Trigger point: A request referencing a product outside the user's tenant
  • Why exploitation is possible: The product identifier may be used to select a record without enforcing tenant ownership for the requested action
  • Enumeration factor: Sequential or otherwise guessable IDs may make other product records easier to discover

Why this happens

The underlying issue is an authorization check that may rely on a user-supplied object identifier without confirming the object's tenant scope. This is an insecure direct object reference and maps to CWE-639: Authorization Bypass Through User-Controlled Key. Authentication alone does not establish permission to access or alter every record identified by a valid product ID.

Potential impact

  • Authenticated users may read other tenants' MQTT account, password, or secret values.
  • Users could overwrite product configuration, potentially including the tenant association.
  • Product records and associated rows could be deleted without authorization.
  • Cross-tenant access could undermine confidentiality and data integrity.

General mitigation guidance

Defensive approaches commonly bind every object lookup and operation to the authenticated tenant's authorization scope.

  • Enforce object-level authorization on reads, updates, and deletes, not only at the API or route level.
  • Derive tenant identity from trusted authentication context rather than accepting it from request data.
  • Use tenant-scoped queries and deny access by default when ownership cannot be verified.
  • Minimize exposure of secrets and apply least privilege to application and database operations.
  • Treat identifiers as untrusted input; making them hard to guess should complement, not replace, authorization checks.

How teams detect issues like this

  • Review controller and service code for product lookups keyed only by a client-supplied ID.
  • Check that tenant ownership is enforced consistently on read, update, and delete paths.
  • Use static analysis or code-review rules to flag object access without an associated authorization check.
  • Add policy and integration tests that attempt cross-tenant access for each product operation.
  • Monitor for repeated requests involving many product IDs or actions against records outside the caller's tenant.

Sources

SourceLink
github.comgithub.com/beecue/FastBee/commit/3393e3223965a9dc9682dfb2bd37635fffa0fbd2
github.comgithub.com/beecue/FastBee/issues/32
github.comgithub.com/kerwincui/FastBee
github.comgithub.com/kerwincui/FastBee/blob/v2.1.0/springboot/fastbee-open-api/src/main/java/com/fastbee/data/controller/ProductController.java#L77-L141
github.comgithub.com/kerwincui/FastBee/blob/v2.1.0/springboot/fastbee-service/fastbee-iot-service/src/main/java/com/fastbee/iot/service/impl/ProductServiceImpl.java#L72-L92
github.comgithub.com/kerwincui/FastBee/blob/v2.1.0/springboot/fastbee-service/fastbee-iot-service/src/main/resources/mapper/iot/ProductMapper.xml#L37-L67
vulncheck.comvulncheck.com/advisories/fastbee-through-2.1.0-idor-via-iot-product-by-id-endpoints

Frequently asked

questions

The described attack requires an authenticated tenant user; authentication does not necessarily grant access to products belonging to other tenants.

Product access may expose MQTT credentials or secrets, allow configuration changes, or permit deletion with cascading related rows.

Enforce object-level authorization by verifying tenant ownership for every operation involving a product, including reads, updates, and deletes.

Scope data access to trusted tenant context, deny access by default, and test cross-tenant requests across all object operations.

Find out what's already
exploitable in your codebase.