Briefing

ConsentFix v3 attacks target Azure with automated OAuth abuse

security
by Bill Toulas · Cloudflare

Patch Azure OAuth flows by enforcing PKCE, restricting client IDs, and applying token binding; enable conditional access to block unknown OAuth clients.

What to do now

Patch Azure OAuth flows by enforcing PKCE, restricting client IDs, and applying token binding; enable conditional access to block unknown OAuth clients.

Summary

ConsentFix v3 is a new OAuth2 abuse technique that automates the capture of Azure authorization codes and token exchange using a serverless workflow. The method verifies the target tenant ID, harvests employee details, and creates accounts on services such as Outlook, Tutanota, Cloudflare, DocSend, Hunter.io, and Pipedream. A phishing page hosted on Cloudflare Pages mimics the Microsoft/Azure login interface and tricks victims into pasting a localhost URL containing the authorization code. Pipedream receives the code via a webhook, immediately exchanges it for a refresh token through Microsoft’s API, and stores the token in real time. The attacker then imports the tokens into Specter Portal to access resources such as email, files, and other services. The attack relies on first‑party Microsoft apps that are pre‑trusted and pre‑consented, and it can scale by automating the entire flow. Mitigation steps include applying token binding, setting behavioral detection rules, and enforcing app authentication restrictions. While the technique is still emerging, administrators should review OAuth client configurations and enforce stricter access controls.

The attack flow demonstrates how social engineering, phishing, and serverless automation can combine to bypass MFA and obtain long‑lived tokens without passwords. It highlights the need for Azure AD Conditional Access policies that block unknown OAuth clients and require PKCE for all authorization code requests. The use of Pipedream as an automation engine shows that attackers can leverage free services to run the entire pipeline.

Overall, ConsentFix v3 shows that OAuth authorization code flows remain a high‑risk vector when client secrets are not enforced and when users can be tricked into pasting local URLs. Administrators should audit their OAuth client registrations, enforce token binding, and monitor for unusual token exchange patterns.

Key changes

  • ConsentFix v3 automates OAuth2 authorization code flow abuse
  • Uses Pipedream to receive, exchange, and store tokens via webhook
  • Targets first‑party Microsoft apps that are pre‑trusted and pre‑consented
  • Attack flow includes tenant ID verification, employee data harvesting, and account creation on Outlook, Tutanota, Cloudflare, DocSend, Hunter.io, and Pipedream
  • Phishing page on Cloudflare Pages mimics Microsoft/Azure login interface
  • Victim pastes localhost URL containing authorization code into phishing page
  • Tokens imported into Specter Portal for access to email, files, and other services
  • Mitigation includes token binding, behavioral detection rules, and app authentication restrictions

Affects

none

Customer impact

Analyzing matches…

Ask about this story

Impact on an agency? Which customers? Compare historically Risks of waiting