Skip to content

authhelper: handle Microsoft "Permissions requested" consent screen#7387

Open
msrivas-7 wants to merge 1 commit into
zaproxy:mainfrom
msrivas-7:dev/mehulsri/ms-login-consent-screen
Open

authhelper: handle Microsoft "Permissions requested" consent screen#7387
msrivas-7 wants to merge 1 commit into
zaproxy:mainfrom
msrivas-7:dev/mehulsri/ms-login-consent-screen

Conversation

@msrivas-7
Copy link
Copy Markdown
Contributor

@msrivas-7 msrivas-7 commented May 22, 2026

Overview

MsLoginAuthenticator doesn't recognize the Microsoft "Permissions requested" user-consent screen, so flows that hit it (first-time consent for an app) fall through to "step unknown" and fail.

Testing

Validated locally end-to-end against a real Microsoft Entra login that hits the "Permissions requested" consent screen, the authenticator now advances through it and completes auth successfully. Verified the happy path (no consent screen) is unaffected.

Changes

  • New PERMISSIONS_REQUESTED state. Detection runs only inside the existing KMSI timeout branch, so the happy path is unchanged.
  • Heading-text gated (Permissions requested) before clicking the idSIButton9 Accept button, won't hijack the same button id used on other MS pages.
  • Admin / tenant-wide consent (Accept for your organization) is detected, logged at WARN, and skipped to avoid granting org-wide consent.
  • CHANGELOG + one new Messages.properties key.

@psiinon
Copy link
Copy Markdown
Member

psiinon commented May 22, 2026

Logo
Checkmarx One – Scan Summary & Details8650a26b-d5a4-474d-8468-cede7776c2e0

Great job! No new security vulnerabilities introduced in this pull request


Use @Checkmarx to interact with Checkmarx PR Assistant.
Examples:
@Checkmarx how are you able to help me?
@Checkmarx rescan this PR

Signed-off-by: Mehul Srivastava <msrivas4017@gmail.com>
@msrivas-7 msrivas-7 force-pushed the dev/mehulsri/ms-login-consent-screen branch from ebfbc39 to a1b08d3 Compare May 22, 2026 03:32
@msrivas-7 msrivas-7 marked this pull request as ready for review May 22, 2026 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants