Cyber Security News

50,000+ Azure AD Users Access Token Exposed From Unauthenticated API Endpoint

A critical security vulnerability affecting over 50,000 Azure Active Directory users has been discovered, exposing sensitive employee data through an unsecured API endpoint embedded within a JavaScript file.

The incident, uncovered by cybersecurity firm CloudSEK, reveals how a single misconfiguration can grant unauthorized access to Microsoft Graph data, including executive-level information and organizational structures.

The vulnerability originated from a hardcoded API endpoint found within a JavaScript bundle on a publicly accessible subdomain of a major aviation company.

This endpoint, accessible without any authentication requirements, automatically issued Microsoft Graph API tokens with excessive permissions, specifically User.Read.All and AccessReview.Read.All capabilities.

Azure data (Source – Cloudsek)

These elevated privileges typically require strict administrative oversight due to their ability to access comprehensive user profiles and critical identity governance configurations.

CloudSEK analysts noted that the exposed endpoint continued to return data for newly added users, indicating an ongoing security risk that extended beyond the initial discovery.

The researchers identified the vulnerability using their BeVigil platform’s API Scanner, which detected the unsecured endpoint during routine attack surface monitoring of the organization’s digital infrastructure.

The scope of exposed information encompasses detailed employee records, including names, job titles, contact details, reporting hierarchies, and access review configurations.

Attack flow (Source – Cloudsek)

Among the compromised data were records of senior executives, including individuals with titles such as “Chief Executive Officer,” “Co-Founder & Director,” and “Principal Cyber Security,” making them prime targets for sophisticated social engineering attacks and corporate espionage.

The incident highlights a fundamental security oversight where sensitive backend services were directly exposed through client-side code, violating basic principles of secure application architecture.

The misconfiguration demonstrates how modern web applications can inadvertently create significant attack vectors when proper security controls are not implemented.

Vulnerability Analysis

The core vulnerability stemmed from improper token management within the application’s front-end architecture.

The JavaScript file contained embedded logic that automatically generated Microsoft Graph access tokens with broad permissions, effectively bypassing Azure AD’s built-in security controls. The exposed endpoint utilized the following permission scopes:-

{
  "scope": "User.Read.All AccessReview.Read.All",
  "grant_type": "client_credentials"
}

This configuration allowed any individual with access to the endpoint to query Microsoft Graph APIs and retrieve comprehensive organizational data.

The vulnerability exemplifies how client-side exposure of authentication mechanisms can circumvent enterprise security policies, creating unauthorized pathways into protected cloud services.

CloudSEK’s analysis revealed that the token generation occurred without proper validation or rate limiting, enabling potential attackers to extract large volumes of sensitive corporate data systematically.

Celebrate 9 years of ANY.RUN! Unlock the full power of TI Lookup plan (100/300/600/1,000+ search requests), and your request quota will double.

Tushar Subhra Dutta

Tushar is a senior cybersecurity and breach reporter. He specializes in covering cybersecurity news, trends, and emerging threats, data breaches, and malware attacks. With years of experience, he brings clarity and depth to complex security topics.

Recent Posts

Google Chrome 153 Update Fixes 42 Security Flaws, Including 3 Critical Ones

Google has released an important Chrome 153 security update that fixes 42 vulnerabilities across the…

4 hours ago

CISA and NIST Release Technical Checklist for Safeguarding Identity Tokens From Theft and Misuse

The Cybersecurity and Infrastructure Security Agency (CISA) and the National Institute of Standards and Technology…

14 hours ago

CISA Shares 17 Techniques Used by Hackers to Compromise Active Directory Environments

CISA and five international cybersecurity agencies have released detailed guidance describing 17 common techniques hackers…

15 hours ago

Apple Rolls Out Massive Security Update Fixing 273 Vulnerabilities Across Its Devices

Apple has released one of its largest coordinated security rollouts, addressing 273 distinct critical vulnerabilities…

15 hours ago

How to Keep Malware’s Rotating Infrastructure From Becoming a Detection Gap

You can’t detect today's attacks with yesterday’s threat intelligence; that’s how you could briefly formulate…

16 hours ago

Microsoft Bans Its AI Models From Launching Cyberattacks or Escalating Their Own Access

Microsoft has published a draft Humanist AI Code of Conduct that would prohibit its in-house…

16 hours ago