0:00
–:––
React at 0:00
Black Hat USA 2025

Consent & Compromise: Abusing Entra OAuth for Fun and Access to Internal Microsoft Applications

When and where

Day
Thu 7 Aug 2025
Time
13:30 to 14:10 PDT
Room
South Seas A & B, Level 3

Speaker

  • Vaisha BernardEye Security

    Vaisha Bernard is a principal cybersecurity expert at Eye Security, a rapidly growing MSSP based in The Netherlands, Germany and Belgium. Although he has a formal background in Astrophysics and Artificial Intelligence, he already became an offensive cybersecurity enthusiast at age 12. After graduating, it was this expertise that landed him a job at the Dutch government. In 2020, he joined Eye Security as principal cybersecurity expert, where he now splits his time between research, high profile incident response cases and cracking attack surfaces.

Abstract

What would happen if I simply logged in to this internal Microsoft application with my own Microsoft account? Surely that would not work, right? As it turns out, that depends... In this talk, I will take a deep dive into the complexities of implementing OAuth using Microsoft Entra ID and discover that the difference between Authentication and Authorization is still hard to grasp. But who is at fault? There is sometimes a shared responsibility for implementing both. Then we have an "Open Authorization" standard that can be used for only authentication. Most code examples omit the most critical checks. And finally, Microsoft writes about a fix that "prevents the issue completely". Can we still blame the app developers? I will present a common critical misconfiguration that looks so simple, yet has been completely overlooked until now. It allowed me to access over 20 internal Microsoft Applications, exposing sensitive data, letting me administer Copilot, build my own version of Windows, approve my own bounty payouts and much more.

What you'll get from it

Vaisha Bernard found that more than 20 internal Microsoft applications would accept a sign-in from an ordinary Microsoft account. The cause was a simple, common misconfiguration in how apps use OAuth with Microsoft Entra ID, where authentication gets mistaken for authorisation, and through it Bernard reached sensitive data, administered Copilot, built a custom version of Windows and approved their own bounty payouts. Bernard also asks who's to blame, given code samples that leave out the critical checks and Microsoft's claim that its fix prevents the issue completely. Anyone building or reviewing apps on Entra ID should watch it.

Did you find what you came for?