Users Can Consent to Applications

Users can grant third-party applications access to organisational data without an administrator's review, which consent phishing exploits to gain lasting access to mail and files.

SeverityMedium
CVSS 3.16.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N Open in the calculator
CVSS 4.06.9 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N Open in the calculator
CWECWE-266: Incorrect Privilege Assignment
OWASP Top 10A06:2025 Insecure Design
MITRE ATT&CKT1528 Steal Application Access Token, T1566.002 Spearphishing Link, T1550.001 Application Access Token
CategorySecurity Misconfiguration

Description

Applications that integrate with Microsoft Entra ID request permissions, such as reading the signed-in user's mail or files, and a user can consent to delegated permissions on their own behalf if the tenant allows it. This is governed by the user consent settings for enterprise applications, which can allow users to consent to any application, allow consent only to applications from verified publishers and only for permissions classified as low impact, or not allow user consent at all. The finding applies where users can consent to applications from any publisher, or to permissions that reach mail, files or other sensitive data.

Consent phishing, also called an illicit consent grant, abuses this. The attacker registers a multi-tenant application with a convincing name, requests permissions such as mail and file access together with offline access, and sends users a link to the genuine Microsoft sign-in and consent page. No password is disclosed and MFA is not bypassed, because the user signs in normally, which makes the attack hard for users to recognise, although it does need the user to accept the consent prompt.

A user who accepts gives the attacker an access token and, with offline access, a refresh token that lets the application read the user's mail, files or other granted data through Microsoft Graph without the user being present. The access does not depend on the user's password, so it is not removed by a password reset, and it continues until the consent is revoked or the application is disabled. Successful consent phishing typically leads to data theft and to further phishing from the compromised mailbox, though the impact is limited to the permissions the user was able to grant and the data that user can reach.

The setting is reviewed in Microsoft Entra ID under Enterprise applications, in the consent and permissions settings, and existing delegated permission grants are reviewed for unfamiliar applications or applications holding broad permissions.

Remediation

  • Change the user consent setting so that users can consent only to applications from verified publishers, and only for permissions classified as low impact, or disable user consent entirely where the organisation prefers every application to be approved.
  • Classify only genuinely low-risk permissions, such as basic sign-in and profile permissions, as low impact.
  • Enable the admin consent workflow, so that users can request access to applications they cannot consent to, and assign reviewers who assess each request against the permissions it asks for.
  • Review existing grants: list delegated permission grants and application role assignments, remove those that are unused or unexpected, and disable and investigate any application that appears malicious, revoking the affected users' sessions.
  • Monitor the audit logs for consent activity, and alert on consent to applications that request high-impact permissions.

Train users to recognise consent prompts and to report unexpected requests for access to their data. Confirm the fix by signing in as a standard user and attempting to consent to a test multi-tenant application that requests mail access, expecting the consent to be refused or routed to an administrator for approval.

References


Add This Finding to Your Library

In Pental this write-up is in Settings, Library. Add to my library copies it into your own, rated in your firm's CVSS version, ready to put in your own words.

Free trial  ·  No card required

Only need the reporting? Our reporting tool is free and open source, with the same library.


More Azure and Microsoft 365 Findings

Every Azure and Microsoft 365 finding