20.6 C
New York
Sunday, September 21, 2025

Microsoft Entra ID flaw allowed hijacking any firm’s tenant


Microsoft Entra ID flaw allowed hijacking any firm’s tenant

A crucial mixture of legacy elements might have allowed full entry to the Microsoft Entra ID tenant of each firm on this planet.

The deadly combine included undocumented tokens referred to as “actor tokens” and a vulnerability within the Azure AD Graph API (CVE-2025-55241) that allowed the tokens to work with any group’s Entra ID atmosphere.

A menace actor exploiting the problem would have had entry to a slew of extremely delicate information with out leaving any hint within the logs on the focused atmosphere, apart from their very own actions.

Entra ID is Microsoft’s cloud-based id and entry administration (IAM) service, previously referred to as Azure Energetic Listing (Azure AD), which supplies organizations with single sign-on, multi-factor authentication, and safety controls throughout apps and assets.

A devoted Entra ID occasion represents a single group and manages safe entry to all of the apps used, each on-premise and cloud-based.

This could embody Microsoft 365 providers, customized and third-party SaaS merchandise like Salesforce, Dropbox, or cloud apps from Google, Amazon, or SAP.

Safety researcher Dirk-jan Mollema, founding father of offensive safety Outsider Safety, found a token validation flaw that gave him International Admin privileges in each Entra ID tenant.

This stage of entry permits full tenant compromise and opens the door to any service authenticated by Entra ID.

Impersonating any person within the tenant

In a technical weblog publish, Mollema explains that actor tokens are issued by a legacy service referred to as Entry Management Service, which “is used for authentication with SharePoint functions and in addition appears to be utilized by Microsoft internally.”

The researcher discovered them whereas investigating hybrid Trade setups. He observed that Trade would request them when speaking with different providers on behalf of a person.

“The Actor token permits it to ‘act’ as one other person within the tenant when speaking to Trade On-line, SharePoint and because it seems the Azure AD Graph” – Dirk-jan Mollema

Actor tokens usually are not signed, that means they can be utilized to impersonate any person within the tenant, and have a 24-hour validity with out the opportunity of being revoked throughout this era.

Mollema says that “this complete Actor token design is one thing that by no means ought to have existed,” as a result of they lack the right required safety controls:

  • there are not any logs when Actor tokens are issued
  • since these providers can craft the unsigned impersonation tokens with out speaking to Entra ID, there are additionally no logs when they’re created or used
  • they can’t be revoked inside their 24-hour validity
  • they fully bypass any restrictions configured in Conditional Entry
  • we now have to depend on logging from the useful resource supplier to even know these tokens had been used within the tenant

The researcher says that Microsoft depends on actor tokens internally for service-to-service communication and that the corporate plans to take away them.

Microsoft calls them “high-privileged entry (HPA)” that enables an software or service, “to impersonate different customers with out offering any proof of person context.

Whereas testing a number of methods to make use of an actor token, Mollema modified the tenant ID to 1 totally different from that producing the token, and despatched it to the deprecated Azure AD Graph API (graph.home windows.internet), anticipating an “entry denied” message.

As a substitute, the error the researcher noticed indicated that the token was legitimate, however entry was unauthorized as a result of the id of the person was not discovered within the tenant.

Azure AD Graph error indicates that token is valid but user does not exist
Azure AD Graph error signifies that token is legitimate however person doesn’t exist
supply: Dirk-jan Mollema

Mollema tried once more, this time with a legitimate person ID from the focused tenant, and noticed Azure AD Graph API return the requested information.

“I examined this in just a few extra check tenants I had entry to, to ensure I used to be not loopy, however I might certainly entry information in different tenants, so long as I knew their tenant ID (which is public data) and the netId of a person in that tenant.”

Utilizing the identical actor token, the researcher was in a position to impersonate the International Administrator within the goal tenant and carry out all of the actions related to the function (e.g. handle and create customers of various roles, modify configurations, reset passwords, add admins).

Mollema highlights that not one of the actions required for acquiring International Admin privileges generated any logs within the sufferer tenant.

From an attacker’s perspective, exploiting the problems would have been attainable in just a few steps, beginning with producing the actor token from a tenant underneath their management:

  • Discovering the tenant ID for the focused atmosphere could be achieved with public APIs based mostly on the area identify
  • Discovering a legitimate netId of a daily person within the goal tenant
  • Crafting an impersonation token with the actor token from the attacker tenant utilizing the tenant ID and netId of the person within the sufferer tenant
  • Itemizing all International Admins within the tenant and their netId
  • Crafting an impersonation token for the International Admin
  • Performing any learn/write motion by the Azure AD Graph API

Mollema notes that solely exercise within the final step could be recorded within the sufferer tenant.

It is very important notice that Microsoft began the deprecation course of for the Azure AD Graph API service in September final 12 months.

In late June, the corporate warned that apps configured for prolonged entry however nonetheless used Azure AD Graph would not have the ability to use the APIs beginning early September 2025.

Mollema reported the problems to Microsoft on July 14 and the corporate confirmed that the issue was resolved 9 days later.

On September 4, Microsoft additionally patched CVE-2025-55241, describing it as a crucial privilege escalation vulnerability in Azure Entra.

46% of environments had passwords cracked, practically doubling from 25% final 12 months.

Get the Picus Blue Report 2025 now for a complete take a look at extra findings on prevention, detection, and information exfiltration traits.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles