/

CVE-2025-66390

Severity:

CRITICAL RISK

(9.8)

Authorization Misconfig (CWE-284) in Azure API Mgmt

CVE-2025-66390

Awaiting Analysis

Vulnerability type

Category:

Authorization and Access Control Misconfiguration

CWE:

CWE-284

Impact:

Unauthorized Account Creation Across Tenants

Severity:

CRITICAL RISK

(9.8)

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

A misconfiguration-related authorization issue in Microsoft Azure API Management allows the self-service signup flow of one tenant to be reused against another tenant by manipulating the hostname or tenant identifier.

When signup is disabled in Tenant B's UI but enabled in Tenant A, the underlying API endpoint may still accept cross-tenant registration requests based on the Host header, creating unexpected account provisioning exposure.

Affected context

This behavior appears in Azure API Management environments where:

  • Self-service signup using Basic Authentication is enabled for at least one tenant (Tenant A)
  • Another tenant (Tenant B) has disabled signup via the UI but relies on this setting to enforce policy
  • Clients interact with the shared signup API endpoint and can influence the Host header or tenant identifier

Under these conditions, the registration flow may still accept requests targeting Tenant B, despite its UI-level signup control being disabled.

Exploit preconditions

  • Attack surface: Public-facing Azure API Management signup endpoint shared across tenants
  • Required access: Ability to send crafted HTTP requests to the signup API and control the Host header or tenant identifier
  • Trigger point: Invocation of the self-service registration flow while Tenant A has signup enabled and Tenant B relies on UI-based signup disabling
  • Why exploitation is possible: The underlying API endpoint continues to honor cross-tenant registration requests, and the UI-level control does not fully enforce or propagate a tenant-specific authorization check on the backend.

Why this happens

The underlying issue maps to CWE-284: Improper Access Control, where a control intended to restrict access (disabling signup in Tenant B) does not comprehensively govern all relevant backend behaviors.

The UI configuration for signup appears decoupled from the authorization logic of the core signup API, allowing cross-tenant requests to proceed if another tenant has enabled signup.

This results in a gap between administrative expectations (signup disabled for Tenant B) and actual access enforcement, making it possible for clients to leverage shared infrastructure and header-based routing to reach functionality that should be restricted.

Potential impact

  • Tenant B accounts may be created despite signup being disabled in its UI configuration.
  • Attackers could register unauthorized identities associated with Tenant B, potentially expanding their access surface.
  • Administrators may have a false sense of security about tenant signup restrictions.
  • Logging and audit trails may show unexpected or unapproved user provisioning within affected tenants.

General mitigation guidance

Effective mitigation relies on tightening access control enforcement and configuration alignment:

  • Ensure that tenant-level signup policies are enforced at the backend API layer, not only in the UI.
  • Apply explicit authorization checks that validate the target tenant's signup policy before processing registration requests.
  • Restrict or validate Host headers and tenant identifiers used for routing, reducing opportunities for cross-tenant request abuse.
  • Consider defense-in-depth measures such as conditional signup based on trusted origins, IP ranges, or pre-established identities.
  • Use least-privilege principles so newly created accounts start with minimal access until explicitly approved.

How teams detect issues like this

Detection typically focuses on identifying unexpected account creation and misaligned configuration states:

  • Monitor audit logs for accounts being created in tenants where signup is expected to be disabled.
  • Use configuration compliance checks to verify that UI-level controls match backend authorization states and policies.
  • Apply static and policy-based analysis on API gateway configurations to detect shared endpoints that lack tenant-scoped authorization guards.
  • Incorporate automated security reviews in CI/CD and infrastructure-as-code workflows to flag Host-header-based routing without strict tenant validation.

Sources

SourceLink
github.comgithub.com/bountyyfi/Azure-APIM-Cross-Tenant-Signup-Bypass
github.comgithub.com/bountyyfi/Azure-APIM-Cross-Tenant-Signup-Bypass/security/advisories/GHSA-vcwf-73jp-r7mv

Frequently asked

questions

Yes, in configurations where the shared signup endpoint is exposed and an attacker can craft HTTP requests with specific Host headers or tenant identifiers, they may be able to register accounts for tenants that assume signup is disabled.

Only network-level access to the public signup API is required. No prior authentication is typically needed to attempt registration, although subsequent access granted to the created account depends on tenant-specific policies.

Enforce tenant-specific authorization at the backend API layer so that any signup operation must first confirm that the target tenant explicitly allows self-service registration. UI controls should merely reflect and manage these authoritative backend policies.

Design multi-tenant systems so that all critical security controls are implemented as centrally enforced authorization checks, avoid relying solely on UI switches, and regularly test cross-tenant isolation with targeted security reviews and configuration validation tooling.

Find out what's already
exploitable in your codebase.