Microsoft 365 Android Debug Flag Exposes User Credentials

💡Critical security flaw in Microsoft 365 Android apps allowed silent credential theft via misconfigured debug flags.
⚡ 30-Second TL;DR
What Changed
Debug flag 'setIsDebugMode(true)' was mistakenly left in production builds.
Why It Matters
This vulnerability highlights the critical risk of supply chain and configuration management in enterprise-grade mobile applications. It underscores the danger of FOCI token exposure, which allows persistent, silent access to sensitive user data.
What To Do Next
If you are an enterprise developer, audit your CI/CD pipeline to ensure debug flags and test configurations are stripped from all production-ready APKs.
Key Points
- •Debug flag 'setIsDebugMode(true)' was mistakenly left in production builds.
- •Third-party apps could intercept FOCI tokens without user permission or interaction.
- •Affected apps include Word, PowerPoint, Excel, OneNote, Loop, and Microsoft 365 Copilot.
- •Microsoft has released security patches; users and IT admins must update immediately.
🧠 Deep Insight
Web-grounded analysis with 9 cited sources.
🔑 Enhanced Key Takeaways
- •The vulnerability, dubbed 'FlagLeft' by security researchers at Enclave, was discovered using an AI-assisted analysis tool that flagged the
setIsDebugMode(true)anomaly in a shared SDK. - •The flaw allowed any co-installed malicious app on the same Android device to silently request and receive long-lived, refreshable FOCI (Family of Client IDs) authentication tokens, which do not generate suspicious activity in user logs.
- •Microsoft issued multiple CVEs for the vulnerability on May 12, 2026, including CVE-2026-41100 (Copilot), CVE-2026-41101 (Word), CVE-2026-41102 (PowerPoint), and CVE-2026-42832 (Excel), with CVSS scores ranging from 4.4 (Medium) to 7.7 (Important).
- •While Microsoft Teams was not affected due to its debug flag being correctly set to
false, the compromised FOCI tokens could grant unauthorized access to sensitive data such as emails, files, calendar information, and communications across the affected apps. - •Although there is no public evidence of active exploitation before the patches were released, IT administrators are advised to consider revoking existing refresh tokens and forcing fresh sign-ins, as previously exposed tokens may remain valid even after app updates.
🛠️ Technical Deep Dive
- The
setIsDebugMode(true)flag, when left enabled in production builds, disabled a critical authorization check within Microsoft's FOCI (Family of Client IDs) token-sharing system. - FOCI is a legitimate token-sharing mechanism designed to provide single sign-on (SSO) functionality across Microsoft 365 apps, allowing them to share authentication states without requiring repeated logins.
- With the debug flag active, the system failed to verify the legitimacy of the requesting app, allowing any untrusted third-party app installed on the same Android device to mimic a legitimate Microsoft app's request and obtain valid FOCI refresh tokens.
- The vulnerability is classified under CWE-284 (Improper Access Control), indicating a flaw in how the system manages permissions for accessing sensitive resources.
- The attack scenario did not require user interaction, suspicious permission prompts, or fake login screens; a malicious app already present on the device was sufficient to exploit the flaw.
- The stolen FOCI refresh tokens are particularly dangerous because they are long-lived, can be used to generate new access tokens, and their usage appears normal in system logs, making detection difficult.
🔮 Future ImplicationsAI analysis grounded in cited sources
⏳ Timeline
📎 Sources (9)
Factual claims are grounded in the sources below. Forward-looking analysis is AI-generated interpretation.
Weekly AI Recap
Read this week's curated digest of top AI events →
👉Related Updates
AI-curated news aggregator. All content rights belong to original publishers.
Original source: IT之家 ↗