azrte-marcgoam#308
Open
marcgoam wants to merge 1 commit into
Open
Conversation
## Summary
Adds a new privilege escalation technique to the EntraID privesc page, covering `microsoft.directory/applications.myOrganization/allProperties/update`.
This permission is not present in any built-in role but commonly appears in custom roles delegated to application teams under the assumption that the `.myOrganization` subtype scopes the action to internal-only apps. Since `allProperties` includes `passwordCredentials` and `keyCredentials`, the permission is functionally equivalent to credential-injection capability against every single-tenant app in the tenant.
## Why this matters
The existing page already documents `applications/credentials/update`. The new section complements it by surfacing the custom-role-scoped variant, which is underdocumented and easy to miss during privileged-role audits, admins filter on built-in privileged roles and miss custom roles carrying this single action.
## Testing
The full attack chain was reproduced end-to-end in an isolated Microsoft 365 Business Premium trial tenant:
1. Created a custom role with `applications.myOrganization/allProperties/update` as the only action.
2. Assigned it to a non-privileged victim user.
3. From the victim's session, ran the documented commands to inject a credential into a target single-tenant app and successfully authenticated as the application via `az login --service-principal`.
## References
- https://learn.microsoft.com/entra/identity/role-based-access-control/custom-available-permissions
- https://learn.microsoft.com/entra/identity/role-based-access-control/permissions-reference
- https://learn.microsoft.com/graph/api/application-addpassword
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new privilege escalation technique to the EntraID privesc page, covering
microsoft.directory/applications.myOrganization/allProperties/update.This permission is not present in any built-in role but commonly appears in custom roles delegated to application teams under the assumption that the
.myOrganizationsubtype scopes the action to internal-only apps. SinceallPropertiesincludespasswordCredentialsandkeyCredentials, the permission is functionally equivalent to credential-injection capability against every single-tenant app in the tenant.Why this matters
The existing page already documents
applications/credentials/update. The new section complements it by surfacing the custom-role-scoped variant, which is underdocumented and easy to miss during privileged-role audits, admins filter on built-in privileged roles and miss custom roles carrying this single action.Testing
The full attack chain was reproduced end-to-end in an isolated Microsoft 365 Business Premium trial tenant:
References