Microsoft Entra ID 1-Click Open Redirection via OAuth Error Handling Abuse

Low

Synopsis

Researchers associated with Tenable have discovered new techniques to trigger 1-click open redirection attacks in Microsoft Entra ID by abusing the OAuth error-handling mechanism.

 

The attack relies on an initial setup phase where a threat actor registers an OAuth application in an actor-controlled tenant and configures its redirect_uri to point to an attacker-controlled domain. When a victim clicks on a specifically crafted authorization link on the trusted login.microsoftonline.com domain, combinations of malformed parameters and application configurations trigger a server-side error condition.

 

Microsoft's by-design error-handling processes this failure and issues an HTTP redirect that automatically forwards the error parameters directly to the attacker-controlled redirect_uri. Because this platform evaluates these errors post-authentication but pre-consent, a victim with an active Microsoft session is redirected instantly without any interstitial warning prompts, bypassing the OAuth consent screen and enabling phishing campaigns, credential theft, or malware delivery.

 

Note: Prior to disclosure, Microsoft published a blog describing OAuth redirection abuse techniques that exploit malformed parameters within the authorization URL to trigger error-based redirects. The techniques disclosed here differ in that the error conditions are triggered by the OAuth application's server-side configuration in Entra ID, rather than by detectable anomalies in the link itself — making the authorization URL appear fully legitimate to the victim and to URL inspection tools.

 

Proof of Concept:

We have identified 3 different and new error scenarios that triggered the redirection:

  • Error AADSTS700051
    • "AADSTS700051: response_type 'token' is not enabled for the application…”
  • Error AADSTS700054
    • “ADSTS700054: response_type 'id_token' is not enabled for the application…”
  • Error AADSTS9002331
    • “AADSTS9002331: Application {app_client_id} is configured for use by Microsoft Account users only. Please use the /consumers endpoint to serve this request…”

Setup:

  • Register an OAuth application in an attacker-controlled Microsoft Entra ID tenant.
  • Configure the application's redirect_uri to point to an attacker-controlled domain (such as a phishing site or malware delivery host).
  • Depending on the specific error scenario to be triggered, configure the application settings as follows:
    • For AADSTS700051: Configure the application as multi-tenant and disable implicit flow.
    • For AADSTS700054: Ensure the hybrid flow is disabled.
    • For AADSTS9002331: Configure the application to be used exclusively with personal Microsoft accounts.

Attacker:

  • Craft a legitimate-looking Microsoft Entra ID authorization link targeting the /common endpoint, incorporating your application's client_id. Use one of the following links based on the setup:
    • Scenario 1 (AADSTS700051):
      • Example link: https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id={app_client_id}&response_type=token&scope=User.Read
    • Scenario 2 (AADSTS700054):
      • Example link: https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id={app_client_id}&response_type=id_token&scope=User.Read
    • Scenario 3 (AADSTS9002331):
      • Example link: https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id={app_client_id}&response_type=code&scope=User.Read
  • Distribute the crafted link to the targeted victim via a phishing email or message.

Victim:

  • (Precondition) The victim must have an active Microsoft session or log in after clicking the link.
  • Open the URL provided by the attacker.
  • The victim is silently and instantly redirected to the attacker-controlled redirect_uri along with the error parameters, bypassing any consent screens or warning prompts.

Solution

Microsoft has not resolved the issue, stating: 

"Microsoft recognizes the risk related to OAuth 2.0 authorization, which allows attackers to deliver a link through a registered redirect URI for the OAuth application. This is part of a broader set of known tactics used to exploit authentication standards we have been tracking"
 

Disclosure Timeline

March 26, 2026 - Tenable reports the vulnerability and requests email communication
March 26, 2026 - MSRC accepts email communication and requests POC videos
March 26, 2026 - Tenable supplies POC videos
March 26, 2026 - MSRC acknowledges
April 2, 2026 - MSRC updates they are investigating the report, and requests to review a draft of the disclosure
April 3, 2026 - Tenable acknowledges MSRC's request
April 7, 2026 - MSRC notes importance of coordinated disclosure
April 16, 2026 - MSRC updates they are still reviewing the report
April 19, 2026 - Tenable acknowledges
April 23, 2026 - MSRC updates they are still reviewing the report
April 29, 2026 - MSRC updates that they have assessed the report as low severity and have been tracking it.
April 30, 2026 - Tenable acknowledges
June 7, 2026 - Tenable seeks to clarify Microsoft's position.
June 16, 2026 - Microsoft asks to see a draft of the publication.
June 17, 2026 - Tenable advises Microsoft that a draft will be shared closer to publication. Tenable asks Microsoft for clarification on their position again.
June 22, 2026 - Microsoft replies that the issue is low severity.
June 23, 2026 - Tenable reminds Microsoft of the impending publication date and shares a copy of the advisory.

All information within TRA advisories is provided “as is”, without warranty of any kind, including the implied warranties of merchantability and fitness for a particular purpose, and with no guarantee of completeness, accuracy, or timeliness. Individuals and organizations are responsible for assessing the impact of any actual or potential security vulnerability.

Tenable takes product security very seriously. If you believe you have found a vulnerability in one of our products, we ask that you please work with us to quickly resolve it in order to protect customers. Tenable believes in responding quickly to such reports, maintaining communication with researchers, and providing a solution in short order.

For more details on submitting vulnerability information, please see our Vulnerability Reporting Guidelines page.

If you have questions or corrections about this advisory, please email [email protected]