Brifing

Uncovering Five Critical Cross-Tenant Vulnerabilities in Azure API Connections

A deep dive into architectural flaws enabling unauthorized access across isolated Azure tenants.

Hacker News3 min

1Systemic Architectural Vulnerabilities

Azure API Connections suffer from fundamental architectural flaws that allow unauthorized cross-tenant access. By exploiting the API Management instance, attackers can manipulate connection tokens to access backend services like Key Vaults or SQL databases. These vulnerabilities demonstrate that input validation layers are insufficient to prevent full compromise of isolated tenant environments.

2The DynamicInvoke Exploitation Path

The ARM REST API DynamicInvoke endpoint serves as a primary vector for cross-tenant attacks. By using path traversal techniques, an attacker can force the API Management instance to interact with a victim's connection. This bypasses standard security boundaries, granting the attacker full control over the victim's backend services and sensitive data.

3Undocumented API Endpoints Discovered

Reverse engineering the ARM API revealed four undocumented functions, including DynamicList, which mirrored the vulnerabilities found in DynamicInvoke. These endpoints were reachable via similar URI patterns, allowing attackers to perform arbitrary operations like SQL injections. Microsoft eventually mitigated these risks by blocking access to these specific, previously hidden API endpoints.

4Consumption vs Standard Logic Apps

A critical distinction exists between Consumption and Standard Logic Apps regarding connection flows. Consumption apps create Version 1 connections with implicit access, while Standard apps use managed identities. This architectural difference creates a security gap where Consumption Logic Apps lack the necessary authorization controls, making them susceptible to unauthorized connection manipulation.

5Manipulating RuntimeUrl Parameters

The host.api.RuntimeUrl parameter allows attackers to override default connection settings. By providing a custom URL that ends in azure-apihub.net, an attacker can force the system to use malicious endpoints while still including valid Authorization headers. This bypasses the intended runtime validation, enabling unauthorized interaction with victim-owned backend services and data.

6Validation Timing and Normalization

Microsoft's initial attempts to patch the RuntimeUrl vulnerability failed due to improper validation timing. The system performed checks before path normalization occurred, allowing attackers to bypass restrictions. By exploiting this gap, the attacker could trick the runtime into believing the URI pointed to a legitimate connection while the APIM instance processed it differently.

7Regression in Security Patches

Security fixes for Azure API Connections have occasionally introduced regressions. After Microsoft patched the initial path traversal, subsequent updates inadvertently re-enabled previous attack vectors. This cycle highlights the difficulty of securing complex, interconnected cloud architectures where patching one endpoint can inadvertently weaken the security posture of previously hardened system components.

8Financial Impact of Vulnerabilities

The discovery of these five critical elevation-of-privilege vulnerabilities resulted in a total payout of $200,000. These findings were reported to Microsoft and subsequently addressed through various patches. The researcher's work underscores the high value of identifying systemic flaws in cloud infrastructure, particularly those affecting multi-tenant isolation and cross-service authentication mechanisms.

9Limitations of Scoped Access

While it is technically possible to scope access tokens or keys to minimize privileges, this practice is rarely implemented by users. For OAuth connections, the token typically belongs to the original creator, and API keys are frequently over-privileged. This lack of granular access control significantly exacerbates the impact of any underlying platform-level vulnerabilities.

10Lessons in Cloud Security

These findings emphasize that cloud security relies on more than just perimeter defenses. The complexity of Azure's API architecture shows that even minor undocumented endpoints or misaligned validation logic can lead to severe cross-tenant compromises. Continuous auditing of internal API interactions remains essential for maintaining the integrity of shared cloud service environments.

Original article: Hacker News — Uncovering Five Critical Cross-Tenant Vulnerabilities in Azure API Connections