A recent discovery by security researchers has highlighted a significant vulnerability in Microsoft’s OneDrive File Picker, a tool used by many popular web applications to allow users to upload or share files from their OneDrive accounts. This flaw could potentially expose your entire OneDrive storage to third-party apps, far beyond what you might expect when granting permissions. Here’s what you need to know about this issue and how to protect your data.
What Is the OneDrive File Picker Flaw?
The OneDrive File Picker is a JavaScript-based tool that enables third-party applications, such as Slack, Trello, and others, to integrate seamlessly with OneDrive. It allows users to select and share files directly from their cloud storage. However, a flaw in its OAuth permission system has raised concerns. When you use the File Picker to upload or share a single file, the tool requests overly broad permissions, such as full read or even write access to your entire OneDrive account. This means that apps could potentially access all your files, not just the ones you intended to share.
The issue stems from the lack of fine-grained permission controls, unlike competitors like Google Drive, which offers specific access to only selected files, or Dropbox, which uses a custom picker to avoid such risks. Additionally, older versions of the File Picker (6.0 to 7.2) and even the latest version (8.0) have issues with how authentication tokens are handled, potentially leaving them vulnerable to unauthorized access if a user’s browser session is compromised.
Why Does This Matter?
This vulnerability affects millions of OneDrive users who interact with third-party apps. For example, uploading a single document through a web app could unintentionally grant that app access to sensitive files stored in your OneDrive. This could lead toivot data leaks or compliance violations, especially for businesses storing confidential information. The misleading consent prompts also fail to clearly inform users about the extent of access they’re granting, which can erode trust in the platform.
Note: Microsoft has acknowledged the issue and is considering improvements, but no immediate fix has been announced as of May 2025.
How to Protect Yourself
While Microsoft works on addressing this flaw, here are some steps you can take to safeguard your OneDrive data:
- Review App Permissions: Check which apps have access to your OneDrive by visiting your Microsoft Account privacy settings. Revoke access for any unfamiliar or unnecessary apps.
- Be Cautious with OAuth Prompts: When granting permissions to apps, carefully read the consent screen. Avoid apps that request broad access unless absolutely necessary.
- Use Enterprise Tools: If you’re an organization, use the Entra Admin Center to audit app permissions. Consider enforcing admin consent or conditional-access policies to limit apps to minimal permissions.
- Monitor Activity: Regularly check your OneDrive activity logs for unusual access patterns. Tools like Microsoft Graph API or Cloud Access Security Broker (CASB) logs can help detect suspicious behavior.
- Limit Sensitive Data: Avoid storing highly sensitive information in OneDrive if you frequently use third-party apps with File Picker integration.
What Can Developers Do?
Developers integrating with OneDrive should take steps to minimize risks:
- Avoid requesting broad permissions like Files.Read.All or Files.ReadWrite.All unless essential.
- Refrain from using refresh tokens to limit the duration of access.
- Securely handle authentication tokens, avoiding storage in browser session storage or URL fragments.
The Bigger Picture
This flaw highlights the importance of robust permission systems in cloud services. As more apps integrate with cloud storage, ensuring user data remains secure is critical. While OneDrive is a powerful tool for productivity, this issue serves as a reminder to stay vigilant about the permissions you grant and the apps you trust with your data.
For more details on this vulnerability, you can read the full report from The Hacker News: https://thehackernews.com/2025/05/microsoft-onedrive-file-picker-flaw.html. Stay informed and take proactive steps to keep your data safe!


